OpenVZ Forum


Home » General » Support » "vzctl stop" - hangs
Re: "vzctl stop" - hangs [message #23279 is a reply to message #23274] Thu, 15 November 2007 08:22 Go to previous messageGo to previous message
dagr is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* VE connect with physical interface
Next Topic: Cannot Start VE - Unable to set capability: Operation not permitted
Goto Forum:
  


Current Time: Wed Jul 10 01:53:48 GMT 2024

Total time taken to generate the page: 0.02462 seconds