Sunday, 12 August 2012

How to unlock a container in openvz


If you are getting a message as "container already locked", while you try to STOP the VPS :

[root@server ~]# vzctl stop 104
Container already locked

SOLUTION:

 Remove the lock :

 # [root@server ~]#  rm /vz/lock/104.lck
rm: remove regular file `/vz/lock/104.lck'? y

 Kill the checkpoint :

  [root@server ~]#  vzctl chkpnt 104 --kill
Killing...

ENJOY.......!!!!!

No comments:

Post a Comment