if you get error “vzquota : (error) can’t lock quota file, some quota operations are performing for id”

vzquota : (error) can’t lock quota file, some quota operations are performing for id 5000
vzquota on failed [7]

use below commands to check the process which has locked it

[root@server9 lock]# ps ax | grep vzctl
10400 pts/0    T      0:00 vzctl start 5000

#  kill -9 10400

Now restart VPS using vzctl restart 5000  where 5000 is the VEID :)