From cd43a3e15ee2d0f551740bf8d15a45f1d1f17e96 Mon Sep 17 00:00:00 2001 From: Avra Sengupta Date: Sun, 5 Jul 2015 12:21:31 +0530 Subject: glusterd/shared_storage: Use /var/lib/glusterd/ss_brick as shared storage's brick The brick path we use to create shared storage is /var/run/gluster/ss_brick. The problem with using this brick path is /var/run/gluster is a tmpfs and all the brick/shared storage data will be wiped off when the node restarts. Hence using /var/lib/glusterd/ss_brick as the brick path for shared storage volume as this brick and the shared storage volume is internally created by us (albeit on user's request), and contains only internal state data and no user data. Change-Id: I808d1aa3e204a5d2022086d23bdbfdd44a2cfb1c BUG: 1218573 Signed-off-by: Avra Sengupta Reviewed-on: http://review.gluster.org/11533 Tested-by: NetBSD Build System Reviewed-by: Atin Mukherjee Reviewed-by: Niels de Vos Reviewed-by: Rajesh Joseph --- extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh index 68bc44d2e05..90802196b40 100755 --- a/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh +++ b/extras/hook-scripts/set/post/S32gluster_enable_shared_storage.sh @@ -74,7 +74,7 @@ create_cmd="gluster --mode=script --wignore volume create \ # Adding the brick names in the command for i in "${connected_peer[@]}" do - create_cmd=$create_cmd" "$i:/var/run/gluster/ss_brick + create_cmd=$create_cmd" "$i:"$GLUSTERD_WORKDIR"/ss_brick done if [ "$option" == "disable" ]; then -- cgit