Operating System - HP-UX
1834232 Members
2416 Online
110066 Solutions
New Discussion

Increase root partition size

 
SOLVED
Go to solution
Massimo_37
Frequent Advisor

Increase root partition size

We have got two 18G hard disks- one mirrored. The 18G disc has been partitioned as shown below. Since the root voulme group has only 84MB, we need to now increase the size of root partition. Can some one please suggest the easiest way of acieving this.
Many Thanks
Logical Volume Volume Group Use Mbytes Copies Mount Directory

lvol1 vg00 HFS 48 1 /stand
lvol2 vg00 Swap/Dump 512 1
lvol3 vg00 HFS 84 1 /
lvol4 vg00 HFS 20 1 /home lvol5 vg00 HFS 348 1 /opt lvol6 vg00 HFS 100 1 /tmp lvol7 vg00 HFS 448 1 /usr lvol8 vg00 HFS 300 1 /var
11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: Increase root partition size

Hi,

The easiest and safest way is to create a bootable tape with Ignite software and restore your current confirutaion to a newly created VG00 with new lvol's sizing.

The Ignite software can be found at below link.

http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB

Kind regards,
Robert-Jan
Naveej.K.A
Honored Contributor
Solution

Re: Increase root partition size

hi,

make_tape_recovery -Iv -d /dev/rmt/0mn -x inc_entire=vg00

change the boot sequence to that pointing to the tape drive.

and change the size of your filesystems

with best wishes
Naveej
practice makes a man perfect!!!
Shaikh Imran
Honored Contributor

Re: Increase root partition size

Hi,
I think its not so easy to increase the root filesystem.
You have to take the ignite backup of root vg
and do a fresh install and restore the backup.


Regards,
I'll sleep when i am dead.
Manish Srivastava
Trusted Contributor

Re: Increase root partition size

Hi,

You cannot increase the space for / directly. For that you may have to reinstall the system. What you can do is create a lvol and add it to any of the /tmp, /usr, /var etc.


Regards,
Manish.

Re: Increase root partition size

hi

you may try lvextend command, but you must have OnlineJFS product in my opinion
Isralyn Manalac_1
Regular Advisor

Re: Increase root partition size

You can extend the root filesystem using an Ignite tape. Reboot the server and point it to boot using the Ignite tape. You can then proceed in increasing your root filesystem.

Regards,

Ira
KapilRaj
Honored Contributor

Re: Increase root partition size

I think this is easy ... use pvdisplay -v and find out which lvol is next to lvol3 and move the PE'S of that lvol to a diffrent disk (pvmove ) in the vg. lvextend the lvol3 and fsadm to increase if u hv online jfs. If u do not have online jfs do extendfs from lvm maintanance mode.

After doing this move the PE's of lvol? which u hv moved out of this disk back to the original disk and they will fit somewhere after the space utilised by lvol3.

Be care full using pvmove as u should have enough space for it.

Regds,

Kaps
Nothing is impossible
Massimo_37
Frequent Advisor

Re: Increase root partition size

Thank you all for the advice posted. I have now created an recovery tape using the make_recovery_tape -lv -d /dev/rmt/0mn -x inc_entire=vg00
Can someone please point me to detailed steps on what happens when I boot from this tape - i.e what will the ISL or IPL ask for and what commands I can use (will it be lvextend first, then unmount the filesystem, extend the filesystem, and mounting the file system again). I wait for your advice before proceeding
Robert-Jan Goossens
Honored Contributor

Re: Increase root partition size

Hi,

Check this link,

http://web.tampabay.rr.com/batcave/ignite.htm

chapter "Ignite from a bootable tape"

Regards,
Robert-Jan
iminus
Frequent Advisor

Re: Increase root partition size

You can't change the size of / directory, only thing you can do is to do a backup and then reinstall or restructure your filesystem, then restore everything.
hope it helps
Richard Pereira_1
Regular Advisor

Re: Increase root partition size

The official answer has always been reinstall or restore using ignite.

However, I have heard of a method using pvmove and extending. I was wondering if anyone had any documentation on it, or whi has tried it.

Regards,
Richard