1848590 Members
3684 Online
104033 Solutions
New Discussion

Re: lvextend error

 
Michael Dalanek
Advisor

lvextend error

Hi admin,

when I try to extend this lvol I get an error. I know there is enough space to mirror it though;

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol14" could not be extended.
Failure possibly caused by strict allocation policy

8 REPLIES 8
Vincenzo Restuccia
Honored Contributor

Re: lvextend error

vgdisplay -v for see free PE,solution add a other disk with vgextend.
Andreas Voss
Honored Contributor

Re: lvextend error

Hi,

have you checked the 'Free PE' of output from vgdisplay vg00 ?
Perhaps you have used wrong option ie:
lvextend -l 500 (extend to 500 PE = 2GB when PE Size=4MB)
lvextend -L 500 (extend to 500MB)

Regards
Edward Sedgemore
Trusted Contributor

Re: lvextend error


lvol14 for vg00 is a high number, is this for swap space ?

If so then you are trying to create the mirror of an lvol which must be contiguous therefore enough free space is not sufficient, it must be contiguous space.
Michael Dalanek
Advisor

Re: lvextend error


Yes, this lvol is for swap space. I know there are enough free extents to mirror it from vgdisplay so how can I create contiguous space ?
Bill McNAMARA_1
Honored Contributor

Re: lvextend error

For swap
you must use an lvextend -m 1 -C y -r n /dev/vgXY/lvolXYZ /dev/dsk/cXtYdZ
C = Contiguous
r = Bad Block Relocation
m = mirror option
dsk = optional to specify PV in the VG
otherwise wherever contig. space is found

As was mentioned before check your extent status with vgdisplay and pvdisplay to see if you've got free contiguous extents on that PV.
It works for me (tm)
Philip Chan_1
Respected Contributor

Re: lvextend error

Hi Michael,

Swap partitions are required to be contiguous, that mean one straight big trunk of consecutive blocks. Your volume group may have enough space for the size specified, but they are spreaded over the volume group, that was the reason why the lvextend command being rejected by the OS.

~Philip
Edward Sedgemore
Trusted Contributor

Re: lvextend error


Still nobody has come up with the way to create some contiguous space.

Options;

1. Do you have enough free extents on more than 1 disk in the volume group that lvol14 is not on ? If so, try extending explicitly to that disk by doing;
lvextend -m 1 /dev/vg00/lvol14 /dev/dsk/cxxxxxx

2. If possible, add in another disk to the volume group first, then use the explicit lvextend command above to extend the mirror on the new disk, as a new disk will always be contiguous when first added.

3. If possible find an lvol which has enough extents for you to create your mirror on and move it using the pvmove command to another disk. You shouldnt move lvols 1-8 on vg00.
Once youve pvmoved it to another disk you should have sufficient contiguous space to extend lvol14 to this disk.

Good luck.
Bill McNAMARA_1
Honored Contributor

Re: lvextend error

oops, the -C y -r n is for the lvcreate not the lvextend. Have to clarify before I get flamed!
In any case, good answer above..

Bill
It works for me (tm)