Operating System - HP-UX
1827293 Members
3890 Online
109717 Solutions
New Discussion

expanding the file system

 
Geoffrey Franklin
New Member

expanding the file system

The HP 9000 Server running BP-UX 10 that I was called to service is running out of root (/) file system. It has 162 bytes free space available and i was wondering if there a way that I can expand it.
Thank you.
11 REPLIES 11
Sanjay_6
Honored Contributor

Re: expanding the file system

Hi,

You cannot extend the root "/" filesystem without reinstalling the OS. You can use ignite to take a backup and then reinstall from the ignite backup.

Try this ignite site for more info.

http://www.software.hp.com/products/IUX/download.html

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: expanding the file system

Not easy, unless you have Online-JFS:

swlist OnlineJFS

If you don't then you have to do a make_tape_recovery, manually intervene the re-install, then increase root.

It's cheaper to purchase OnlineJFS than screw with a restore!

Look for onlineJFS at http://software.hp.com

live free or die
harry d brown jr
Live Free or Die
Simon Hargrave
Honored Contributor

Re: expanding the file system

You will need to take an Ignite backup using Ignite/UX (if you're not already using this you should seriously consider using it as part of your disaster recovery strategy), then rebuild the server with a larger / filesystem.

However make sure you really need to make more space in /, as this filesystem shouldn't really grow. Look for files like core files, or other large files that aren't required.

Try running the following command to list all files on the / filesystem in size order - see if there are any unrequired large files.

find / -xdev -exec ls -ld {} \; | sort -n -k 5
Geoffrey Franklin
New Member

Re: expanding the file system

Thanks guys for the prompt response.
I really appreciate it.
Shahul
Esteemed Contributor

Re: expanding the file system

Hi

Extending root is not very easy, But you can, if U have free space just after lvol3. If U have lvol4 created after lvol3, then U can't.

To achive this I will give U one procedure, If it is acceptable to U, then proceed with this. This procedure can be used only if you have enough space in vg00.

First take the backup of lvol4. Then reboot the system. Go to ISL prompt

ISL>hpux -lm

System will come to LVM maintanence mode.

Now we are going to remove lvol4.
#lvremove /dev/vg00/lvol4 (I mean by lvol4 is the lvol just after root)
#lvextend -L /dev/vg00/lvol3
#extendfs /dev/vg00/rlvol3

I hope U have enough space in vg00. Now create lvol4
#lvcreate -L -n lvol4 /dev/vg00
#newfs -F vxfs /dev/vg00/rlvol4

#vgchange -a y vg00
#bdf

Checkup the size of each volumes
Now restore the backup of lvol4.

Best of luck

Shahul

Restart the machine
MarkSyder
Honored Contributor

Re: expanding the file system

Other things worth looking for:

directories that would be better in their own filesystem (probably not on the root disc).

Large files in /dev that are the result of a typing mistake: e.g., a user has incorrectly typed the name of a tape device with the result that the "backup" has actually created a large file in the /dev directory.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
erics_1
Honored Contributor

Re: expanding the file system

Pardon what may perhaps be a stupid question. I got started with HPUX at 10.20. Was Ignite and OnlineJFS available at HPUX version 10.0 (as indicated in the initial thread)?

Eric
Sanjay_6
Honored Contributor

Re: expanding the file system

Hi,

Ignite is available for 10.20 but onlineJFS is probably not. Even Ignite older version may be available. I think hp has stopped supplying ignite newer version with 10.20 support.

Look at the Note on the link i've provided before.

Hope this helps.

Regds
erics_1
Honored Contributor

Re: expanding the file system

I realize Ignite is/was available for 10.20. The point I am making is that it's been suggested to use Ignite or OnlineJFS because it's being assumed he's running 10.20. He stated that he's running 10.0 NOT 10.20. Just wanted to make this clear before steering someone down a dead end.

That being said, I would look into moving the data in lvol4 to another location. This would allow for expansion of '/' while obeying the strict allocation policy.

Hope this helps,
Eric
erics_1
Honored Contributor

Re: expanding the file system

oops. strict = contiguous
Geoffrey Franklin
New Member

Re: expanding the file system

Thanks Eric,
Actually the machine is running the 10.20 version. I take all the suggestions into consideration and would proceed cautiously but in the worst case scenerio, i'll reinstall.
Thanks again everyone.

Geoffrey