OpenVZ Forum


Home » General » Support » The vps is locked by another user
The vps is locked by another user [message #32281] Wed, 30 July 2008 10:09 Go to next message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
Hello,

I have following error when i try to start some of our vps:

The vps konkoor87.vm is locked by another user. This would also be because you had interrupted an earlier activity that would take long time to complete. HyperVM has waited 15 seconds for the other process to finish. Please try after sometime.

I cant start vps with following too:
vzctl --skiplock start 380

and see following:
Starting VE ...
vzquota : (error) can't lock quota file, some quota operations are performing for id 380
vzquota on failed [7]

I see following in /vz/lock too:
310.lck 320.lck 330.lck 370.lck 380.lck

How can resolve this issue?

Thanks
Re: The vps is locked by another user [message #32284 is a reply to message #32281] Wed, 30 July 2008 11:09 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

try this:
vzctl stop 380
vzquota off 380 (vzquota -f off 380).
Re: The vps is locked by another user [message #32285 is a reply to message #32284] Wed, 30 July 2008 11:16 Go to previous messageGo to next message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
Hi,

Thank for reply, but its not resolve my issue too:

[root@##### ~]# vzctl stop 380
VE already locked

[root@##### ~]# vzquota off 380
vzquota : (error) can't lock quota file, some quota operations are performing for id 380


Do you have any idea?
Re: The vps is locked by another user [message #32288 is a reply to message #32285] Wed, 30 July 2008 11:49 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

Is it possible to remove 380.lck file and then "vzquota drop 380"? Then quota must be recalculated.
Re: The vps is locked by another user [message #32289 is a reply to message #32288] Wed, 30 July 2008 11:53 Go to previous messageGo to next message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
It's not ok too:

[root@ lock]# rm -rf 380.lck
You have new mail in /var/spool/mail/root
[root@ lock]# ls
320.lck 330.lck
[root@m5088 lock]# vzquota drop 380
vzquota : (error) can't lock quota file, some quota operations are performing for id 380
Re: The vps is locked by another user [message #32293 is a reply to message #32289] Wed, 30 July 2008 12:37 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

You shouldn't have been simply delete the file.

Ok,
1. Could you possibly show:
cat 320.lck
cat 330.lck

there should be some numbers.
could you please the check:
ls /proc/number
ps aux | grep number
Re: The vps is locked by another user [message #32297 is a reply to message #32293] Wed, 30 July 2008 13:03 Go to previous messageGo to next message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
[root@ 23408]# ls /proc/23408
auxv cwd fd maps mountstats oom_score smaps status
cmdline environ io mem numa_maps root stat task
cpuset exe loginuid mounts oom_adj schedstat statm wchan



[root@m5088 23408]# ps aux | grep 23408
root 4324 0.0 0.0 61120 740 pts/2 S+ 16:00 0:00 grep 23408
nobody 6544 0.0 0.1 23408 9960 ? SN 15:49 0:00 /usr/local/apache/bin/httpd -k start -DSSL
root 23408 0.0 0.0 9080 740 pts/1 S+ 15:20 0:00 vzctl start 380


Special thanks for your help. Razz
Re: The vps is locked by another user [message #32300 is a reply to message #32297] Wed, 30 July 2008 13:15 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1.
Quote:


root 23408 0.0 0.0 9080 740 pts/1 S+ 15:20 0:00 vzctl start 380


Somebody tries to start VE 380?

2.
please show;

cat /proc/23408/wchan
strace -p 23408 (wait a few minutes).
Re: The vps is locked by another user [message #32301 is a reply to message #32300] Wed, 30 July 2008 13:28 Go to previous messageGo to next message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
1- Yes, it me. im use "vzctl start 380" after reboot server for start this vps and see:
[root@ ~]# vzctl start 380
Starting VE ...
vzquota : (warning) Incorrect quota shutdown for id 380, recalculating disk usage

But its taking unusally long time for recalculating disk usage and ctrl+c is not work for cancle this command too.

2- A) cat: do_wait
B) strace: Process 23408 attached - interrupt to quit wait4(23423,
0x7fff9da80e84, 0, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
wait4(23423, 0x7fff9da80e84, 0, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
wait4(23423, 0x7fff9da80e84, 0, NULL) = ? ERESTARTSYS (To be restarted)
--- SIGINT (Interrupt) @ 0 (0) ---
wait4(23423,
Re: The vps is locked by another user [message #32306 is a reply to message #32301] Wed, 30 July 2008 13:52 Go to previous messageGo to next message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

1.
recalculating disk usage - may be a very long process.
May be it worth waiting.
If this process doesn't wake up you can get the call trace of vzctl process via Alt-SysRq-T command but it shows a lot of information so there is a chance that syslog won't save appropriate information in /var/log/messages. If you want you can set serial console.

2.
More radical way is killing vzctl process.
I don't know if it helps. But you can try.
Try to off and drop quota after killing vzctl (vzquota off 380 (or vzquota off 380 -f), vzquota drop 380). Then try to start again.


by the way could you please estimate disk space of that VE. Is it huge?
Re: The vps is locked by another user [message #32307 is a reply to message #32306] Wed, 30 July 2008 13:59 Go to previous message
gozargah is currently offline  gozargah
Messages: 32
Registered: June 2008
Member
Hi,

Thank you very much.
Problem resolved after i killing vzctl process and stop vzquota and start vzctl for 380.

Thank you again. Cool
Previous Topic: [Solved] First slow ping on CTs
Next Topic: Remove an ostemplate from openvz
Goto Forum:
  


Current Time: Mon Nov 04 07:28:28 GMT 2024

Total time taken to generate the page: 0.04361 seconds