Operating System - HP-UX
1826417 Members
3623 Online
109692 Solutions
New Discussion

Re: How to increase space

 
SOLVED
Go to solution
Ernesto Barrera
Occasional Contributor

How to increase space

My System is an HP-UX 11 D-230 and "/" File System is 100% full. What can I do to increase its capacity?
I have enought space left (not asigned) on disk.
8 REPLIES 8
melvyn burnard
Honored Contributor
Solution

Re: How to increase space

before going through th epain of increasing the space, you may want to check what is taking up ytthe current space.
for example, hav eregular files been placed in /dev?
do du -s /dev
it should be fairly small number, if not then someone may have done something redirecting to what they THOUGHT was a device, but did a typo.
common ones are /dev/rmt/om instead of /dev/rmt/0m, or /dev/nul instead of /dev/null.
Also check for multiple vmunix* files in /standor /stand/build.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Rainer_1
Honored Contributor

Re: How to increase space

increasing / is difficult.
First check what files/directories have grown up your fs:

du -kx / |sort -n

If you found some dirs you can create a new lvol and mount it to them.
Victor BERRIDGE
Honored Contributor

Re: How to increase space

Hi,
In order to extend / you will have to use Ignite-Ux, do a make_recovery -A and use the freshly generated DAT to extend /, for that you will have to reboot from the DAT, press return to interrupt batch mode, now you can install again HP-UX with new params (change file system size).
As you can see Melvyn and Rainer are right check first why / is 100% full by following theyr advices and if you have no other alternative now you know what you are to do
You may have to download and install Ignite-Ux, its free , make a search on the forum...
Here are size of vg00 fs on one of my D230...
/dev/vg00/lvol3 86016 28618 53876 35% /
/dev/vg00/lvol1 67733 36654 24305 60% /stand
/dev/vg00/lvol8 716800 579032 129196 82% /var
/dev/vg00/lvol7 606208 451612 145000 76% /usr
/dev/vg00/lvol6 667648 588618 74690 89% /opt

Good luck

Victor
Sandor Horvath_2
Valued Contributor

Re: How to increase space

Hi !

You can create the simbolic link to the another filesystem, and move some data there.

For increase the "/" filesystem the problem is it must be contiguous extents. May be you can increase it if boot your system from the another boot disk, and remove the used space after "/" , and increase it. First make a backup !

Please create link to another fylesystem.

Saa
If no problem, don't fixed it.
CHRIS_ANORUO
Honored Contributor

Re: How to increase space

It is very difficult to increase / filesystem, unless when using make_recovery tape to reconfigure the LV's.
Do find / -xdev -size +1,000,000c -exec ll {} \\; to find core dumps of files mistakenly copied to / root.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Dan Hetzel
Honored Contributor

Re: How to increase space

Hi Ernesto,

Unless you have installed HP-UX with a really small / filesystem, you shouldn't need to increase its size because it's not suppposed to grow.

Make sure you have separate filesystems for
/tmp
/var
/usr
/opt

If /tmp is not on its own filesystem, clean all files older than 3 days with:
find /tmp -type f -mtime +3 -exec rm {} \;

Check if the / filesystem contains any large file that shouldn't be there (core dumps, a.out, *.tmp, *.log) with
find / -xdev -size +1000 -exec ll {} \;
will show you all files larger than 1000 blocks (512Kbytes)


Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
John Waller
Esteemed Contributor

Re: How to increase space

I have to agree with the re-install from a make_recovery tape and re-structure your vg00 logical volumes if you can't find any core files or mis-typed device files within your / file system. Another useful command to use to identify any large files is " find / -xdev -type f -exec ls -l {} \; " (find from root without crossing mount points , all regular files and list them.)
As a side note I am slightly annoyed that HP seem to use /etc as a config area for uucp, ppp, printers, resmon. Alright these should not be too big but if you do have a system with a lot of modems or printers then it may start to impact on your / filesystem.
f. halili
Trusted Contributor

Re: How to increase space

Have you tried deleting core files???

# find / -name "core" -type f -exec rm {} \;

Find big files ????

# find / -size +1000000c | pg

derekh