Operating System - HP-UX
1827296 Members
2189 Online
109960 Solutions
New Discussion

increase size of mirrored filesystem

 
SOLVED
Go to solution
Peter Gillis
Super Advisor

increase size of mirrored filesystem

hi again,
hpux 11.00 on RP2470 machine.
I need to increase size of mirrored filesystem on vg00 to 5GB.
I know I have to:
lvextend -L5000 /dev/vg00/lvabc
umount /dev/vg00/lvabc
extendfs /dev/vg00/rlvabc
mount /dev/vg00/lvabc /mybiggerfilessytem

BUT, what about the mirror part of it?

Thanks for your help,
points awarded soon...
Maria.
7 REPLIES 7

Re: increase size of mirrored filesystem

Jeff Schussele
Honored Contributor
Solution

Re: increase size of mirrored filesystem

Hi Maria,

Three things:

1) Understand that the extension would only be possible IF the VG has 10000M free.

2) IF you have Strict Allocation set - which IS the default - then you MUST have 5000M free on EACH PV or it'll fail. Trust me - this IS for your own good.

3) If you have On-Line JFS then no umount is needed. And...you should have it. Absolutely mandatory in a Production env today. Customers don't care just *why* you're having an outage - they just know they're pissed because of it.

My $0.02,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Michael Tully
Honored Contributor

Re: increase size of mirrored filesystem

Hi Maria,

Your procedure is fine as long as you can unmount the filesystem and have you sufficient disk space (on both disks) in which to do the extension.
If you have online JFS there is no need to unmount the filsystem at all. This all depends on the filesystem being changed. If it is / or /stand, then you cannot do it at all unless you use the "booting of ignite tape method".
The mirror extension will be done when you do the 'lvextend' part. It will know that it is mirrored and do it automatically. AGain this depends on the amount of space required and which filesystem it is.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"

Anyone for a Mutiny ?
steven Burgess_2
Honored Contributor

Re: increase size of mirrored filesystem

Hi Maria

It's the same as extending a non mirrored volume apart from adding the volume names to your command. If your allocation ploicy is set to strict you need to ensure you have enough space on both devices

# lvextend -L 5000 /dev/vg05/lvabc /dev/dsk/cAtAdA /dev/dsk/cBtBdB

HTH

Steve
take your time and think things through
V.Tamilvanan
Honored Contributor

Re: increase size of mirrored filesystem

Hi,
If u need to extend an one way mirrored LV u must have double the size of your actual size to be increased.
Unless u don't have double the size ur lvextend will fail.
Again the free PEs should be in the proper PVs depends upon your allocation policy.
- hth.
Tamil
Con O'Kelly
Honored Contributor

Re: increase size of mirrored filesystem

Hi

Jeff has covered everything. The only thing I'd point out is if you are trying to extend root or stand LV's then it won't be possible as they need to be contiguous.

You'll also have a hard time with alot of the FS's (/var, /usr etc) in the root VG if you don't have online JFS as they are difficult to unmount due to the number of processes accessing them.


Cheers
Con
Jeff Schussele
Honored Contributor

Re: increase size of mirrored filesystem

Hi Maria & Con,

Don't forget Primary swap - that makes the trifecta for - It ain't gonna happen w/o Ignite."

Cheers,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!