• Uncategorized
  • 0

[Solved] Container already locked for OpenVZ VPS

If you get the error as “container already locked” for an OpenVZ VPS when you are trying to stop a VPS, then follow the steps mentioned here. Assume that your VPS ID is 104

Error details:

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

Solution:

1. Remove the lock.

# rm /vz/lock/VE_ID.lck

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

2. Kill the checkpoint

# vzctl chkpnt VE_ID –kill

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

Done! 🙂 🙂

Related links:
WHM showing disk usage 0 for all users in OpenVZ VPS
How to Enable/Check TUN/TAP module in VPS(OpenVZ)

Arunlal Ashok

Sr. Linux Server Administrator. I'm managing Linux servers since 2012. I started this blog to share and discuss my ideas. Check My Profile in uPwork (oDesk) and create a job, if you need any administration help. Thanks!!

You may also like...

Leave a Reply

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