[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


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

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

DevOps (Server & Cloud infrastructure) Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas. Always happy for an open discussion! Write to arun (@) crybit (dot) com

You may also like...

Leave a Reply

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