On 2 Dec 2001, Mehmet Ozdemir wrote:
> Hello all,
>
> I have a problem my /home.
>
> df say 96% is in use:
>
> /dev/hda5 4759544 4332372 185396 96% /home
>
> where as nautilus reports:
>
> 20129 items, totaling 1.9 GB
>
> does anyone no why there would be a huge difference. I had to delete
> some file just to retrieve my mail, so the file system definitely thinks
> it's full ??
>
> System is rh 7.1 kernel: 2.4.9-6, ext2
Applicable to all linux systems, if you delete a big file that's still
open the disk space remains the same until the file is closed. See how
logrotate deals with this
EG in /etc/logrotate.d/syslog on my RH7.2 system:
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/var/log/boot.log /var/log/cron {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2>
/dev/null || true
endscript
}
Actually, that's not real clear. Essentially after it renames the logfiles
it signals the application (with kill -HUP) to restart itself and hence
create new logfiles.
--
---<GRiP>---
Web: www.arcadia.au.com/gripz
Phone/fax: 02 4950 1194
Mobile: 0408 686 201
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug