Operating System - Linux
1829905 Members
1502 Online
109993 Solutions
New Discussion

How I know what is the mount point and lvol and vg for cciss/c0d1?

 
nataris
Advisor

How I know what is the mount point and lvol and vg for cciss/c0d1?

How I know what is the mount point and lvol and vg for cciss/c0d1?

Please help to advise
2 REPLIES 2
smatador
Honored Contributor

Re: How I know what is the mount point and lvol and vg for cciss/c0d1?

Hi,
With fdisk -l you have the partition of the disk get the LVM partition for example p2
with pvdisplay /dev/cciss/c0d1p2 you get the volume group
so VGNAME=$(pvdisplay /dev/cciss/c0d1p2 | grep "VG Name" |awk '{ print $3 }')
next step get the lvolname with the vg
vgdisplay -v $VGNAME | grep "LV Name" | awk '{ print $3 }
after that you could get the mount point associate with the lvolname.
Hope it helps


mohamed.bouraoui
Frequent Advisor

Re: How I know what is the mount point and lvol and vg for cciss/c0d1?

Hi friend,
use vgdisplay -v tu display all vgs and lv,disk related to those vgs, if you know the vg use, vgdisplay -v vg, to display all infos (disks include).
good luck.