1 |
On 7/17/2011 2:19 PM, Michael Sullivan wrote: |
2 |
> I'm running into space issues (my / partition is at 99% of capacity) and |
3 |
> I'd like some advice on what I can remove and how. |
4 |
|
5 |
Assuming your / partition isn't tiny I've never seen removing packages |
6 |
or changing use flags make enough of a difference though there are a |
7 |
couple of exceptions. Chances are you've got old data rather than |
8 |
binaries somewhere that's causing the space problem. |
9 |
|
10 |
/usr/src/linux-* |
11 |
Each new revisions of the kernel that you install drops a |
12 |
/usr/src/linux-$version directory. These are pretty good size and you |
13 |
should remove the packages of any kernels you not using. You may also |
14 |
need to manually remove the dirs as well after the packages have been |
15 |
removed. |
16 |
|
17 |
/var/lib/mysql |
18 |
It's usually not the databases that use space on a home system, but the |
19 |
binary logs. Add these two lines under the mysqld portion of your |
20 |
/etc/mysql/my.cnf and restart Mysql. You may need to purge bin logs as |
21 |
well though Mysql should clean things up when you restart it. |
22 |
|
23 |
[mysqld] |
24 |
expire_logs_days = 10 |
25 |
max_binlog_size = 100M |
26 |
|
27 |
/root/ /tmp/ / |
28 |
Lot's of people have the bad habit of leaving dumps, tars or other |
29 |
files in these dirs. Check them out. |
30 |
|
31 |
Lastly a df -h and a sudo du -m --max-depth=1 / would go a long way |
32 |
towards pointing to where the problems are. |
33 |
|
34 |
kashani |