Commit 64031d26 authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit gluster update scripts

parent b35ab879
#!/bin/bash
hosts="snail lin-test cellar windsor nun lav vbox asu multi space1 localhost"
clients="euclid atlant grape buh"
personal="snail lin-test nun lav asu multi euclid"
servers="cellar windsor vbox space1 localhost"
hosts="$personal $servers"
clients="atlant grape buh"
# builder builder64"
......@@ -2,9 +2,10 @@
. config.sh
for i in $hosts; do
for i in $personal $Cclients $Chosts; do
echo $i
#ssh $i $SUDO 'bash -s' <<< "epm --auto Install glusterfs3 && serv glusterd condrestart"
ssh $i $SUDO 'bash -s' <<< "epm update ; epm update-kernel"
#ssh $i $SUDO 'bash -s' <<< "epm update ; epm update-kernel"
ssh $i $SUDO 'bash -s' <<< "reboot"
#ssh $i $SUDO 'bash -s' <<< "killall glusterd && sleep 1 && service glusterd restart"
done
......@@ -10,7 +10,7 @@ do
then
ssh $i 'bash -s' <<< "$@"
else
bash -c "$@"
bash <<< "$@"
fi
done
}
......@@ -45,7 +45,7 @@ gfs_mount_plus(){
echo 'Remount /var/ftp/* at windsor:'
ssh windsor 'bash -s' <<< "/root/bin/remount.sh /var/ftp/pub; /root/bin/remount.sh /var/ftp/pvt; /root/bin/remount.sh /var/ftp/tmp"
echo 'builder remount'
ssh windsor 'bash -s' <<< "vzctl 501 exec /etc/rc.d/rc.local"
ssh windsor 'bash -s' <<< "vzctl exec 501 /etc/rc.d/rc.local"
echo 'builder64 remount'
ssh builder64 'bash -s' <<< "/etc/rc.d/rc.local"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment