From e8cec993e75dbf9a3ffd17ecfa77f2dd5632fb69 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Tue, 18 Jul 2023 17:38:35 +0100 Subject: [PATCH] Put glusterfs data on a non-bind mount. --- hosts/common/glusterfs.nix | 1 - stateful-commands.txt | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/common/glusterfs.nix b/hosts/common/glusterfs.nix index 98e8254..f7be77b 100644 --- a/hosts/common/glusterfs.nix +++ b/hosts/common/glusterfs.nix @@ -6,7 +6,6 @@ environment.persistence."/persist".directories = [ "/var/lib/glusterd" - "/data/glusterfs" ]; # TODO: each volume needs its own port starting at 49152 diff --git a/stateful-commands.txt b/stateful-commands.txt index 174b326..cacb3d1 100644 --- a/stateful-commands.txt +++ b/stateful-commands.txt @@ -1,6 +1,7 @@ glusterfs setup on c1: - * gluster peer probe c{2,3} - * gluster volume create compute replica 3 c{1,2,3}:/data/glusterfs/compute/brick1/brick - * data dirs were mkdir'd manually before + * for h in c1 c2 c3; do ssh $h sudo mkdir /persist/glusterfs/compute; done + * gluster peer probe c2 + * gluster peer probe c3 + * gluster volume create compute replica 3 c{1,2,3}:/persist/glusterfs/compute/brick1 * gluster volume start compute * gluster volume bitrot compute enable