HPE 9000 and HPE e3000 Servers
1753297 Members
6695 Online
108792 Solutions
New Discussion юеВ

Re: how to expand the / (root) file system

 
SOLVED
Go to solution
guru_6
Advisor

how to expand the / (root) file system

How to expand a / (root) file system in HP-UX 11i.
6 REPLIES 6
Leif Halvarsson_2
Honored Contributor

Re: how to expand the / (root) file system

Hi,

The root volume cannot be extended online, at least not LVM volume, not sure about VxVM.

The easiest way is to use ignite (do a ignite backup and then restoring from that backup, specifying a new size for the root volume.
Zygmunt Krawczyk
Honored Contributor

Re: how to expand the / (root) file system

Hi,

the only way to expand the root file system is reinstalling th OS

You can do it in two ways:

1) Use of make_tape_recovery from Ignite-UX
and restore with new file system size
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB

2) New cold install of the OS

Regards,
Zygmunt
Gerhard Roets
Esteemed Contributor

Re: how to expand the / (root) file system

Hi John

The big problem with expanding root filesystem is that it has a requirement to be ade up of contigious PE's. The easiest way to get around thia is by making use of an ignite tape.

When you ignite it you can give it the bigger size.

Regards
Gerhard
guru_6
Advisor

Re: how to expand the / (root) file system

Dear All,

I have a tape library, and the problem is that I can not use the tape recovery tape through tape library, is there any other way to do this.
Leif Halvarsson_2
Honored Contributor

Re: how to expand the / (root) file system

Hi,
The alternative (and the best one) is to use an Ignite server. After installing and configuring the Ignite server you can install,backup and restore all your HP-UX hosts from the LAN. The Ighite software is free and the Ignite server can be a low performance box.
Jannik
Honored Contributor
Solution

Re: how to expand the / (root) file system

lets say you have the following:
/dev/vg00/lvol3 204800 54187 141231 28% /
/dev/vg00/lvol1 299157 30265 238976 11% /stand
/dev/vg00/lvol8 4706304 690315 3766149 15% /var
/dev/vg00/lvol7 1179648 764750 390304 66% /usr
/dev/vg00/lvol4 2048000 894292 1082116 45% /tmp
/dev/vg00/lvol6 3145728 989658 2021355 33% /opt
/dev/vg00/lvol5 819200 593072 226128 72% /home

and you find out root is running full, you should look for the files that are expanding in the / filesystem make a new volume lets mount it at /expand move files to this directory and make some softlinks:
ln -s f1 f2

or if it is a new directory that is expanding in root witch it usally is let call it /tempo01.
make a new volume and mount it at /tempo02.
move date fra /tempo01 to /tempo02:
cd /tempo01
find . -depth | cpio -dumpv /tempo02
then remove the old dir:
rm -Rf /tempo01
then u/mount:
umount /tempo02
mount /dev/vg00/newvol /tempo01

this should do it for you.
jaton