1835276 Members
2340 Online
110078 Solutions
New Discussion

Error to extend LV

 
hboo
Frequent Advisor

Error to extend LV

Hello All

I need increase size for a LV, and I'm trying to make lvextend:

lvextend -L 1000 /dev/vg00/lvol3

The output is:

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.

I exec: vchange -s n /dev/vg00/lvol3 and results is the same

I exec: vchange -s y /dev/vg00/lvol3 and output is:

vchange: Can not change to a more strict allocation policy because LV "/dev/vg00/lvol3" has mirrored copies.

The vg00 have space to support this new size.

How i can increaze the size of lvol3 (where / is mounted)

Thanks
Hayse :(
4 REPLIES 4
Tommy_6
Regular Advisor

Re: Error to extend LV

You might have a problem extending lvol3 (/). Look at this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=967116
Pete Randall
Outstanding Contributor

Re: Error to extend LV

First of all, /stand, swap and / have to be contiguous, so you can't just extend any of them with out clearing some contiguous space by shrinking lvol4.

Or you could take the easy way out and do an Ignite make_tape_recovery backup, which you can then boot from and interrupt the restore process to alter the size of your logical volumes.


Pete

Pete
Tommy_6
Regular Advisor

Re: Error to extend LV

Here is another thread with a similiar problem and solution:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030157
Patrick Wallek
Honored Contributor

Re: Error to extend LV

The real question is why do you think you need to increase vg00/lovl3? The '/' mount point should stay the same size and never really grow. If yours is growing, someone is doing something there they shouldn't be doing. 1000 MB is really overkill for '/'.

You can NOT easily extend '/'. The error you see results from the need for the '/' lvol to be contiguously allocated; meaning ALL extents for this LV must be together. This is also true of vg00/lvol1 and vg00/lvol2. There are 2 ways to extend your lvol3: 1) Move lvol4 out of the way, then extend lvol3. 2) run a make_tape_recovery or make_net_recovery and then restore from that and reallocate space for your vg00 lvol's as necessary.