OpenVZ

Openvz Can’t Started/Rebooted

Somehow when we try to reboot Openvz from solusvm panel, then its take a long time to reboot (no process running). Then Check directly from Openvz Host, its showing Offline.

# vzlist -a | grep pioneer
1000089 – stopped 43.229.129.125 pioneer-infotech2.netdns.net

Then trying to start it manually, its showing this error:

#vzctl start 100089
Locked by: pid 258720, cmdline /usr/sbin/vzctl restart 1000089
Container already locked

Then the solution is:
– Kill all process related with 1000089
# ps -aux | grep 100089
# kill -9 pid
– Rename file
# mv /vz/lock/1000089.lck /vz/lock/1000089.lck-old
– try to start the vm again and it will showing another error
# vzctl start 1000089

Starting container…
Error in do_lock (lock.c:132): The /vz/private/1000089/root.hdd/DiskDescriptor.xml.lck is locked: Resource temporarily unavailable
Error in do_lock (lock.c:132): The /vz/private/1000089/root.hdd/DiskDescriptor.xml.lck is locked: Resource temporarily unavailable
Failed to mount image: Error in do_lock (lock.c:132): The /vz/private/1000089/root.hdd/DiskDescriptor.xml.lck is locked: Resource temporarily unavailable [23]
– Rename back the file
# mv /vz/lock/1000089.lck-old /vz/lock/1000089.lck
– Try start again the VM
# vzctl start 1000089


Leave a Reply

Your email address will not be published. Required fields are marked *