1833772 Members
2248 Online
110063 Solutions
New Discussion

Extending Logical Volume

 
Cara Tock
Regular Advisor

Extending Logical Volume

I get the error message
lvextend: Not enough free physical extents available.
Logicalvolume "/dev/vg.." could not be extended.
Failure possibly caused by PVG-Strict or Distributed allocation policies.

I get the folowing with vgdisplay

Max LV 255
Cur LV 14
Open LV 14
Max PV 16
Cur PV 5
Act PV 5
Max PE per PV 3328
VGDA 10
PE Size (Mbytes) 4
Total PE 16635
Alloc PE 13308
Free PE 3327

The logical volume I am trying to extend is only 2GB.
Any help? Thanks
9 REPLIES 9
Helen French
Honored Contributor

Re: Extending Logical Volume

Hi Damon:

What is the allocation policy ? Are you using -l or -L with lvextend ? What is the new value of the LV you giving ?

If you have 2Gb file system now and wants to extend it to 4GB, then:

# lvextend -L 4000 /dev/vg02/lvol1

what is the output of lvdisplay ?

HTH,
Shiju
Life is a promise, fulfill it!
John Palmer
Honored Contributor

Re: Extending Logical Volume

Hi Damon,

More information required...

Please post:
vgdisplay -v
lvdisplay -v /dev//
and the exact lvextenf command that is failing.

Regards,
John
S.K. Chan
Honored Contributor

Re: Extending Logical Volume

The LV that you're trying to extend is probably setup as mirrored PVG-strict in that VG. It means even though you have enough PE to extend (total PEs in this matter), it cannot cross over to another PVG (physical volume group) due to strict PVG allocation policy. Send some output like so ..
# vgdisplay -v
# lvdisplay -v
so that explaination can be made more specific.
MANOJ SRIVASTAVA
Honored Contributor

Re: Extending Logical Volume

Hi Damon


use lvextend -L 2000 /dev/vg02/lvol1 , ther should not be any problems .

You can use SAM too if you want too.



Manoj Srivastava
Cara Tock
Regular Advisor

Re: Extending Logical Volume

The lvextend error and the vgdisplay are listed above.
I found my problem to be
Allocation
PVG-strict/distributed
which is from lvdisplay. I just need to figure out the lvchange commands to allow me to extend it.
Thanks
John Palmer
Honored Contributor

Re: Extending Logical Volume

You may not be able to extend it if there's not enough space on one of the disks.

We need:
vgdisplay -v
lvdisplay -v
and by how much you are trying to extend it to confirm.

Regards,
John
S.K. Chan
Honored Contributor

Re: Extending Logical Volume

# lvchange -s y /dev/vgXX/lvolX

That will change it to "strict"

Try lvextend again afterwards.
Ed Sampson
Frequent Advisor

Re: Extending Logical Volume

You should be able to use the lvchange command to change to allocation policy for the logical volume.
lvchange -s n /dev/vgxxx/lvxxxx

If you do this your mirrors will not be forced to seperate phyiscal drives. That means you would probably have to rebuild the volume group and restore from tape if you loose a drive.

Cara Tock
Regular Advisor

Re: Extending Logical Volume

I am going to try the
lvchange -s y command to change the logical volume to strict and that should do it for me. I am using the VA7100 where I define luns and add luns to my volume group. I don't have any control over mirroring as the VA mirrors data or uses raid 5 depending on usage.
Thanks