1847597 Members
6775 Online
110265 Solutions
New Discussion

Re: increase /stand

 
Jairo Campana
Trusted Contributor

increase /stand

hello I want extend /stand but I have miror
my procedure is correct:
Need to return a mirror
Steps

01. Boot your machine in LVM maintenance mode
(hpux -lm at ISL>)
#vgchange -a y /dev/vg00
#lvrmboot -r /dev/vg00
#lvremove /dev/vg00/lvol2
extender /stand
#lvextend -L "A+X" /dev/vg00/lvol1
#extendfs /dev/vg00/rlvol1
crear /swap
#lvcreate -C y -r n -L 50 -n lvol2 /dev/vg00
#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
#lvlnboot -R
#reboot -r
legionx
10 REPLIES 10
Robert-Jan Goossens
Honored Contributor

Re: increase /stand

Hi Jairo,

This is very very risky, why not use a ignite tape ?

Regards,
Robert-Jan
Stefan Farrelly
Honored Contributor

Re: increase /stand

Doesnt look too bad. My only concern is once you recreate swap its now too big to fit into its old place (because you extended lvol1) so it will be created after all the other lvols (further down the disk past the first 2Gb), whereas if I recall correctly primary swap needs to be within the first 2Gb on a disk. So, what I would try is when you go to recreate swap (lvol2) make it smaller, ie. if you increased stand by 100MB reduce primary swap by 100MB, then create a secondary swap area (lvol9 typically) and set it to 100MB to make up the shortfall so you get back, overall, to your same swap size and primary swap is stil back where it was.

Im from Palmerston North, New Zealand, but somehow ended up in London...
Fabio Ettore
Honored Contributor

Re: increase /stand

Hi,

a good procedure in attachment.

I hope this helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Jairo Campana
Trusted Contributor

Re: increase /stand

Robert Jan , one assumes that before this I do I have fact
legionx
Jairo Campana
Trusted Contributor

Re: increase /stand

OK execute my procedure ....is correct.

thanks

Rossi I am going to prove you procedure in attach.

legionx
KapilRaj
Honored Contributor

Re: increase /stand

Procedure is correct ....

Only thing to be taken care is to create a secondary swap space on the system to compensate the space u have used to extend stand !.

I saw some where in the posts that SWAP needs to be there in the first 2 GB .... As per my knowledge BOOT,SWAP and ROOT (lvol1 or stand, lvol2 or stand and lvol3 or root) volumes should be contegious...

All the best !

Kaps
Nothing is impossible
Jdamian
Respected Contributor

Re: increase /stand

I suggest another procedure I executed some time ago.

I should create a new lvol an mount as /stand/build.
Bernhard Mueller
Honored Contributor

Re: increase /stand

Jairo,

actually this looks fine to me with the exception that you say you have a mirored boot disk

So the one duplicate line you list:
#lvcreate -C y -r n -L 50 -n lvol2 /dev/vg00
#lvcreate -L "B-(X+10)" -C y -r n -n lvol2 /dev/vg00

you should use
lvcreate -L "B-(X+10)" -m 1 -C y -r n -n lvol2 /dev/vg00

Then you mirror should also be fine.

Regards,
Bernhare
Jairo Campana
Trusted Contributor

Re: increase /stand

Bernhare :very good observation , I eliminate the line

lvcreate -C y -r n -L 50 -n lvol2 /dev/vg00

legionx
Hemanth Gurunath Basrur
Honored Contributor

Re: increase /stand