1755667 Members
3282 Online
108837 Solutions
New Discussion юеВ

full /home directory

 
Marcel Heijblom
Occasional Advisor

full /home directory

I have a full /home directory and I think
because of that a hugh load (top - 16,15,15) on the server.

What can I do to free space on /HOME or add space to it???
First think then act !!!
13 REPLIES 13
Dan Hetzel
Honored Contributor

Re: full /home directory

Hi Marcel,

You could start with searching for, and removing, core files.
find /home -name core -exec rm {} \;

Then remove all 'a.out' files older than 3 days:
find /home -name a.out -mtime +3 -exec rm {} \;

Then print out the listing of all 'large' files:
find /home -type f -size +1000 -exec ll {} \;
This will list all files larger than 512000 bytes, maybe you could remove or compress some of those.

Best regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
federico_3
Honored Contributor

Re: full /home directory

you could either delete the unused/greatest files under the users home directories or extend it ( on line if yuo have installed HP_UX 11 and JFS on line ) if there is available space on the volume group.
I'd try to search the younger files that have filled it and if they are only temporary files ( contact the users..) cancel them !


Thanks
Federico
Darrel Louis
Honored Contributor

Re: full /home directory

Marcel,

Check the following
cd /home
du -s *|sort -n >/tmp/home_size
Check which directory has the biggest and see if the files can be removed or compressed.

Can't you extend /home?

Good Luck

Darrel
Marcel Heijblom
Occasional Advisor

Re: full /home directory

The FIND command does not work !!!

Is it possible to extend the /HOME??
And how do I do that ??

This is a HP9000 with 10.20 OS version.
First think then act !!!
Joseph C. Denman
Honored Contributor

Re: full /home directory

1. Make sure there is enough space left in your VG.
2. umount /home {There may be processes using /home so use the fuser cmd to find them and kill them or boot in single user mode}
3. lvextend -L {Size in MB} /dev/vg?/lvol?
4. extendfs /dev/vg?/rlvol?
5. mount /home
If I had only read the instructions first??
Dan Hetzel
Honored Contributor

Re: full /home directory

Hi,

The find command doesn't work ?? Surprising !

What kind of error does it give you ?

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Darrel Louis
Honored Contributor

Re: full /home directory

Marcel,

the find command works fine:
see below:
# find /home -type f -size +1000 -exec ll {} \;
-rw-r----- 1 simon is 2160640 Jun 13 2000 /home/simon/hp.tar
-rw-r--r-- 1 684 100 2035200 Apr 28 1999 /home/simon/hp/hp.cor

What is the error message what you're getting.

Darrel
nnf97
Regular Advisor

Re: full /home directory

I assume when he says the find command doesnt work its coz hes missing out a comma or a semicolon.
However, in your situation, I would think extending the LV is the way to go.
Do a "man extendfs" and go right down to the end, there is a nice example there about all the steps to follow to extend a given volume.

Nabeel
Live Free or Die (New Hampshire)
Sandor Horvath_2
Valued Contributor

Re: full /home directory

Hi !

First create a new filesystem, and move here some directories and create symbolic link there.
After clean /home directory, backup it and extend size.

regards, Saa
If no problem, don't fixed it.