Commit 66f9c841 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update vz/remount.sh

parent 561cfd25
......@@ -17,16 +17,19 @@ echo "$LISTNUM"|tr '\n' ' '
echo
for i in $LISTNUM
do
umount -vfl "/var/lib/vz/root/${i}${1}"
umount -fl "/var/lib/vz/root/${i}${1}"
done
sleep 1
umount -vfl "${1}"
umount -fl "${1}"
sleep 1
mount "${1}"
sleep 1
for i in $LISTNUM
do
mount -vo bind "${1}" "/var/lib/vz/root/${i}${1}"
vzctl exec ${i} mount -a
sleep 3
[ $(mount -l|grep -c "/var/lib/vz/root/${i}${1}" ) -eq 0 ] && mount -o bind "${1}" "/var/lib/vz/root/${i}${1}"
done
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