Operating System - HP-UX
1833051 Members
2475 Online
110049 Solutions
New Discussion

Physical volume for a logical volume.

 
SOLVED
Go to solution
Qamar_7
Occasional Advisor

Physical volume for a logical volume.

Hi,

How to find out which PHYSICAL volume a perticullar logical volume belogns to. "vgdisplay -v" shows all the LV's in a VG but no physical volume info.

Regds,
Qamar
5 REPLIES 5
Rajeev  Shukla
Honored Contributor
Solution

Re: Physical volume for a logical volume.

Hi Qamar,

Say the LV is /dev/vg01/lvol1, to see which disk this LV is on do
lvdisplay -v /dev/vg01/lvol1

thats should show the disk, you are looking for.
PVR
Valued Contributor

Re: Physical volume for a logical volume.

#lvdisplay -v /dev/vg*/lvol*

#lvdisplay -v /dev/vgname/lvname

Hope this helps
Don't give up. Try till success...
Hazem Mahmoud_3
Respected Contributor

Re: Physical volume for a logical volume.

You may also find that it is distributed among several physical volumes. Here is how to find out, and also my output is attached. At the end of the output you will see the distribution and how much the lvol is distributed amongst them:

# lvdisplay -v /dev/vg00/lvol7
--- Logical volumes ---
LV Name /dev/vg00/lvol7
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1500
Current LE 375
Allocated PE 750
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c1t6d0 375 375
/dev/dsk/c2t6d0 375 375



(more display below...)

-Hazem
Michael Tully
Honored Contributor

Re: Physical volume for a logical volume.

From the output of each disk (LUN) at the end of the 'vgdisplay -v' report, you use the pvdisplay command to find what is on the disk, or alternatively use 'lvdisplay' to see what disks are being used for each logical volume.
Anyone for a Mutiny ?
Sunil Sharma_1
Honored Contributor

Re: Physical volume for a logical volume.

Hi,

You can run
#pvdisplay -v

to find out the name of logical volumes are there in that physical volume.

#lvdisplay -v /dev/vg/lvol*

will show you which physical volumes are part of that perticulat logical volume

Regards

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***