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

commit gluster update scripts

parent b35ab879
#!/bin/bash #!/bin/bash
hosts="snail lin-test cellar windsor nun lav vbox asu multi space1 localhost" personal="snail lin-test nun lav asu multi euclid"
clients="euclid atlant grape buh" servers="cellar windsor vbox space1 localhost"
hosts="$personal $servers"
clients="atlant grape buh"
# builder builder64" # builder builder64"
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
. config.sh . config.sh
for i in $hosts; do for i in $personal $Cclients $Chosts; do
echo $i echo $i
#ssh $i $SUDO 'bash -s' <<< "epm --auto Install glusterfs3 && serv glusterd condrestart" #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" #ssh $i $SUDO 'bash -s' <<< "killall glusterd && sleep 1 && service glusterd restart"
done done
...@@ -10,7 +10,7 @@ do ...@@ -10,7 +10,7 @@ do
then then
ssh $i 'bash -s' <<< "$@" ssh $i 'bash -s' <<< "$@"
else else
bash -c "$@" bash <<< "$@"
fi fi
done done
} }
...@@ -45,7 +45,7 @@ gfs_mount_plus(){ ...@@ -45,7 +45,7 @@ gfs_mount_plus(){
echo 'Remount /var/ftp/* at windsor:' 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" 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' 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' echo 'builder64 remount'
ssh builder64 'bash -s' <<< "/etc/rc.d/rc.local" 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