1833414 Members
3295 Online
110052 Solutions
New Discussion

/stand increase

 
Thomas Lepach
Occasional Contributor

/stand increase

Hi
how does it work? I want to increase /stand, but it seems to be very difficult because its contiguous with / and /swap.

I have to do this while updaating from HP-UX 10.20 ti HP-UX 11i.

Thanks for help!

Thomas
thomas Lepach
15 REPLIES 15
Vincenzo Restuccia
Honored Contributor

Re: /stand increase

make_recovery is only way.
James R. Ferguson
Acclaimed Contributor

Re: /stand increase

Hi Thomas:

First, aside from moving from 10.20 to 11.x, the only sanctioned method for resizing /stand is to use Ignite make_tape_recovery. This is guarenteed to work.

Since you indicate that you *are* moving from 10.20 to 11.x, I would urge you to consider doing a cold install. This will afford you the natural choice to size your filesystems the way you see fit. The general experience/consensus of the Forum is that cold-installs are preferred over upgrades.

...JRF...
KapilRaj
Honored Contributor

Re: /stand increase

hi ,

Assumptions,

01. You are not just an "HP kid" who will play with ignite like stuff.

02. You like taking some risk & saving your valuable time

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

This is a working solution i have tried & found success

Best of luck

Come back to me if you are still scared

kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: /stand increase

hi,

What do you say ?. Did you give a try ?. If not, y not ?. Any logical errors in my way of doing it ?. Tell me guys so that i can correct it.

kaps
Nothing is impossible
Sridhar Venkataramu
Occasional Advisor

Re: /stand increase

hi thomas

kapil is right, it works. Just u have to compromise a little bit of ur swap space..
u can create secondary swap to compensate.. in case u need it..

it works well..

if u want to be very safe.. u cud keep a golden image before trying it out.. assuming u hv the resources..

best wishes

sridhar

Ajitkumar Rane
Trusted Contributor

Re: /stand increase

Hello

The solution given by Kapil should work looks logical, Also if you have same amount of free contiguous space as your swap size in VG00 then I think you need not even worry about giving up that small poriton of swap space to extend /stand as lvrceate should use that free space to create the new swap area.

Goodluck
Amidsts difficulties lie opportunities
Abel Berger
Regular Advisor

Re: /stand increase

Hi Thomas,

You can try this.
Make a make recovery before, OK !
Later :

If you need more space in /stand look and see if you have more than one copy of vmunix. Look for a vmunix.prev and if you are VERY SURE that your current kernel is stable, you can remove vmunix.prev or any other backup copies that may be there.

I Hope this help.

Regrads,

Abel Berger
Sachin Patel
Honored Contributor

Re: /stand increase

Hi Kapil,
Thanks. I have never thought about it. Great!!.

Sachin
Is photography a hobby or another way to spend $
Harinath N
Frequent Advisor

Re: /stand increase

Hi Thomas,

If you following Kapil's logic, you have to do lvlnboot -R before executing the reboot command.

ie., ...

#lvlnboot for boot, root, swap and dump.

#lvlnboot -R
to update BDRA.

then
#reboot.

Regards,
N.Harinath.
Lisa  Mauer
Regular Advisor

Re: /stand increase

Just a quick question, since I need to increase /stand for an update from 11.0 to 11i.

In Kaps reply it states:
lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00

My question is - what is the 10MB cushion for? (X+10)

1 more question - The last post to this message states you need to do a lvlnboot -R (Recover any missing links to all of the logical volumes specified in the Boot Data Reserved Area and update the Boot Data Reserved Area of each bootable physical volume in the volume group) before the reboot, is this correct - no one has replied since then so I wasn't sure.

Thanks
Lisa
Roger Baptiste
Honored Contributor

Re: /stand increase


Yes, lvlnboot -R needs to be run whenever we update/change the boot record.

regarding the 10Mb cushion, i guess it may have to do with accomodating any headers/extra space which the lvcreate command takes.

HTH
raj
Take it easy.
Lisa  Mauer
Regular Advisor

Re: /stand increase

I ran the instructions from kaps on increasing /stand and everything worked perfectly with the minor exception of removing /etc/mnttab, I did - but when you get to extendfs - it requires mnttab. I would suggest not removing the file OR if you do, before the extendfs, "mount /usr" run bdf "umount /usr" then run extendfs. I also added lvlnboot -R right before the reboot.
One other piece of advice - DO NOT BACK SPACE in any of your commands, the command will fail, it looks like the command failed due to an error, not because of a backspace.
It took me about 30 - 40 minutes start to finish.
hpuxrox
Respected Contributor

Re: /stand increase

You need to remove your swap, extend /stand then recreate the swap space. Of couse you will loss some of your swap space.
pap
Respected Contributor

Re: /stand increase

Hi THomas,
as you are planning to upgrade to hp-ux 11i, it wil be a best choice you can cold install HP-UX 11i and select your choice of filesystem sizes during installation.

Otherwise , upgrade will be more cumbersome.....and will take hours to resolv if any problem arises...

-pap
"Winners don't do different things , they do things differently"
samurai_2
New Member

Re: /stand increase

Hi

i belive that the best way to increase /stand is
to use the recovery tape.

just create the recovery tape,
then boot from that tape ,and interact with the
boot process and change the size of /stand from the installation menu.