Operating System - HP-UX
1757302 Members
3153 Online
108860 Solutions
New Discussion

Re: LVM Pvdisplay or lvdisplay

 
Rohak
Advisor

LVM Pvdisplay or lvdisplay

I want to grep only logical volume name from
pvdisplay -v /dev/dsk/cxtydz
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vgabc/abclvol1 47 47

and LVdisplay want to grep only
PV name
1 REPLY 1
James R. Ferguson
Acclaimed Contributor

Re: LVM Pvdisplay or lvdisplay

Hi:

# pvdisplay -v /dev/dsk/cxtydz|perl -ne '/Distribution/.../^\s*$/ and print'

# lvdisplay -v /dev/vgabc/abclvol1|perl -ne '/Distribution/../^\s*$/ and print'

Regards!

...JRF...