Operating System - HP-UX
1854818 Members
29568 Online
104103 Solutions
New Discussion

Increasing /stand for the 11 to 11.11 upgrade

 
SOLVED
Go to solution
Nathan Jones_6
Occasional Contributor

Increasing /stand for the 11 to 11.11 upgrade

I'm a bit confused. After reading the doc for this upgrade, we do not have enough space in /stand. In this link:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-3614/5187-3614_top.html&con=/hpux/onlinedocs/5187-3614/00/00/21-con.html&toc=/hpux/onlinedocs/5187-3614/00/00/21-toc.html&searchterms=stand%7cincrease&queryid=20041104-125330

it says this:

"Increasing /stand




--------------------------------------------------------------------------------
Increasing the /stand partition requires reformatting your root disk. You will need to cold-install HP-UX 11i v1 on your system.

Before you begin this step, back up your system. See Back up Your System!.


--------------------------------------------------------------------------------

In some cases, you will need to increase the size of /stand prior to completing a successful update to HP-UX 11i v1. If the update-ux command fails with a message indicating that /stand is too small, follow these steps to increase the size of /stand.

To increase /stand, you'll first have to create a larger /swap."

These statements seem contradictory. In the beginning, it says I have to cold install 11.11. At the end, it gives the instructions for just increasing /stand.

Which path do I need to take? Can I just increase /stand, follwing the directions at the bottom of the link? Or do I have to do a new install of 11.11?

Thanks,
Nate
6 REPLIES 6
James A. Donovan
Honored Contributor

Re: Increasing /stand for the 11 to 11.11 upgrade

The best method for doing this is to create a recovery tape using Ignite-UX, booting from that tape and rebuild the sizes of your partitions. Then continue with restoring your system from the recovery tape. After that you should then be able to run the update-ux command successfully.

Trying to increase /stand directly is tricky and can easily lead to an unbootable system. In which case you will have hopefully create a recovery tape from which to restore your system.
Remember, wherever you go, there you are...
Leif Halvarsson_2
Honored Contributor
Solution

Re: Increasing /stand for the 11 to 11.11 upgrade

Hi,
Yes, not very easy to understand. In any case you can increase the /stand and upgrade HP-UX (not need a cold install).

- Perform a ignite backup of the system.
- Reboot the system from the Ignite tape or Ignite server.
- Reconfigure the volume(s).
- Recover the system from Ignite.

Now you can upgrade the system with new volume sizes.
Geoff Wild
Honored Contributor

Re: Increasing /stand for the 11 to 11.11 upgrade

I agree with Jim - use a make_tape_recovery and resize your volume...

You could, shrink your primary swap, then increase stand from "lvm maintenance mode"....I have done that in the past - but tricky....

Best to use make_tape_recovery

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.
Geoff Wild
Honored Contributor

Re: Increasing /stand for the 11 to 11.11 upgrade

This from a thread where "Kapil Raj " replied to:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=4996

Size of /dev/vg00/lvol1 is A (boot or /stand or /dev/vg00/lvol1)

Size of /dev/vg00/lvol2 is B (swap or /dev/vg00/lvol2)

You wanna increase size of lvol1 from A to A+X (where X is not more than B - "physical memory installed in your machine")

Basically we have to decrease size of swap to increase boot as they are contigous.

Now Extending /stand is an easy job which can be performed in 10-15 minutes.

Steps

01. Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)

#rm /etc/mnttab
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00
#lvlnboot -b /dev/vg00/lvol1
#lvlnboot -r /dev/vg00/lvol3
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#reboot -r

You have your /stand extended now
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.
Nathan Jones_6
Occasional Contributor

Re: Increasing /stand for the 11 to 11.11 upgrade

Thank you Jim, Leif, and Geoff for the speedy responses!

This gives up something to ponder. And worse case, if we try the resize-without-restore way, like in Geoff's post, and things go bad, we can just restore out ignite tape and do it that way.

Thanks again!
Nate
Bernhard Mueller
Honored Contributor

Re: Increasing /stand for the 11 to 11.11 upgrade

Nate,

just some additional information from my upgrade experience:
if you read the required file system sizes recommended for the upgrade to 11.11 I strongly suggest you *add* some safety margin.

make / and /stand at least 150MB total with 80MB free space

for a Base-OE upgrade make sure you have roughly 1GB free in /usr /opt and /var

then you should be safe.

If you have trouble due to overall space
of 9GB boot disks, cut an ignite tape, cleanup patches, cleanup /var, maybe reduce primary swap if you can add secondary swap on other disks.

Regards,
Bernhard