Operating System - HP-UX
1834274 Members
1880 Online
110066 Solutions
New Discussion

How can I increase the root file system "/"?

 
SOLVED
Go to solution
Steve Yang_2
Advisor

How can I increase the root file system "/"?

I found that my root file system "/" is full, How can I increase the root file system "/"?

Do I have to reinstall from scratch?

Thanks in advance

steve_yxf
8 REPLIES 8
simonnext
Occasional Advisor

Re: How can I increase the root file system "/"?

Try boot from other media, import root deivce and increase the root lv
S.K. Chan
Honored Contributor

Re: How can I increase the root file system "/"?

Take a look at this thread. Using Ignite is the proper way to do this. There is also another option (see my reply in that thread).

http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xcd1a36e69499d611abdb0090277a778c,00.html

Hope it helps..
Patrick Wallek
Honored Contributor

Re: How can I increase the root file system "/"?

If your / is full, the first thing to check is if there are any files there that shouldn't be. The usual culprit is that someone wrote something to /dev/rmt/om instead of /dev/rmt/0m.

Check that out first and then if you still need to increase /, your best bet is the Ignite/UX route. If you don't have Ignite you can get it from http://software.hp.com/products/IUX

Once it is installed (the install does NOT require a reboot) you then create a make_tape_recovery tape, preferably 2 copies, with the following command:

# /opt/ignite/bin/make_tape_recovery -a /dev/rmt/?mn -I -v -x inc_entire=vg00

Make sure you replace the ?mn with the correct tape device for your machine.

After you make the tape, you boot from the tape, and then you have the option, from one of the menus (I can't remember which right now) to change the sizes of your root LVs.

Also be aware that if you have your root disk(s) mirrored, you will have to recreate the mirrors after the ignite process is finished as Ignite/UX does NOT recreate the mirrors automatically.
Trond Haugen
Honored Contributor

Re: How can I increase the root file system "/"?

The easiest way to increase / is to remove files that shouldn't be there. E.g. 'find / -xdev -name core -exec rm {} \;'. Also look for larger files in /dev.
If that doesn't give you the free space you need you may have to increase /. The problem is that / needs to be contiguous and within the first 2Gb of the disk. So your best option is normally to make a ignite backup and restore it interactively creating a bigger /.
Another option if / is a HA-disk is to create a new "root-vg" on a new disk copying over all file systems and swapping them later.
If you go for the Ignite version be sure you use a version you have tested or the latest patched version.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
John Bolene
Honored Contributor

Re: How can I increase the root file system "/"?

You can make other lvol's and move mount points to them to free up stuff, such as moving /var, and /tmp, and /opt. You will need to do these in single user mode.

The best solution is to backup using ignite and reload it all. Using ignite to reload, you can specify more space for whichever lvol's you need to expand and can also make those new lvol's for /var, /opt, and /tmp at that time.

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Ceesjan van Hattum
Esteemed Contributor

Re: How can I increase the root file system "/"?

Reboot in maintance mode and solve your problem:

ISL> hpux -lm boot
$>lvextend -L SIZE /dev/vg00/lvol3
$>/usr/sbin/reboot -n

Regards,
Ceesjan
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: How can I increase the root file system "/"?

Steve


/ is something which gets filled in case the house keeping is not done . All you have to do is to check the flloowing :

1. Find core files and delte them

2. /etc/utmp may have grown bulky , you may liket o delete or make it to 0 bytes.

3. under /dev there may be errorneous files created bcoz of incorrect archiving commands given. you can delte them

4. Check for /lost+found and delte the files there.

/ root should be like 150 mb to wrok proeperly , so you can check for that size atleast . Still if you want to increase it then the best way out is

1. boot in singel user mode and then extend if the vg00 is free

2. Do a ignite and retore OS wiht a bigger root size.


Manoj Srivastava
Wodisch_1
Honored Contributor

Re: How can I increase the root file system "/"?