1753427 Members
4729 Online
108793 Solutions
New Discussion юеВ

lvdisplay

 
SOLVED
Go to solution
kishore_11_1
Occasional Advisor

lvdisplay

how to use lvdisplay command and pvdisplay in hp-ux. vgdisplay is working.
5 REPLIES 5
Michal Kapalka (mikap)
Honored Contributor

Re: lvdisplay

hi,

man lvdisplay / pvdisplay

mikap
kishore_11_1
Occasional Advisor

Re: lvdisplay

i did that when i give lvdisplay nothing is coming up
Kapil Jha
Honored Contributor

Re: lvdisplay

lvdisplay /dev/vgname/lvol_X

You have to specify the lvol name.

for pvdisplay

pvdisplay /dev/dsk/cxtxdx


vgdisplay only works without any option.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Suraj K Sankari
Honored Contributor
Solution

Re: lvdisplay

Hi,
>>i did that when i give lvdisplay nothing is coming up

you need to give lvdisplay and lvname see the below examples

from bdf you can get the lv names.
root # bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvroot 262144 237963 22714 91% /
/dev/vg00/lvstand 83733 62035 13324 82% /stand
/dev/vg00/lvvar 2097152 1628092 441321 79% /var
/dev/vg00/lvusr 1048576 833220 201942 80% /usr
/dev/vg01/lvopenv 2048000 440766 1506797 23% /usr/openv
/dev/vg03/lvpatrol 1048576 541690 475229 53% /usr/localcw/opt/patrol
/dev/vg00/lvtmp 614400 2487 574359 0% /tmp
/dev/vg01/lvopt 2097152 976620 1050621 48% /opt

root # lvdisplay -v /dev/vg00/lvroot
--- Logical volumes ---
LV Name /dev/vg00/lvroot
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 256
Current LE 64
Allocated PE 128
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c2t4d0 64 64
/dev/dsk/c3t4d0 64 64

--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2
00000 /dev/dsk/c2t4d0 00388 current /dev/dsk/c3t4d0 00388 current
00001 /dev/dsk/c2t4d0 00389 current /dev/dsk/c3t4d0 00389 current
00002 /dev/dsk/c2t4d0 00390 current /dev/dsk/c3t4d0 00390 current
00003 /dev/dsk/c2t4d0 00391 current /dev/dsk/c3t4d0 00391 current
00004 /dev/dsk/c2t4d0 00392 current /dev/dsk/c3t4d0 00392 current
00005 /dev/dsk/c2t4d0 00393 current /dev/dsk/c3t4d0 00393 current

.
.
.
00061 /dev/dsk/c2t4d0 00449 current /dev/dsk/c3t4d0 00449 current
00062 /dev/dsk/c2t4d0 00450 current /dev/dsk/c3t4d0 00450 current
00063 /dev/dsk/c2t4d0 00451 current /dev/dsk/c3t4d0 00451 current


same as pvdisplay and pvname

ahdbls02 root # pvdisplay -v /dev/dsk/c3t4d0
--- Physical volumes ---
PV Name /dev/dsk/c3t4d0
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 8
PE Size (Mbytes) 4
Total PE 2169
Free PE 12
Allocated PE 2157
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On

--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg00/lvstand 21 21
/dev/vg00/lvpriswap 367 367
/dev/vg00/lvroot 64 64
/dev/vg00/lvusr 256 256
/dev/vg00/lvtmp 150 150
/dev/vg00/lvvar 512 512
/dev/vg00/lvsecswap 768 768
/dev/vg00/lvopenv 19 19

--- Physical extents ---
PE Status LV LE
00000 current /dev/vg00/lvstand 00000
00001 current /dev/vg00/lvstand 00001
00002 current /dev/vg00/lvstand 00002
.
.
.
02164 free 00000
02165 free 00000
02166 free 00000
02167 free 00000
02168 free 00000


Suraj

Kranti Mahmud
Honored Contributor

Re: lvdisplay

Hi kishore_11,

check the below links:

http://docs.hp.com/en/B2355-90681/lvdisplay.1M.html

http://docs.hp.com/en/B2355-90692/pvdisplay.1M.html

Rgds-Kranti
Dont look BACK as U will miss something INFRONT!