Operating System - HP-UX
1834772 Members
2934 Online
110070 Solutions
New Discussion

Re: /etc/lvmconf/lvm_lock

 
SOLVED
Go to solution
Helen French
Honored Contributor

/etc/lvmconf/lvm_lock

Hi,

I am running make_tape_recovery on my server (10.20) and got the following message in between (the command completed successfully though):

Cannot lock "/etc/lvmconf//lvm_lock" still trying ......

I know the lvm_lock file, preventing from two lvm commands update/access the lvmtab file simultaneously. But do I need to concern about this message ? Is this common ?

Thanks for your inputs ..
Shiju
Life is a promise, fulfill it!
7 REPLIES 7
Sanjay_6
Honored Contributor
Solution

Re: /etc/lvmconf/lvm_lock

Hi Shiju,

I don't think there should be a problem. Probably someone was trying to do a vgsync on the vg for which this error message came at the same time when you were doing a make_recovery.

Hope this helps.

Regds
S.K. Chan
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Means system has attempted to lock the lvm_lock file 5 times using lockf() and failed since another command already has it locked. Every 10 attempts the command sleeps for 1 second before trying again. Sanjay's right.
What you don't want to do is remove the lock
file and that'll end up corrupting lvmtab file.
Helen French
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Hi Sanjay and S.K,

Thanks for your replies. I 've checked the syslog file and found make_tape_recovery invoked 'vgsync' commands for all VGs. At the same time, it was doing other LVM commands like 'vgcfgbackup', 'vgexport' etc.

So probably that was the reason !

Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Hi Shiju,

you may want to check the vg for which this vgsync command and the vgcfgbackup commands clashed. Normally the commands are issued one by one and so it should not be a problem. There would be a delay in the vgsync command if the vg is not sync, i.e. if a couple of extents or lv are out of sync in the mirror. I've not observed this errors in my make_recovery routines. So this is not a common problem.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Sanjay,

Couple of things:

1) I 've seen 'vgsync' and other LVM commands running at the same time ( same seconds ) in syslog file.

2) The message started when it was accessing vg00 ( which is mirrored ), but repeated on vg03 ( which is not mirrored !).

Does this make any sense ?

I think these messages are not there if I execute make_recovery ( not make_tape_recovery)

Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Hi Shiju,

check your crontab file and see if the root id has scheduled vgsync / vgcfgbackup in the cron.

Hope this helps.

Regds
Helen French
Honored Contributor

Re: /etc/lvmconf/lvm_lock

Hi,

There is no crontab file itself and no other scheduled jobs ! No other root logins too !

Shiju
Life is a promise, fulfill it!