1753879 Members
7437 Online
108809 Solutions
New Discussion юеВ

extend / (lvol3)

 
SOLVED
Go to solution
RolandH
Honored Contributor

extend / (lvol3)

Hi forumers,

I want to extend lvol3 (/). I know it is contiguous/strict and it is the last lvol on the disk. There is no more PE free on this disk.
So I extend vg00 with a new disk, but if try to extend the lvol I got this error message.
# lvextend -l 2500 /dev/vg00/lvol3
lvextend: Not enough free physical extends available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possible caused by contiguous allocation policy.
Failure possible caused by strict allocation policy

There are enough free extends available in th vg, because the new disk is completly empty.

Hhmmmmm, that is confusing me.

Roland
Sometimes you lose and sometimes the others win
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: extend / (lvol3)

Roland,

Yes, there may be enough free extents but they aren't contiguous to lvol3. The way to do this would be to use Ignite. Do a make_tape_recovery, boot the tape and resize your lvols. Ignite is available here:

http://www.software.hp.com/products/IUX/index.html


Pete

Pete
Geoff Wild
Honored Contributor

Re: extend / (lvol3)

Because it is contiguous/strict, you may have to back it up, remove it (lvremove), then recreate it - this time without contiguous/strict.

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.
Jeff Schussele
Honored Contributor

Re: extend / (lvol3)

Hi Roland,

Appears to me this is one of those situations where Ignite is your best answer.
So do a make_tape_recovery - interactive - and use it to reorg your vgv00.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stefan Farrelly
Honored Contributor

Re: extend / (lvol3)


You need to free up some space on the disk immediately after lvol3, ie. lvol4. Youve already added a spare disk to vg00, thats good, now pvmove vg00/lvol4 to the new disk then you will be able to extend lvol3 (but only by as much as the size of lvol4 you moved).

Im from Palmerston North, New Zealand, but somehow ended up in London...
Jdamian
Respected Contributor

Re: extend / (lvol3)

I think you should extend root file system on other disk... because system won't boot in maintenance mode.
Pete Randall
Outstanding Contributor

Re: extend / (lvol3)

Roland,

I would also ask why you need to enlarge /. I usually use 200MB and it's plenty - typically around one third full. You might want to take a look at what is using the space in your root volume and weed out the inappropriate.


Pete

Pete
RolandH
Honored Contributor

Re: extend / (lvol3)

We need this space only til monday. Then it is planned in any case to rebuild the root disk with ignite. ( I know ignite could be used for that ).
To stefan: we have only three lvol /, /stand, swap.
So ther is no lvol that i can move on the other disk. thanx.

But the other guys has remember to read the fuc..... man pages first.
I have forgotten that contiguous also means that extends from one lvol is only allowed to reside on one disc.


Thanx to all.

Problem is fixed - No more answers, please !!!!

Roland
Points assigned
Sometimes you lose and sometimes the others win
Armin Kunaschik
Esteemed Contributor

Re: extend / (lvol3)

Hi there,

just a curious question:
Why not use pvmove to move some extents to the new disk and
resize afterwards?
I never used that on HP-UX, AIX has the command pvmigrate
which does exactly that (on all filesystems without reboot)
so I wonder if there is no such thing in HP-UX...

Regards,
Armin
And now for something completely different...