Operating System - HP-UX
1834812 Members
3062 Online
110070 Solutions
New Discussion

Extending the root file system

 
Govinda
Advisor

Extending the root file system

hi,

I want to extend the root (/) file system, i have applications installed on the system. kindly help me with the procedure carry out this activity.

thanks in advance.

Govind.
6 REPLIES 6
Robert-Jan Goossens
Honored Contributor

Re: Extending the root file system

Hi Govinda,

The easiest way is to create a bootable ignite tape and restore your OS to a larger filesystem.

Iginite can be downloaded from

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

Hope this helps,
Robert-Jan
Franky_1
Respected Contributor

Re: Extending the root file system

Hi,

use Ignite (make_tape_recovery)

Regards

Franky
Don't worry be happy
Rgomes
Valued Contributor

Re: Extending the root file system

Yes, make_tape_recovery is the easiest and best way to resize filesystems.

#make_tape_recovery -I -v -x inc_include=/dev/vg00 -a /dev/rmt/?mn

I=interactive recovery
?mn= 0mn or 1mn ....etc.

regards,
Richard
Jeff Schussele
Honored Contributor

Re: Extending the root file system

Hi,

I agree that Ignite is the (only) way to go.
But I would also caution you *strongly* to not load apps in vg00, let alone in /....and now you no one of the main reasons - space. The other is that if they go awry & corrupt the VG they live in, you're liable to have an unbootable system.
Since you have to use Ignite to extend /, you can use the opportunity to create another VG (if you have the spare disk(s)) & have that VG/LV mount to the location where the apps currently reside.
Use fbackup and create a tape of the apps only & then when you create the make_tape_recovery tape exclude the apps. Then lay down the recovery tape - creating the new VG/LV/FS at that time & simply restore the fbackup data to that new structure.
MORAL: Don't mix OS & application on the same VG.

My 2 cents,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Rick Garland
Honored Contributor

Re: Extending the root file system

As stated previously, not a good idea to load apps in vg00. Use this for root files only.

Look to see if you have some log files being written in vg00, or a core file that dumped, or somebody is redirecting output into the vg00. Look into the /var/adm area, you have the syslog.log and mail.log and the various sar files in this area as well. This could be taking lots of room on vg00. Also see if you can run the cleanup utility on some older, superceded patches. This can be vg00 as well.

Ignite is the way to make the / filesystem bigger but see if there is something taking the space before hand. It will be much easier (and no downtime) to see if you can clean up in the / filesystem than to re-ignite a system.

Rick Garland
Honored Contributor

Re: Extending the root file system

Another suggestion, if /var/adm/crash is a part of the vg00, look to see if there are old crash dump files that you can remove.

Try this command to identify you worse offenders:

From the root directory (/)

# du . -x -ka | sort -nr | more

This will identify the biggest to smallest file in the root filesystem area.