1753629 Members
5982 Online
108798 Solutions
New Discussion юеВ

Re: home dir to big

 
Piotr Kirklewski
Super Advisor

home dir to big

Hi there
I'm not sure why is that but my /home is to big. I removed all the files and created admin dir.
[root@localhost admin]# df
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 5.1G 547M 4.4G 12% /
/dev/sda6 4.2G 137M 4.1G 4% /home

[root@localhost admin]# du -h /home/
4.0K /home/admin
8.0K /home/

How come that there is still 137M on that partition ?

Regards

Peter

Jesus is the King
4 REPLIES 4
Ivan Krastev
Honored Contributor

Re: home dir to big

Piotr Kirklewski
Super Advisor

Re: home dir to big

Does anyone know how to check and get rid of the pre-allocation pain ?

Regards

PEter
Jesus is the King
Jeeshan
Honored Contributor

Re: home dir to big

sometimes it's happening when a file is holded by a process which does not physically exist.

check with lsof software to find out which file is holded in home directory.
a warrior never quits
Nido
Trusted Contributor

Re: home dir to big

Hello Peter,

There are instances when files are being removed when they're in use by processes.
Unless you kill the matching processes space can't be released.

Use lsof to find the processes holding space.
You may find the examples in the man page.

eg. lsof +D /home +L1

There are many similar threads in itrc talks about file system usage and lsof.

Thanks,
" Let Villagers Be Happy!! "