1834796 Members
2573 Online
110070 Solutions
New Discussion

Re: Extend /stand

 
Filosofo
Regular Advisor

Extend /stand

I must extend /stand.
Can somebody indicate me what are the steps?
1-->create recovery tape:
make_recovery -Av
2-->backup other vg
3-->I must reboot the system and boot from tape??? And after??

I hope that you can help me please

Filo
Sistem engeneer expert
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: Extend /stand

Hi

Here:-

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x807706295e00d6118ff40090279cd0f9,00.html

Paula
If you can spell SysAdmin then you is one - anon
Pete Randall
Outstanding Contributor

Re: Extend /stand

Filo,

First I would question why you need to extend /stand. The size of /stand should be quite static and somewhere around 100MB should suffice (64MB minimum - no more than 128MB max). If your /stand falls within this range then you need to look at what's filling it.

If you do need to expand, do an Ignite backup/restore. Do a "vgexport -p -s -m /tmp/vg??map /dev/vg??" for each of your non root VGs. Download the latest Ignite from here:
http://www.software.hp.com/products/IUX/index.html
Run a "make_tape_recovery -a /dev/rmt/?mn -I -v -x inc_entire=vg00". Then boot off that tape and you'll be led through an interactive restore that allows you the opportunity to resize your file systems. When you're done, run a vgimport for all your non-vg00 VGs ("mkdir /dev/vg??", mknod /dev/vg??/group c64 0x??0000", "vgimport -s -m /tmp/vg??map /dev/vg??") and you're done.


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: Extend /stand

Do your tape as follows:

#!/usr/bin/sh
/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00


make_recovery is obsolete and should not be used.

Recovering from the tape created by my script will not touch vg01 or other vg's.

You can and should back up, but you don't need to.

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
Sachin Patel
Honored Contributor

Re: Extend /stand

Filo,

I got it this from this forum. Forget who post it.. It works I have test it

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

Sachin
Is photography a hobby or another way to spend $