OpenVZ Forum


Home » General » Support » *solved* VPS reboot/destroy
Re: VPS reboot/destroy [message #22950 is a reply to message #22912] Wed, 07 November 2007 21:36 Go to previous messageGo to previous message
neto is currently offline  neto
Messages: 4
Registered: November 2007
Junior Member
Hi maratrus,

Thanks for your reply.

maratrus wrote on Wed, 07 November 2007 08:20

Hi,
1. What version of vzctl do you use?



server1:~# dpkg -l | grep vz
ii linux-image-2.6.18-openvz-amd64 028.18.1-2.6.18-12-1 Linux kernel binary image for version 2.6.18
ii vzctl 3.0.11-13 server virtualization solution - control too
ii vzdump 1.0-2 OpenVZ backup scripts
ii vzquota 3.0.8-2 server virtualization solution - quota tools

maratrus wrote on Wed, 07 November 2007 08:20


2. If it is possible can you please conduct this experiment with the latest version of vzctl?



By latest vestion do you mean a development version? Sure I can try it. Just let me know where to grab it from.

maratrus wrote on Wed, 07 November 2007 08:20


3. Does it mean that lsof output doesn't contain any process which uses some file from ve private area?


Thats correct.

maratrus wrote on Wed, 07 November 2007 08:20


4. In the last case please pay attention at the message
Quote:

vzquota : (warning) Quota is running for id 125 already

try
a) vzctl stop 125
b) vzquota off 125
c) vzquota drop 125
d) vzctl start 125
e) vzctl restart 125
f) vzctl destroy 125
Thank You!


It seems that if the VE is stopped (even a vzctl stop) this happens.

Here is what I just tried (following the sequence you've put:

server1:~# vzctl create 105 --
server1:~# vzctl create 105 --ostemplate debian-4.0-amd64-minimal
Creating VPS private area: /var/lib/vz/private/105
Performing postcreate actions
VPS private area was created
server1:~# vzctl start 105
Starting VPS ...
VPS is mounted
Setting CPU units: 1000
VPS start in progress...
server1:~# vzctl stop 105
Stopping VPS ...
VPS was stopped
VPS is not mounted
server1:~# vzquota off 105
server1:~# vzquota drop 105
server1:~# vzctl start 105
Starting VPS ...
Initializing quota ...
VPS is mounted
Setting CPU units: 1000
VPS start in progress...
server1:~# vzctl restart 105
Restarting VPS
Stopping VPS ...
VPS was stopped
VPS is not mounted
Starting VPS ...
vzquota : (warning) Quota is running for id 105 already
VPS is mounted
Setting CPU units: 1000
VPS start in progress...
server1:~# vzctl stop 105
Stopping VPS ...
VPS was stopped
VPS is not mounted
server1:~# vzquota off 105
server1:~# vzquota drop 105
server1:~# vzquota show 105
vzquota : (error) Can't open quota file for id 105, maybe you need to reinitialize quota: No such file or directory
vzquota : (error) Quota file must exist for show command
server1:~# vzctl destroy 105
Destroying VPS private area: /var/lib/vz/private/105
Can't move /var/lib/vz/private/105 -> /var/lib/vz/tmp/X8zw8wd: Device or resource busy


Even though after the vzctl stop, vzquota off, and vzquota drop the vzctl start no longer complains that the quota is running, if I try to destroy it, it still won't let me.

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Fedora 64 bit templates
Next Topic: Help with performance problem.
Goto Forum:
  


Current Time: Mon Jul 07 08:12:08 GMT 2025

Total time taken to generate the page: 0.03258 seconds