1833912 Members
2356 Online
110063 Solutions
New Discussion

Physical volumes in LVM

 
SOLVED
Go to solution
susee_sundar
Regular Advisor

Physical volumes in LVM

Hi ,

How can i find all the physical volumes in my volume group from the command line.

Is there any command called

#lvmdisplay

Give me a guide line

4 REPLIES 4
Arunvijai_4
Honored Contributor

Re: Physical volumes in LVM

Hi Susee,

You can use
# lvdisplay -v /dev/vg00/arunlv
--- Logical volumes ---
LV Name /dev/vg00/arunlv
VG Name /dev/vg00
LV Permission read-only
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 128
Current LE 16
Allocated PE 16
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t0d0 16 16

--- Logical extents ---
LE PV1 PE1 Status 1
00000 /dev/dsk/c2t0d0 04116 current
00001 /dev/dsk/c2t0d0 04117 current
00002 /dev/dsk/c2t0d0 04118 current
00003 /dev/dsk/c2t0d0 04119 current
00004 /dev/dsk/c2t0d0 04120 current
00005 /dev/dsk/c2t0d0 04121 current
00006 /dev/dsk/c2t0d0 04122 current
00007 /dev/dsk/c2t0d0 04123 current
00008 /dev/dsk/c2t0d0 04124 current
00009 /dev/dsk/c2t0d0 04125 current
00010 /dev/dsk/c2t0d0 04126 current
00011 /dev/dsk/c2t0d0 04127 current
00012 /dev/dsk/c2t0d0 04128 current
00013 /dev/dsk/c2t0d0 04129 current
00014 /dev/dsk/c2t0d0 04130 current
00015 /dev/dsk/c2t0d0 04131 current

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Enrico P.
Honored Contributor
Solution

Re: Physical volumes in LVM

Hi,
vgdisplay -v

also you can check it with from lvmtab file

strings /etc/lvmtab

Enrico
Torsten.
Acclaimed Contributor

Re: Physical volumes in LVM

The command

# vgdisplay -v vgxx

will give you all physical volumes and alternate pathes at the end.
You can also run

# strings /etc/lvmtab

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
susee_sundar
Regular Advisor

Re: Physical volumes in LVM

I got the solution with

#vgdisplay -v vg04

and

#strings /etc/lvmtab