1833785 Members
2411 Online
110063 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.
Marcel Heijblom
Occasional Advisor

Re: full /home directory

Thanks all for the valuable contributions.

I am just a novice and willing to learn!

Every answer was as good, so I will not give you any points.

After rebooting I could enter into the /HOME
directory and I could resolve this issue.
Thanks all, Marcel
First think then act !!!
Dan Hetzel
Honored Contributor

Re: full /home directory

Hi Marcel,

As you are new in using this forum, I'd like to clarify the point attribution.

On the forums main page, you have a link labeled "more about the point system" which is surely worth reading.
Here is the link:javascript:goToITRC('/estaff/bin/doc.pl/forward/screen=estaffAssistance?Page=file0002#forpoints');

In this document it is stated the following:
---quote
Each response you receive is eligible to earn between 1-10 points based on your judgement of its value. So, you don?t have to worry about "shooting you load" of points on the first answer you receive, and not having enough for when that truly awesome response rolls in.
Although message rating is not mandatory it is STRONGLY ENCOURAGED. Others have taken time out to help you, so please take a moment to give them credit for the assistance they have provided. Also, your rating will not only help your peers earn points toward their Forums status, but your feedback will validate the quality of the solution you've received. Others will therefore be able understand which answer best helped you solve your problem, making the community knowledge being shared here that much richer.
--\quote


All the best

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

Re: full /home directory

Hi Dan:

Any problem again with points?

Marcel:
We use to award points to say how much thanks.
unsupported
Dan Hetzel
Honored Contributor

Re: full /home directory

Carlos,

What do you mean by "again" ?

No problem with points but, as Marcel claimed to be a newbie, his last post made me believe that he didn't fully understand the way points could be assigned.

He wrote >> "Every answer was as good, so I will not give you any points."

In my previous post, I only quoted HP, so I don't really understand why this could be an offense.

Not really worrying about getting a few more points ;-)

Regards,

Dan


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