Container already locked error - Openvz

Started by Manish, June 02, 2016, 04:01:33 PM

Previous topic - Next topic

Manish

Hello,

If you receive this message when you try to stop/start the container:
Quote[root@server ~]# vzctl start 302
Container already locked

To fix the issue delete the lock file of the container.
Quote[root@server ~]# rm /vz/lock/302.lck
rm: remove regular file `/vz/lock/302.lck'? y

After that start the container:
Quote[root@server ~]# vzctl start 302
Starting container...
Container is mounted
Container start in progress...

That's it  :)