Operating System - HP-UX
1833589 Members
3814 Online
110061 Solutions
New Discussion

Re: vgdisplay -v shows ....

 
SOLVED
Go to solution
f. halili
Trusted Contributor

vgdisplay -v shows ....

vgdisplay -v shows " Cannot lock "/etc/lvmconf//lvm_lock" still trying ..."

Any thoughts.

Thanks,
f. halili
derekh
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: vgdisplay -v shows ....

This file means that another LVM process is running.


The safest approach is to reboot. If you can gracefully kill any running LVM commands that might fix you. You could remove the file but that is generally less than wise because it could lead to corrupted data.
If it ain't broke, I can fix that.
Carlos Roberto Schimidt
Regular Advisor

Re: vgdisplay -v shows ....

Him

If you run:

# fuser -u /etc/lvmconf/lvm_lock

Can you see any process?

If you can, try discover who lock the file
Kent Ostby
Honored Contributor

Re: vgdisplay -v shows ....

ps -ef | grep -e lvsync -e vgsync -e lvchange -e lvextend

It means one of two things. Either there is another process using that resource or you rebooted at some point in time in the past when you were doing something to that VG.

Best to reboot if you can, but also do:

ll /etc/lvmconf/lvm_lock

and see if it is before your current reboot (uptime). If it is then you can probably remove it and continue.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Sanjay_6
Honored Contributor

Re: vgdisplay -v shows ....

Hi,

too may vg / lv (eg. vgdisplay / lvdisplay) commands already running on the system.

Your command will complete after a delay.

Do a "ps -ef" and grep for lv / vg commands.

Hope this helps.

regds
James R. Ferguson
Acclaimed Contributor

Re: vgdisplay -v shows ....

Hi:

You may have another LVM process running. Seach the process table for other commands (e.g. 'pvcreate', 'vgcfgbackup', 'lvextend' etc).

If that is the case, and you can gracefully terminate the command, then this should solve your problem. Do *not* kill a 'pvmove'. This could leave a logical volume in an inconsistent state.

If these graceful measures don't resolve the problem a reboot may be required.

Regards!

...JRF...
Mark Greene_1
Honored Contributor

Re: vgdisplay -v shows ....

Run fuser /etc/lvmconf/lvm_lock to get the process ID holding the lock. Alternatively run strings /etc/lvmconf/lvm_lock if the fuser doesn't return anything and the file size is greater than zero.

Then you can kill the process or talk to whomever else is running it.

mark
the future will be a lot like now, only later
Joshua Scott
Honored Contributor

Re: vgdisplay -v shows ....

Hmm...

/etc/lvmconf//lvm_lock

I notice that there is 2 slashes here, is this a typo?

Just checking,
Josh
What are the chances...
Sanjay_6
Honored Contributor

Re: vgdisplay -v shows ....

Hi,

It is not a typo mistake

The error message had two "//" before lvm_lock

Hope this helps.

regds
f. halili
Trusted Contributor

Re: vgdisplay -v shows ....

thanks!
derekh