Skip to content

Instantly share code, notes, and snippets.

@drsnyder
Created September 21, 2012 17:39
Show Gist options
  • Select an option

  • Save drsnyder/3762844 to your computer and use it in GitHub Desktop.

Select an option

Save drsnyder/3762844 to your computer and use it in GitHub Desktop.
change image mounts
for box in `cat serverlist | awk '{ print $1 }' | pcregrep 'app|utility|batch'`; do
echo "**** $box ***";
ssh $box 'sudo /etc/init.d/httpd stop && sudo umount /huddler/image001 && sudo mount -t nfs image002:/huddler/image002 /huddler/image001 && sudo /etc/init.d/httpd start';
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment