Operating System - HP-UX
1820147 Members
3377 Online
109620 Solutions
New Discussion юеВ

lvextend: Not enough free physical extents available.

 
SOLVED
Go to solution
Grayh
Trusted Contributor

lvextend: Not enough free physical extents available.

# lvextend -L 51200M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
Failure possibly caused by strict allocation policy
# lvextend -l 51200M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
Failure possibly caused by strict allocation policy
# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 5016
VGDA 2
PE Size (Mbytes) 8
Total PE 5006
Alloc PE 3274
Free PE 1732
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 224
Allocated PE 224
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 128
Allocated PE 128
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 64
Allocated PE 64
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 104
Current LE 13
Allocated PE 13
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 7672
Current LE 959
Allocated PE 959
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7176
Current LE 897
Allocated PE 897
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 5864
Current LE 733
Allocated PE 733
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t2d0s2
PV Status available
Total PE 5006
Free PE 1732
Autoswitch On
Proactive Polling On

The disks are mirrored(h/w raid 1)

Now to increase lvol5... can i use the the following
lvchange -D n /dev/vg01/lvol2
and then
lvextend -L 51200M ....
vgextend...
36 REPLIES 36
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

# lvchange -D n /dev/vg00/lvol5
Logical volume "/dev/vg00/lvol5" has been successfully changed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
# lvextend -l 51200M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
Failure possibly caused by strict allocation policy
Tim Nelson
Honored Contributor

Re: lvextend: Not enough free physical extents available.

You only have 1732 extents avail, @ 8MB an extent that is about only 13GB. YOu are trying to grow this to 51GB.

You DO NOT have enough storage in thie VG to satisfy your request.

The max you can do would be close to.
lvextend -L 13000 /dev/vg00/lvol5
or
lvextend -l 1732 /dev/vg00/lvol5

Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

# lvdisplay /dev/vg00/lvol5
--- Logical volumes ---
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 104
Current LE 13
Allocated PE 13
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

This machine is a VM Guest

and now I was successfully able to extend lvol5 to 12g

# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 1048576 283512 759144 27% /
/dev/vg00/lvol1 1835008 80496 1740912 4% /stand
/dev/vg00/lvol8 6004736 2110320 3865280 35% /var
/dev/vg00/lvol7 7348224 2525000 4785600 35% /usr
/dev/vg00/lvol4 524288 110448 410616 21% /tmp
/dev/vg00/lvol6 7856128 3797536 4026928 49% /opt
/dev/vg00/lvol5 13312000 102344 13106512 1% /home


--- Physical volumes ---
PV Name /dev/dsk/c0t2d0s2
PV Status available
Total PE 5006
Free PE 120
Autoswitch On
Proactive Polling On

Now is there a way I can extend this even more
OldSchool
Honored Contributor

Re: lvextend: Not enough free physical extents available.

from your first post:

# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 5016
VGDA 2
PE Size (Mbytes) 8
Total PE 5006
Alloc PE 3274
Free PE 1732
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

Note PE Size (Mbytes) is 8. Free PE 1732. As noted above, thats ~ 13GB. IT IS NOT GOING TO WORK when you attempt to add 51GB.

It will work for sizes less than 13GB (as you found when you were able to extend it by 12)




Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 2 0/0/0/0.2.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
/dev/dsk/c0t2d0s1 /dev/rdsk/c0t2d0s1
/dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t2d0s2
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

I have extended it to total 13 GIG .. Is there a way I can extend this to 50GIG

# vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 5016
VGDA 2
PE Size (Mbytes) 8
Total PE 5006
Alloc PE 4925
Free PE 81
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

I see that there are only 81 free PE avaliable... Is there a way I can add more PE's So that I can have 30G for /home.I have two disks one is 10G and the other is 40G.

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 2 0/0/0/0.2.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
/dev/dsk/c0t2d0s1 /dev/rdsk/c0t2d0s1
/dev/dsk/c0t2d0s2 /dev/rdsk/c0t2d0s2
/dev/dsk/c0t2d0s3 /dev/rdsk/c0t2d0s3
# diskinfo /dev/dsk/c0t0d0
diskinfo: Character device required
# diskinfo /dev/rdsk/c0t0d0
SCSI describe of /dev/rdsk/c0t0d0:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 10485760 Kbytes
bytes per sector: 512
# diskinfo /dev/rdsk/c0t2d0
SCSI describe of /dev/rdsk/c0t2d0:
vendor: HP
product id: Virtual LvDisk
type: direct access
size: 41943040 Kbytes
bytes per sector: 512

Now how can I increase the /home from 13G to 35G.
Andres_13
Respected Contributor

Re: lvextend: Not enough free physical extents available.

I just don't understand above post.

If you want to increase the size of that lv up to 51gb you must add a LUN to it's VG to met that requirement, that's the only way I know.

Regards!
Andres_13
Respected Contributor

Re: lvextend: Not enough free physical extents available.

You need to vgextend and add the 40 gb disk to your vg00..... because with only 10 it wont be enough.

Regrds!
Tim Nelson
Honored Contributor

Re: lvextend: Not enough free physical extents available.

Your 35GB disk is alreay in vg00 and almost completely used.

The 10GB disk, if not used, could be added to vg00 and then you can add 10GB to which ever lvol you wish but it still will only take you to 26GB if you add it all to lvol5.

pvcreate /dev/dsk/c0t0d0
vgextend /dev/vg00
lvextend -L 26000 /dev/vg00/lvol5

If you wish to get to 30GB or more then you MUST add more virtual disk to the vGuest.
(not sure why you want to make the /home filesystem so big, but to each their own )



Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Sorry I want to extend lvol5 to 35Gig ... not 50Gig... It was a typo...

how can I do that..

Tim Nelson
Honored Contributor

Re: lvextend: Not enough free physical extents available.

You MUST create a larger backing store on the vHost and present it to the vGuest.

The two you have presented (35GB and 10GB) are not enough.

Andres_13
Respected Contributor

Re: lvextend: Not enough free physical extents available.

Pls consider assign points.

Regards!
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

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


--- Physical volumes ---
PV Name /dev/dsk/c0t1d0s2
PV Status available
Total PE 5006
Free PE 3119
Autoswitch On
Proactive Polling On

PV Name /dev/dsk/c0t0d0
PV Status available
Total PE 1279
Free PE 0
Autoswitch On
Proactive Polling On


Here I see many PV's available.... but cannot do a vgextend or a lvextend
Torsten.
Acclaimed Contributor
Solution

Re: lvextend: Not enough free physical extents available.

Looks to me like a HPVM guest, right?

Please clarify!

Do you want to extend the lv on the guest?

What kind of backing storage do you have? LVOLs?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

If I **assume** you want to extend the lvol of the guest and you have enough free space, the reason for the error is this setting for lvol5:

...
Allocation strict
...


Change it and it will work!

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

yes it is a HPVM ... I have 2 HPVM's on this server and on both of them to have to increase /home to atleast 13GB. There is no External Storage avaliable

# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/0/0/0.0.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/0/0/0.1.0 sdisk CLAIMED DEVICE HP Virtual LvDis
k
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
/dev/dsk/c0t1d0s1 /dev/rdsk/c0t1d0s1
/dev/dsk/c0t1d0s2 /dev/rdsk/c0t1d0s2
/dev/dsk/c0t1d0s3 /dev/rdsk/c0t1d0s3

# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c0t1d0s2
/dev/dsk/c0t0d0

# lvextend -L 12288M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

I have tried that as well with the following command

lvchange -D n /dev/vg00/lvol5

but still I get the same error

# lvchange -D n /dev/vg00/lvol5
Logical volume "/dev/vg00/lvol5" has been successfully changed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f
# lvextend -L 12288M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Also this didn't work

# lvchange -C n /dev/vg00/lvol5
Logical volume "/dev/vg00/lvol5" has been successfully changed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.con
f


# lvextend -L 12288M /dev/vg00/lvol5
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol5" could not be extended.
lvextend: Couldn't retrieve the list of the physical volumes
belonging to volume group "/dev/vg00".
Failure possibly caused by strict allocation policy
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Please post the first few lines of

# lvdisplay -v /dev/vg00/lvol5

again.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

# lvdisplay -v /dev/vg00/lvol5
--- Logical volumes ---
LV Name /dev/vg00/lvol5
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule striped
LV Size (Mbytes) 112
Current LE 14
Allocated PE 14
Stripes 2
Stripe Size (Kbytes) 64
Bad block on
Allocation strict
IO Timeout (Seconds) default

--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/dsk/c0t1d0s2 7 7
/dev/dsk/c0t0d0 7 7
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

The settings was

Stripes 0

and now it is

Stripes 2

You cannot extend this striped volume if you have only space on 1 of the disks.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: lvextend: Not enough free physical extents available.

Since this lvol is only 112MB now, I assume it is still empty, right?

Delete it and re-create it (with SAM) - probably the most easy way for you.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Grayh
Trusted Contributor

Re: lvextend: Not enough free physical extents available.

Ohhh... Noooo

What can I do now..