Operating System - HP-UX
1753792 Members
7060 Online
108799 Solutions
New Discussion

Can't extend a LV (lvextend: Not enough free physical extents available.)

 
SOLVED
Go to solution
himel
Occasional Contributor

Can't extend a LV (lvextend: Not enough free physical extents available.)

I want to extend the lv on hp-ux, but I can't. One message shown that "lvextend: Not enough free physical extents available". OS Information is given bellow. Please help me ...

 

bash-4.1# vgdisplay -v vg26
--- Volume groups ---
VG Name                          /dev/vg26
VG Write Access             read/write
VG Status                          available
Max LV                               511
Cur LV                                1
Open LV                            1
Max PV                             511
Cur PV                              1
Act PV                              1
Max PE per PV               131072
VGDA                                2
PE Size (Mbytes)            64
Total PE                            47
Alloc PE                            47
Free PE                            0
Total PVG                        0
Total Spare PVs             0
Total Spare PVs in use 0
VG Version                      2.0
VG Max Size                    8t
VG Max Extents             131072

   --- Logical volumes ---
   LV Name                     /dev/vg26/lvol1
   LV Status                   available/syncd
   LV Size (Mbytes)            3008
   Current LE                  47
   Allocated PE                47
   Used PV                     1


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

 

bash-4.1# lvextend -L 5056 /dev/vg26/lvol1
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg26/lvol1" could not be extended.
Failure possibly caused by strict allocation policy

bash-4.1# uname -a
HP-UX OBL-DB2 B.11.31 U ia64 2780415912 unlimited-user license

 

 

P.S. This thread has been moved from Community Feedback & Suggestions > HP-UX > LVM  - HP Forums moderator

 

 

 

 

2 REPLIES 2
Matti_Kurkela
Honored Contributor
Solution

Re: Can't extend a LV (lvextend: Not enough free physical extents available.)

> Free PE                            0

 

All the available capacity in the VG has already been used. To extend the LV, you must first add some more capacity to the VG, either by adding one or more new PVs or by extending the existing PV. Adding new PVs is usually recommended, although extending the existing PV is possible too.

 

Have the storage administrator present you a new disk/LUN. Use "ioscan -fnNCdisk" to confirm that it is visible to the system. If necessary, run "insf" to create the device nodes for it.

 

Once the new disk is visible as e.g. /dev/[r]disk/disk99, use pvcreate to initialize it as a LVM PV, and then vgextend to add it to your volume group:

 

pvcreate /dev/rdisk/disk99
vgextend vg26 /dev/disk/disk99

After this, you should be able to proceed with the lvextend operation as usual.

MK
himel
Occasional Contributor

Re: Can't extend a LV (lvextend: Not enough free physical extents available.)

Thanks a lot. lvextend is working now.