1822864 Members
4122 Online
109645 Solutions
New Discussion

Increase root space

 
Javier Ortiz Guajardo
Frequent Advisor

Increase root space

I want to increase the size of filesystem root (/). I don´t have JFS installed to increase it online.

How can i do it?

than
The obstacles are those things that the people see when they left to see their goals.
9 REPLIES 9
Chris Watkins_1
Respected Contributor

Re: Increase root space

Make an Ignite image of vg00 to tape.
Restore from the Ignite, and change the filesystem size
on the way back up. It's the quickest and easiest way I know.
Not without 2 backups and an Ignite image!
A. Clay Stephenson
Acclaimed Contributor

Re: Increase root space

It wouldn't matter if you had OnlineJFS. / , /stand, and the primary swapspace must be allocated as contigious blocks. The only real answer to your question is to do a make_tape_recovery and Ignite the system and resize the LVOL at that time.

It's very rare that / ever needs to be increased in size (unless you need to upgrade the OS). In all cases a size of 160MB-200MB is more than enough. If your / filesystem is running out of space something is wrong because once a system has been setup the size of / should be all but static.

If it ain't broke, I can fix that.
RNY
Respected Contributor

Re: Increase root space

Hello,

You must reduce the size of the swap to be able to extend the root logical volume.

Regards
DGH_2
Valued Contributor

Re: Increase root space

Hi
you can do it by reducing the swap.
i preffer that you do it by using ignite.
this is better and you can increase the / and other lvols if you have to, and for sure if you have free space.

Regards:
DGH
Steven E. Protter
Exalted Contributor

Re: Increase root space

Make sure ignite is current:

/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00

Boot the box
interupt at the 10 second prompt

sea

Boot off the sequential device.

example

bo p2

Watch closeley at the console, when there is a prompt to press a key for interactive restore, do it.

Now you can increase the size of the root fs.

I do not believe the standard size of root in the os install is adequate. Thats why so many people have to do this.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stefan Farrelly
Honored Contributor

Re: Increase root space

If you dont want to use ignite to rebuild your server from tape you can it relatively easy using this method;

1. / is lvol3. lvol4 (tmp) is next so move tmp first. Create a new lvol (usually lvol9), edit /etc/fstab, make /tmp on lvol9, comment out lvol4. Reboot

2. now you can lvremove lvol4 to free up space immediately after lvol3 (/) as this is where you need contiguous space to extend root.

3. boot in lvm maintenance mode. Activate vg00, lvextend lvol3, extendfs it, reboot.
Done.

This only allows you to extend root/lvol3 by as much as the size of lvol4 (tmp).
Im from Palmerston North, New Zealand, but somehow ended up in London...
doug mielke
Respected Contributor

Re: Increase root space

A short term workaround could be to create some sym. links (ln -s) from large directories under / to other, more roomy filesystems. Not a great long term stratagy, but can be helpful in an emergency.

doug mielke
Respected Contributor

Re: Increase root space

..and I should be more complete in my answer.

Move large files / directories to a roomy filesystem, and ln -s them to /old_dir_name.
Pratyush Paul_1
Valued Contributor

Re: Increase root space

Hi -

This is what I did in my data center.

#make_recovery -i ( take a complete backup of the vg00, with interactive option).

After the back up is done, boot thru the tape and interact with the filesystem sizes. modify the sizes and then proceed. It would be done in 30 minutes. If possible try to get 2 sets of tape backup( in case the first one fails).

Thanks

Pratyush
Die Hard