1831600 Members
2857 Online
110027 Solutions
New Discussion

LVM and "lvm_lock" file

 
Mike Berry_2
Advisor

LVM and "lvm_lock" file

Major probs with using LVM on vg03. Any LVM command returns "Cannot create /etc/lvmconf/lvm_lock"
(file already exists)
Tried reboot. Tried renaming the file (LVM just creates another one).
OS HP-UX11

Can anyone help with this???
Thanks!

Mike Berry
2 REPLIES 2
Frederic Sevestre
Honored Contributor

Re: LVM and "lvm_lock" file

Hi,

Check if there is any lvm command running while you are trying to do use lvm.
This file is created when an lvm command is running.
Check if there is no vgsinc.

Fr??d??ric
Crime doesn't pay...does that mean that my job is a crime ?
Roger Baptiste
Honored Contributor

Re: LVM and "lvm_lock" file

hi,

if the file lvm_lock is there in /etc/lvmconf, remove it and try your LVM commands.

The lock file is created when any lvm command is run, such that the command has exclusive control over the LVM structures; once the command completes, the lock file gets removed autmatically. I guess, you had a LVM command running and it got killed/aborted leaving the lock file.

-raj
Take it easy.