This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Symlinking ganglia work dir to /mnt

  • Loading branch information...
Fred Cons
Fred Cons committed Jan 5, 2015
1 parent e8fbb8f commit 161d238a96bf3e15577ed5781d830f98ca9abe20
Showing with 4 additions and 4 deletions.
  1. +4 −4 ganglia/init.sh
View
@@ -4,10 +4,6 @@
rm -rf /var/lib/ganglia/rrds/*
rm -rf /mnt/ganglia/rrds/*
-# Symlink /var/lib/ganglia/rrds to /mnt/ganglia/rrds
-rmdir /var/lib/ganglia/rrds
-ln -s /mnt/ganglia/rrds /var/lib/ganglia/rrds
-
# Make sure rrd storage directory has right permissions
mkdir -p /mnt/ganglia/rrds
chown -R nobody:nobody /mnt/ganglia/rrds
@@ -24,3 +20,7 @@ for node in $SLAVES $OTHER_MASTERS; do
ssh -t -t $SSH_OPTS root@$node "if ! rpm --quiet -q $GANGLIA_PACKAGES; then yum install -q -y $GANGLIA_PACKAGES; fi" & sleep 0.3
done
wait
+
+# Post-package installation : Symlink /var/lib/ganglia/rrds to /mnt/ganglia/rrds
+rmdir /var/lib/ganglia/rrds
+ln -s /mnt/ganglia/rrds /var/lib/ganglia/rrds

0 comments on commit 161d238

Please sign in to comment.