On Thursday, October 01, 2015 07:02:47 AM [email protected] wrote:
> On 10/01/2015 06:57 AM, Philip Webb wrote:
> > 151001 [email protected] wrote:
> >> How do you folks clean-up root partition, I have too much junk in there.
> >>
> >> df -h
> >> Filesystem Size Used Avail Use% Mounted on
> >> /dev/sda3 74G 61G 9.3G 87% /
> >>
> >> I've already removed all the files from /usr/portage/distfiles .
> >
> > 'du' is your friend : it has lots of options, so read the 'man'.
> > that will tell you what's using so much space, then you can delete stuff.
> >
> > My system shows :
> > root:505 ~> df -h
> > Filesystem Size Used Avail Use% Mounted on
> > 802 30G 6.4G 24G 22% /
> > tmpfs 395M 516K 395M 1% /run
> > dev 10M 0 10M 0% /dev
> > none 2.0G 0 2.0G 0% /dev/shm
> > cgroup_root 10M 0 10M 0% /sys/fs/cgroup
> > /dev/sda5 30G 12G 19G 40% /home
> > /dev/sda6 15G 6.7G 8.4G 45% /usr/portage
> > /dev/sda7 40G 8.1G 32G 21% /z
> > /dev/sdb1 9.8G 3.5G 6.3G 36% /usr/local
> > /dev/sdb5 9.8G 1.6G 8.3G 16% /usr/src
> > tmpfs 2.0G 8.0K 2.0G 1% /tmp
> >
> > /z is a large hangar space for handling very big files.
>
> Thanks.
> Yes, I used:
> du -a /var | sort -n -r | head -n 10
>
> and found my /var/log/messages was over 5Gb
Permanent solution to that:
% eix logrotate
[I] app-admin/logrotate
Available versions: 3.8.8 3.8.9 3.8.9-r1{tbz2} 3.9.1{tbz2} ~3.9.1-r1
{acl +cron selinux}
Installed versions: 3.9.1{tbz2}(11:02:17 AM 08/07/2015)(acl cron -
selinux)
Homepage: https://fedorahosted.org/logrotate/
Description: Rotates, compresses, and mails system logs
Install and configure.
--
Joost