Re: lvextend: Not enough free physical extents available (349 Views)
Reply
Contributor
sapoguheman
Posts: 12
Registered: ‎02-07-2013
Message 1 of 3 (378 Views)

lvextend: Not enough free physical extents available

[ Edited ]

I have added the new disk of 33 gb to this system under vgp29_2.

The given LV is mirrored and while extending I get the below error.

 

Can someone please share the inputs what is stopping me to extend the filesystem even though i have good space in VG.

 

Filesystem          kbytes    used   avail %used Mounted on
/dev/vgp29_2/lv_sd3
                   49219584 46057744 3137144   94% /oracle/P29/sapdata3
[nlxdsm92:/]# lvdisplay /dev/vgp29_2/lv_sd3
--- Logical volumes ---
LV Name                     /dev/vgp29_2/lv_sd3
VG Name                     /dev/vgp29_2
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               1
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            48072
Current LE                  6009
Allocated PE                12018
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

[nlxdsm92:/]# vgdisplay /dev/vgp29_2
--- Volume groups ---
VG Name                     /dev/vgp29_2
VG Write Access             read/write
VG Status                   available, exclusive
Max LV                      255
Cur LV                      6
Open LV                     6
Max PV                      128
Cur PV                      11
Act PV                      11
Max PE per PV               4315
VGDA                        22
PE Size (Mbytes)            8
Total PE                    47454
Alloc PE                    43086
Free PE                     4368
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

[nlxdsm92:/]# bc
1024*8
8192
49219584/1024
48066
48066+8192
56258
quit
[nlxdsm92:/]# lvextend -L 56258m /dev/vgp29_2/lv_sd3
Warning: rounding up logical volume size to extent boundary at size "56264" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vgp29_2/lv_sd3" could not be extended.
Failure possibly caused by strict allocation policy
[nlxdsm92:/]# vgdisplay -v /dev/vgp29_2 | grep -i free
Free PE                     4368
   Free PE                     0
   Free PE                     0
   Free PE                     0
   Free PE                     0
   Free PE                     27
   Free PE                     0
   Free PE                     0
   Free PE                     27
   Free PE                     0
   Free PE                     0
   Free PE                     4314
[nlxdsm92:/]#

 

 

P.S. this trhead has been moved from HP 9000 to HP-UX > LVM. - Hp Forum Moderator

Please use plain text.
Honored Contributor
Robert_Jewell
Posts: 1,234
Registered: ‎06-26-2001
Message 2 of 3 (349 Views)

Re: lvextend: Not enough free physical extents available

The logical volume is mirrored and therefore by default has strict allocation set.  This means that all of the extents (both sets of mirrored data) are not allowed on one Physical Volume.   Since you only added one PV the allocation policy prevents you from extending the LV to this volume.  The reasoning is that you want to protect the data by using mirroring, however if both sets of mirrored extents are on the same PV and that PV goes away, how are you protected?

 

Add a second PV and you will be able to do what you need to do.

 

 

-Bob

Please use plain text.
Occasional Advisor
JayroSaycon
Posts: 12
Registered: ‎11-27-2013
Message 3 of 3 (278 Views)

Re: lvextend: Not enough free physical extents available

Hi,

 

From your vgdisplay output:

 

VG Name                     /dev/vgp29_2 

PE Size (Mbytes)            8

Free PE                     4368

 

 

You only have total free space of 34944 MB on the said VG.

 

And based from your lvextend output, you tried to extend it to 56258MB.

 

[nlxdsm92:/]# lvextend -L 56258m /dev/vgp29_2/lv_sd3

 

 

Therefore, you have no sufficient space to come up with 56258 MB since you only have 34944 MB free space on that VG.

You need to add up and present additional disks to that VG to cater your needed LV size.

 

 

Cheers!

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation