System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Fail to extend a FS with free PE

SOLVED
Go to solution

Fail to extend a FS with free PE

Good Afternoon,

 

I triy to extend lvol3, but I receive an error that informs tha there is no free physical extents available. But looking on vgdisplay I see free PE. Anyone can help me?

 

# vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4328
VGDA 4
PE Size (Mbytes) 16
Total PE 8636
Alloc PE 7650
Free PE 986
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 1792
Current LE 112
Allocated PE 224
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 800
Current LE 50
Allocated PE 100
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 192
Allocated PE 384
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 112
Current LE 7
Allocated PE 14
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 8496
Current LE 531
Allocated PE 1062
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7488
Current LE 468
Allocated PE 936
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 11008
Current LE 688
Allocated PE 1376
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 625
Allocated PE 1250
Used PV 2

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 640
Allocated PE 1280
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c1t0d0s2
PV Status available
Total PE 4318
Free PE 493
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c1t1d0s2
PV Status available
Total PE 4318
Free PE 493
Autoswitch On
Proactive Polling On

 

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 819200 569648 248200 70% /
/dev/vg00/lvol1 1835008 202800 1619544 11% /stand
/dev/vg00/lvol8 10240000 8367016 1858480 82% /var
/dev/vg00/lvol7 7667712 7257176 409000 95% /usr
/dev/vg00/lvol4 3145728 1318944 1814328 42% /tmp
/dev/vg00/lvol10 10485760 19651 9811985 0% /p_84006_sigpb_11g
/dev/vg00/lvol9 10240000 5155820 4766440 52% /p_84006_sigpb_10g

 

# lvextend -L 2048 /dev/vg00/lvol3
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy

 

Thanks,

Alexandre Teixeira

 

1 REPLY
Patrick Wallek
Honored Contributor
Solution

Re: Fail to extend a FS with free PE

LVOL's 1( / ), 2 (Primary Swap) and 3 ( /stand ) in VG00 MUST be made up of contiguous extents.  The only way to extend lvol3 is to move lvol4 out of the way, and then extend lvol3 using the extents that lvol4 used to occupy.

 

The real question is why do you think lvol3 needs expanding?  I've got an 11.31 server that is only using 150 MB in lvol3 and an 11.11 server that uses only 200 MB in lvol3.

 

I think the first thing to do is look in / and see if there is anything taking up space that should not be there.

 

# cd /

# du -ksx * | sort -n

 

Will show you the largest directories at the end.  However, make sure you look at directories and not other mount points (like /usr, /var, /tmp, /opt, etc).

 

The usual culprit for a large '/' is that someone specified an incorrect tape device and you suddenly have a large file in /dev/rmt that should not be there.