1753468 Members
4857 Online
108794 Solutions
New Discussion юеВ

Re: Cannot lvextend

 
SOLVED
Go to solution
Jay Core
Frequent Advisor

Cannot lvextend

Hi all,

I've an issue with an lvextend. I'm trying to grow an fs by 150GB - I know I'm overlooking something silly. The particulars are attached.

Thanks much,
Joe

5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Cannot lvextend

OK, I'm confused. You say you are trying to extend by 150GB, but the command you list says:

lvextend -L 819072 /dev/vg02/lvol1

which means you are trying to extedn by more than 300GB.

According to your vgdisplay you have 9,598 extents available with a PE size of 16 MB, which means you have a total of 153,568 MB available to extend by.

Your VG02/LVOL1 size is currently 460,736 MB. You can extend by 153,568 MB for a total of 614,304MB. So your lvextend command should be:

lvextend -L 614304 /dev/vg02/lvol1
Mark Nieuwboer
Esteemed Contributor

Re: Cannot lvextend

Hi joe,

You have strict allacotion polici on the logical volume.
This means that all the PE must be behind each other.
Firast change this by using lvmodify then after this you can de an lvextend.
see the manpages of lvmodify to get the strict allocation police off.

grtz. Mark
Steven E. Protter
Exalted Contributor

Re: Cannot lvextend

Shalom Joe,

If its the allocation policy

lvchange -C n /dev/vg02/lvol1

Try again.

I'm assuming you have enough disk space do do this. Hopefully your volume group is configured in such a way to allow this many PE's, otherwise you will be needing to rebuild the volume group.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Jay Core
Frequent Advisor

Re: Cannot lvextend

Hi Men,

thanks alot. I knew it was something silly - sorry to bother you. Have a great weekend.
Jay Core
Frequent Advisor

Re: Cannot lvextend

Thanks to all, and of course to Patrick for the Magic Answer!