Operating System - HP-UX
1843335 Members
2932 Online
110214 Solutions
New Discussion

Re: Extend the root volume

 
N A Khan
Contributor

Extend the root volume

Hi Friends,
The root lvol (dev/vg00/lvol3) has 100% space already used in our rp8400 server. Can you suggest how can we extend this logical volume ?
thanks in advance
NaKhan
10 REPLIES 10
Peter Kloetgen
Esteemed Contributor

Re: Extend the root volume

Hi NaKhan,

this is not possible in most cases. / volume has a "contignuos" allocation restriction, and you can't do so, because the extends after the existing ones are allready in use. The best way is to make a "make_tape_recovery" tape, then restore from this tape. During the restoring process you can give the desired sizes to your file systems.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping
Bart Beeren
Advisor

Re: Extend the root volume

I think it only will be possible when you do have onlineJFS available. Otherwise you have to make an ignite and do a restore as mentioned before.
BB
Life isn´t as simple as it seems
Martin Burnett_2
Trusted Contributor

Re: Extend the root volume

Hello,


See the this doc in knowledge base:

http://support2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000024627113

Thanks for participating in the forums,

Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.
Luc Bussieres_1
Trusted Contributor

Re: Extend the root volume

Nakhan,

The root lvol needs to be contiguous so you cannot extend it easily since usually the next partition is used by /usr.

The easiest way to do so is to use a make_recovery tape and to increase the size of root while reinstalling the system from the make_recovery.

Otherwise you will have to move the lvol that use the extent that follow root on the physical disk to another location. Doing this you should be able to increase root because you will have some free extents that will be contiguous with lvol3. But this is not an easy solution.

Luc
James R. Ferguson
Acclaimed Contributor

Re: Extend the root volume

Hi:

You can increase the size of your rot ("/") logical volume by using Ignite 'make_tape_recovery' to create a bootable recovery tape and re-install using it.

If you have Online JFS (which I hope you do for a number of reasons), then there is a well-cocumented procedure to affect the extension. See Technical Knowledge Base document #KBRC00006582.

*However*, you should ascertain why the root filesystem is out-of-space. Generally, it should contain only a few directories. OF these, '/etc' and '/dev' should be the largest sspace-users.

Make sure that someone didn't miskey a device file name during a tape copy, thereby creating a hugh file in '/dev'. A common mistake is to type "om" instead of "0m" for a tape device --"/dev/rmt/0m". Verify that '/dev' contains only special files (i.e. block and character ones). You may find your culprit there.

Regards!

...JRF...
Joseph C. Denman
Honored Contributor

Re: Extend the root volume

Maybe you could clean it up? Once the OS is loaded, the root fs should grow very little. Find out what is taking up the space and move it to a different fs.

Maybe some of the directories on the root fs could me moved to there own fs?


...jcd...
If I had only read the instructions first??
Jose Mosquera
Honored Contributor

Re: Extend the root volume

Hi NaKhan,

Really you need more space? Pls check if any bigger file have created recently. Somethings a wrong raw device creation (generally in /dev/) must affect available space in "/".

A way to detect large files in your root disk is execute from / the following command:

#du -akx|sort -nr|more

If you detect any large not-wished file, just remove it or move it to another place.

Regards
Hai Nguyen_1
Honored Contributor

Re: Extend the root volume

NaKhan,

The root filesystem should be static. You should follow James, Jose's advices to look for unwanted files and clean them up or move them to other filesystems.

Hai
Sanjay_6
Honored Contributor

Re: Extend the root volume

Hi,

/dev/vg00/lvol3 is the root lv and you cannot increase its size without reloading the OS either a cold install or a reinstall using ignite.

I would suggest you to have a look at the directories and see if there are some filen in this filesystem which should not be there. Normally "/" filesystem is not used for any logs or any other file, so it should not get filled up unless a file is created in this filesystem by mistake which should not have happened.

Hope this helps.

Regds
Peter Kloetgen
Esteemed Contributor

Re: Extend the root volume

Hi all,

this member assigned points to 0 of 33 responses.... wow, thank you for taking some time to assign points, like we spend time and try to help you.

Allways stay on the bright side of life!

Peter
I'm learning here as well as helping