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