Bypass the volume group lock
AnthonyEnglish 270000RKFN Comments (2) Visits (23387)
For example, if you run migratepv to move your data to a new, fast-performing LUN (you hope), you might like to check the state of the volume group (VG). If you try to view the VG while it is locked, you'll get a message such as this:
Advice for the impatient
You just want to look at the state of your VG, without changing it and you're getting a "come back later" sign. What can you do about it? Actually, you have a few options:
On LVM list commands, the -L flag lets you view the information without waiting to obtain a lock on the volume group. So, if you come across the message which tells you the volume group is locked, and you really can't wait, you could use:
lsvg -L -l datavg
The first -L doesn't wait for a lock on the volume group. The second one is to list logical volumes.
To list a single logical volume, such as lv00, use
lslv -L lv00
And to list PVs (physical volumes, although these days they're almost always virtual)
lspv -L hdisk3
For more information about these LVM commands, have a look at he command documentation:
To list information about volume groups, use lsvg
lslv displays information about a logical volume.
And lspv displays information about a physical volume in a volume group.