[Hot to FIX] vzquota : (error) can't lock quota file

Hi ,

To fix this issue ,

[ vzquota : (error) can't lock quota file, some quota operations are performing for id 101 ]

First you need to open your ssh session and run this command:

ps ax | grep vzquota

Then kill the pid for example :

kill -9 1234

And then try to start the vz container

vzquota off id

vzctl start id

After that your openvz container should work fine, Some openvz nodes needs to fix the quota and this need some time depending on your quota size, if your openvz doesn't run after awhile then you need to check the availability of ram inside your openvz to see if there is enough ram or not by running the following command:

free -m

Have a nice day.

Top News