Operating System - HP-UX
1832679 Members
2873 Online
110043 Solutions
New Discussion

Extending / root file system

 
SOLVED
Go to solution
LG Porter
Frequent Advisor

Extending / root file system

What is the best method by which to extend / root system on a system in which the file systems are mirrored?
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Extending / root file system

Check out this thread for your options:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0xf490e7613948d5118fef0090279cd0f9,00.html

One way or another, you will have break your mirror and use Peggy Fongs idea or install from a make_recovery (or make_tape_recovery) tape.

Bill Hassel, I don't know if it is in the above thread or not, makes a good point in a previous thread that once you have / set after your initial installation, you should NEVER need to resize it. NOTHING should write directly into your / (root) filesystem.
boley janowski
Trusted Contributor

Re: Extending / root file system

create a make_recovery tape boot into interactive mode and extend the file systems from there.

install ignite-ux

make_recovery -Ai

before you continue, you will need to make sure you export out all of the non-vg00 disks and make copies of the maps so you will be able to import the disk back in after your recreate your vg00 file systems. Sence you already have the vg00 disk mirrored you will want to split the mirrors and leave them alone until you test the recovery incase you need to get back to where you where befor you started, you can boot back off of the mirrors.

boot (stop boot up)
sea (for tape device)
bo

sence the tape was made in interactive mode you will be able to modify the partition sizes through the menu. at that time you can continue to restore the tape and finally after you do this, you can copy the non-vg00 maps back over, now import the non-vg00 disk back in. Once you are happy with the results you can remirror the vg00 disk.
Greg Hall
Frequent Advisor

Re: Extending / root file system

Patrick's point is a good one. Why do you need to extend /? Better to create separate filesystems mounted below / if at all possible.
Confucious Confused
Ravi_8
Honored Contributor

Re: Extending / root file system

patricks idea sounds better, instaed of extending the / file system create one more file system and make a softlink to /
never give up
Stefan Farrelly
Honored Contributor

Re: Extending / root file system


Check out the options in the link from Patricks reply. In there is one on using pvmove. This is the best option as you dont need to rebuild your entire vg00 using an ignite make_recovery tape. Simply break your mirrors and pvmove / to the old mirrored root disk, now extend it, and pvmove the rest over. Then mirror back to your original disk and change your setboot paths and your done. You can do it with only a couple of reboots.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Emil Velez
Honored Contributor
Solution

Re: Extending / root file system


lets assume / is /dev/vg00/lvol3
and it is a vxfs file system.

lets assume that /dev/vg00/lvol4 is the next logical volume on the disk.

pvmove -n /dev/vg00/lvol4 /dev/dsk/
lvextend -L /dev/vg00/lvol3
fsadm -F vxfs -b 100M /

Your / filesystem must be a contiguous logical volume so you need to move the logical volume after it to another disk.

After you extended /dev/vg00/lvol3 you can now move lvol4 back to the root disk

pvmove -n /dev/vg00/lvol4 /dev/ /dev/

This assumed that you had online JFS. If you do not or have a HFS root filesystem ignite may be your best choice.

Good luck
Emil