extending /stand

 
Mario E Mira
Occasional Contributor

extending /stand

What are the requirements for a succesful lvextend on /stand?
I know I have to go single user mode but Iam having a strange problem with it. Anytime I tried to extended it it comes back and tells me a known fact that it is
contiguos and there is not enough fre PE's but I have space
available on vg00.

thanks.
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: extending /stand

Mario,

The contiguous part is what's getting you. Because /stand needs to be contiguous and there are no free extents immediatley following the existing /stand, you're unable to extend it. The answer in this case, is to make an Ignite backup tape, boot off it, and reinstall your vg00, re-sizing your root lvols during the process. Ignite can be obtained here:http://www.software.hp.com/products/IUX/index.html


Pete

Pete
Robert-Jan Goossens
Honored Contributor

Re: extending /stand

Hi,


There is a very good document on the hp side,

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000064129649

Using Ignite-UX to extend /stand or / filesystem?
document id: VIKBRC00010528

Robert-Jan.
S.K. Chan
Honored Contributor

Re: extending /stand

Root, /stand and primary swap have to be contiguous, hence extending /stand is impossible if you're treating it like any other logical volume. Using ignite's make_tape_recovery is the ideal way. There is a procedure which I've tested (thanks to Wodisch) and seems to work pretty well. See this thread ..
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x957b06295e00d6118ff40090279cd0f9,00.html
However don;t do it if you're not sure.
Steven E. Protter
Exalted Contributor

Re: extending /stand

I you are really the adventure admin, you could boot off the Core CD,

mount /stand
create another HFS filesystem.

back up /stand

lvremove /stand

lvcreate -C y /dev/vg00/stand

lvextend it

newfs -F hfs /dev/vg00/rstand

I myself however do it with Ignite as noted above.

Zero points please.

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
James A. Donovan
Honored Contributor

Re: extending /stand

If you're primary swap partition is lvol2 (which is typical in a "Instant Ignited" box), you could create a new primary swap partition. After that you remove lvol2 and extend lvol1 into the freed space. Viola, /stand is extended.

heck...even if lvol2 isn't your primary swap, you could still move whatever's there to a new partition and then extend lvol1
Remember, wherever you go, there you are...
Kevin Wallace
Occasional Advisor

Re: extending /stand

Another option is to create an additional "copy" of vg00. We call it vgaroot. Create all vg00 file systems on vgaroot with new sizes. Copy vg00 to vgaroot. Edit /etc/fstab as needed. Boot to vgaroot. Rebuild vg00 to the sizes you want. Copy vgaroot to vg00. Edit /etc/fstab as needed. Boot back to vg00. Of course, have a make_recovery in your back pocket just in case. We recopy and test vgaroot before all patch activity.
Good luck!