From b6f05876a55d6ed962d58bf86a1f8d276952a225 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Mon, 24 Mar 2025 19:53:43 +0100 Subject: [PATCH] docs: add instructions for managing JuiceFS object storage in README --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 4f8df32..67396b9 100755 --- a/README.md +++ b/README.md @@ -67,6 +67,25 @@ If you add a new system you should add the relevant files to these paths. - `config/ssh/authorized_keys`: Contains the public keys per hostname that will be symlinked to the `~/.ssh/authorized_keys` file. - `config/home-manager/flake.nix`: Contains an array `homeConfigurations` where you should be adding the new system hostname and relevant configuration. +### Object Storage + +In case you need to adjust anything regarding the /mnt/object_storage JuiceFS. +Ensure to shut down all services: +```bash +dotf service stop --all +``` + +Unmount the volume: +```bash +sudo systemctl stop juicefs +``` + +And optionally if you're going to do something with metadata you might need to stop redis too. +```bash +cd ~/services/juicefs-redis/ +docker compose down --remove-orphans +``` + ### Adding a new system To add a new system you should follow these steps: