Re: find LVM volume group of a volume

2009-10-18 Thread Steve Kemp
On Sun Oct 18, 2009 at 21:56:50 +0200, Guillaume CHARDIN wrote: > But, when i try to use it with lvdisplay with > '/dev/mapper/VGNAME-LVNAME' as argument, the command fail. Try running lvdisplay with no arguments to see a list. Then you'll see output like this: --- Logical volume --- LV

Re: find LVM volume group of a volume

2009-10-18 Thread Steve Kemp
On Sun Oct 18, 2009 at 22:15:19 +0200, Guillaume CHARDIN wrote: > #lvdisplay /dev/mapper/VGNAME-LVNAME | grep "VG Name" > > => the previous command should return the value of the VG name of my > LV but... Not because it fails :) Works for me: r...@gold:~# lvdisplay /dev/mapper/gold--vol-ho

Re: find LVM volume group of a volume

2009-10-18 Thread Guillaume CHARDIN
2009/10/18 Steve Kemp : > On Sun Oct 18, 2009 at 21:56:50 +0200, Guillaume CHARDIN wrote: > >> But, when i try to use it with lvdisplay with >> '/dev/mapper/VGNAME-LVNAME' as argument, the command fail. > > Try running lvdisplay with no arguments to see a list. > > Then you'll see output like thi

find LVM volume group of a volume

2009-10-18 Thread Guillaume CHARDIN
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 go