[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

find LVM volume group of a volume



Hi,

I try to write a small script to find a parent LVM volume group of a
logical volume.
With mount command i'm able to find the "device" of the mount point
ex: /dev/mapper/VGNAME-LVNAME

But, when i try to use it with lvdisplay with
'/dev/mapper/VGNAME-LVNAME' as argument, the command fail.
my goal after that is to scan the results of lvdisplay and fond the
"VG Name" line.

Is there a way to easily find the VG of a Logical volume ?

thanks
-- 
Guillaume


Reply to: