|
|
|
Re: "vzctl stop" - hangs [message #23279 is a reply to message #23274] |
Thu, 15 November 2007 08:22 |
dagr
Messages: 83 Registered: February 2006
|
Member |
|
|
cause i need them to be read only
BTW - mount -n helps with error from mtab , but loop devices are still not detached
[dagr@ssw2-ca ~]$ date;sudo vzctl stop 1051206;date
Thu Nov 15 08:29:05 GMT 2007
Stopping VE ...
VE was stopped
umount
VE is unmounted
Thu Nov 15 08:31:06 GMT 2007
[dagr@ssw2-ca ~]$ ps -ef| grep loop
root 25193 1 0 08:28 ? 00:00:00 [loop0]
root 25200 1 0 08:28 ? 00:00:00 [loop1]
dagr 27545 24812 0 08:31 pts/3 00:00:00 grep loop
[dagr@ssw2-ca ~]$ sudo vzctl start 1051206
Starting VE ...
VE is mounted
Adding IP address(es): 10.5.1.206
Setting CPU units: 1000
Configure meminfo: 149152
Set hostname: vps-1051206.super.vz
VE start in progress...
[dagr@ssw2-ca ~]$ ps -ef| grep loop
root 25193 1 0 08:28 ? 00:00:00 [loop0]
root 25200 1 0 08:28 ? 00:00:00 [loop1]
root 27551 1 0 08:31 ? 00:00:00 [loop2]
root 27556 1 0 08:31 ? 00:00:00 [loop3]
dagr 29060 24812 0 08:31 pts/3 00:00:00 grep loop
[dagr@ssw2-ca ~]$ cat /etc/vz/conf/1051206.mount
#!/bin/bash
#echo mount
mount -n -o loop,ro /vz/shared_vps/php5_base/vps_static_loop_test /vz/root/$VEID/vps_static
mount -n -o loop,ro /vz/shared_vps/php5_base/vps_libs_loop /vz/root/$VEID/vps_libs
[dagr@ssw2-ca ~]$ cat /etc/vz/conf/1051206.umount
#!/bin/bash
echo umount
So eventually all 255 devices will be exhausted
[Updated on: Thu, 15 November 2007 08:37] Report message to a moderator
|
|
|
|
Re: "vzctl stop" - hangs [message #23295 is a reply to message #23285] |
Thu, 15 November 2007 10:34 |
dagr
Messages: 83 Registered: February 2006
|
Member |
|
|
Hmm , thats a good idea anyway , but not sufficient in my case . One of that loopback mounts holds /usr,/sbin,/bin,/lib. So /etc/init.d/halt script just stalls because fuser shows him that fs still busy. So i had to change this script adding "halt; exit 0;" before umount of loopback devices.
Actually it helps even without using bind mounts. Just need to use mounts which do change /etc/mtab and in umounts add umount string for every loopback.
Anyway my problems are solved , tks.
|
|
|