Operating System - HP-UX
1825782 Members
2134 Online
109687 Solutions
New Discussion

not enough physical extents when extending a logical volume

 
martin clarke_1
Occasional Advisor

not enough physical extents when extending a logical volume

I have swapped a 146GIG drive out of a PA-RISC machine with a 36gig drive on an Itanium machine. SAM detected the physical volume and shows it to be unused and 140014 meg available.
I have an existing logical volume that uses all of the space on an existing 36gig drive. When I use SAM to configure the new 146gig drive and extend the existing logical volume I get the "not enough physical extents message". I have tried reducing the ammount of physical space used to extend the logical volume but the same message keep coming up. I also tried setting up a new logical volume with the new disk but again I get the same message.
Do I have to defrag the new drive somehow since it has been used on a PA-RISC machine.
Before I removed the disk from the PA-RISC machine I moved all data off onto other disks and used sam to unconfigure it.
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: not enough physical extents when extending a logical volume

Martin,

It sounds to me like the max PE per PV was allowed to default when the VG was originally created and is now to low for the size of this new disk. Unfortunately, the only way to fix this is to re-create the VG from scratch and restore the data.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: not enough physical extents when extending a logical volume

Martin,

I should add: to check this, run vgdisplay on the vg that the lv belongs to and check the Max PE per PV figure and the PE Size figure. If you do the math, I think you'll see that it comes out to the 36GB size you used to have.


Pete

Pete
Marcel Boogert_1
Trusted Contributor

Re: not enough physical extents when extending a logical volume

Hi there,

# vgcreate -e max_pe

Set the maximum number of physical extents that can be allocated from any of the physical volumes in the volume group. The default value for max_pe is 1016. However, if the size of any physical volume exceeds 1016 times the pe_size, the default value for max_pe is adjusted to match the physical volume size. The maximum number of physical extents can be a value in the range 1 to 65535

I think you should rebuild your complete volume group.

MB.
Franky_1
Respected Contributor

Re: not enough physical extents when extending a logical volume

Hi,

you should use the "-e " option in vgcreate
Default is 1016 and maximum is 65535

vgcreate -e ...

Regards

Franky
Don't worry be happy
Geoff Wild
Honored Contributor

Re: not enough physical extents when extending a logical volume

Yes, you need to have a volume group with a larger pe_size

The -e max_pe will adjust automatically:

The
default value for max_pe is 1016. However,
if the size of any physical volume exceeds
1016 times the pe_size, the default value for
max_pe is adjusted to match the physical
volume size. The maximum number of physical
extents can be a value in the range 1 to
65535.


SAM will do it for you if you create a new vg - but you can add to an existing one if the pe_size is too small....

Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
martin clarke_1
Occasional Advisor

Re: not enough physical extents when extending a logical volume

Thanks everyone.

This explains why I have not had this error before since this is the first time I have tried to extend an existing volume group.
I dont like the idea of recreating the VG so I will just add the volume under a new VG.
Franky_1
Respected Contributor

Re: not enough physical extents when extending a logical volume

Hi Martin,

glad to hear that we could help you - so please don't forget to assign points

Regards

Franky
Don't worry be happy