Operating System - HP-UX
1833059 Members
2770 Online
110049 Solutions
New Discussion

lvextend fail on hpux 11.31

 
La_4
Advisor

lvextend fail on hpux 11.31

H,

I amtrying to add another 10gb disk to an existing logical volume 155gb. it fails. I also did vgmodify -r -v -o vgname and still not working.

below is the output of command lines
root@server5:/home/root$ lvextend -L 169808 /dev/vgicastst/lvdata
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgicastst/lvdata" could not be extended.

root@server5:/home/root$ vgdisplay vgicastst
--- Volume groups ---
VG Name /dev/vgicastst
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 8
Open LV 8
Max PV 32
Cur PV 17
Act PV 17
Max PE per PV 14332
VGDA 34
PE Size (Mbytes) 4
Total PE 59019
Alloc PE 51411
Free PE 7608
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1834496m
VG Max Extents 458624

thanks in advance.
8 REPLIES 8
Berd
Trusted Contributor

Re: lvextend fail on hpux 11.31

La,

/dev/vgicastst is a volume group not a logical volume.

Berd
La_4
Advisor

Re: lvextend fail on hpux 11.31

That's right vgicastst is volume group and lvdata is logical volume in vgicastst.

I try to add 10gb to lvdata to increase disk space to 166gb from 155gb and error is not enough physical extents. How to determine of how many physical extents that i need to accomodate this 10gb?

Thanks,
melvyn burnard
Honored Contributor

Re: lvextend fail on hpux 11.31

well what does the lvdisplay give you? if it has Strict settings, that may be the issue.
From the above you have 7608 PE's available at 4MB/PE, or 28GB.
Check the lvdisplay output, or post here
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
La_4
Advisor

Re: lvextend fail on hpux 11.31

root@ottux005:/home/root$ lvdisplay /dev/vgicastst/lvdata
--- Logical volumes ---
LV Name /dev/vgicastst/lvdata
VG Name /dev/vgicastst
LV Permission read/write
LV Status available/syncd
Mirror copies 2
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 159568
Current LE 39892
Allocated PE 39893
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation non-strict
IO Timeout (Seconds) default
宋明哲
Honored Contributor

Re: lvextend fail on hpux 11.31

U have two Mirror copies? and pls share Ur Vgdisplay -v to list the Free PE of PV;

If Ur Free PE of 3 PV cannot offer enough PE, then the lvextend will fail;
I'm back, water king
La_4
Advisor

Re: lvextend fail on hpux 11.31

Hi,

Some some reason, we have mirror copies = 2 and don't know why is there. All of our lvs are mirrored.

root@server5:/home/root$ vgdisplay -v vgicastst
--- Volume groups ---
VG Name /dev/vgicastst
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 8
Open LV 8
Max PV 32
Cur PV 17
Act PV 17
Max PE per PV 15612
VGDA 34
PE Size (Mbytes) 4
Total PE 59018
Alloc PE 51411
Free PE 7607
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1998336m
VG Max Extents 499584

--- Logical volumes ---
LV Name /dev/vgicastst/lvhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvora
LV Status available/syncd
LV Size (Mbytes) 17000
Current LE 4250
Allocated PE 4251
Used PV 4

LV Name /dev/vgicastst/lvdata
LV Status available/syncd
LV Size (Mbytes) 159568
Current LE 39892
Allocated PE 39893
Used PV 15

LV Name /dev/vgicastst/lvexport
LV Status available/syncd
LV Size (Mbytes) 28800
Current LE 7200
Allocated PE 7200
Used PV 7

LV Name /dev/vgicastst/lvinfohtst
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvinfohtstdata
LV Status available/syncd
LV Size (Mbytes) 252
Current LE 63
Allocated PE 63
Used PV 1

LV Name /dev/vgicastst/lvgrntmhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvoraxhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk615
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk416
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk399
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk641
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk642
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk640
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk407
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk658
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk657
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk656
PV Status available
Total PE 3472
Free PE 848
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk659
PV Status available
Total PE 3472
Free PE 3189
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk593
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk592
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk591
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk589
PV Status available
Total PE 3471
Free PE 99
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk590
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk684
PV Status available
Total PE 3471
Free PE 3471
Autoswitch On
Proactive Polling On

Terry McLean
New Member

Re: lvextend fail on hpux 11.31

Hi,

Some some reason, we have mirror copies = 2 and don't know why is there. OTHER LOGICAL VOLUMES IN THIS VG ARE NOT mirrored, ONLY THIS ONE DOES.

root@server5:/home/root$ vgdisplay -v vgicastst
--- Volume groups ---
VG Name /dev/vgicastst
VG Write Access read/write
VG Status available, exclusive
Max LV 255
Cur LV 8
Open LV 8
Max PV 32
Cur PV 17
Act PV 17
Max PE per PV 15612
VGDA 34
PE Size (Mbytes) 4
Total PE 59018
Alloc PE 51411
Free PE 7607
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
VG Version 1.0
VG Max Size 1998336m
VG Max Extents 499584

--- Logical volumes ---
LV Name /dev/vgicastst/lvhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvora
LV Status available/syncd
LV Size (Mbytes) 17000
Current LE 4250
Allocated PE 4251
Used PV 4

LV Name /dev/vgicastst/lvdata
LV Status available/syncd
LV Size (Mbytes) 159568
Current LE 39892
Allocated PE 39893
Used PV 15

LV Name /dev/vgicastst/lvexport
LV Status available/syncd
LV Size (Mbytes) 28800
Current LE 7200
Allocated PE 7200
Used PV 7

LV Name /dev/vgicastst/lvinfohtst
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvinfohtstdata
LV Status available/syncd
LV Size (Mbytes) 252
Current LE 63
Allocated PE 63
Used PV 1

LV Name /dev/vgicastst/lvgrntmhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1

LV Name /dev/vgicastst/lvoraxhome
LV Status available/syncd
LV Size (Mbytes) 4
Current LE 1
Allocated PE 1
Used PV 1


--- Physical volumes ---
PV Name /dev/disk/disk615
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk416
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk399
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk641
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk642
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk640
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk407
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk658
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk657
PV Status available
Total PE 3472
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk656
PV Status available
Total PE 3472
Free PE 848
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk659
PV Status available
Total PE 3472
Free PE 3189
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk593
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk592
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk591
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk589
PV Status available
Total PE 3471
Free PE 99
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk590
PV Status available
Total PE 3471
Free PE 0
Autoswitch On
Proactive Polling On

PV Name /dev/disk/disk684
PV Status available
Total PE 3471
Free PE 3471
Autoswitch On
Proactive Polling On
S. Ney
Trusted Contributor

Re: lvextend fail on hpux 11.31

What does the distribution of the logical volume look like when doing your lvdisplay command?

For example on my mirrored lvol:
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 7168
Current LE 448
Allocated PE 896
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/c0t1d0 448 448
/dev/dsk/c1t0d0 448 448

I notice that your policy is non-strict, make sure your mirrors aren't on the same disk. Also if not needed you can always reduce the mirror(s):
umount from mount point
lvreduce -m 0 /dev/vgicastst/lvdata /dev/dsk/(disk #)