View previous topic :: View next topic |
Author |
Message |
agrypa1 Apprentice
Joined: 31 Mar 2005 Posts: 244
|
Posted: Sat Oct 30, 2010 10:37 am Post subject: gentoo system old with rootfs 100% used? |
|
|
Hi,
I came to a point where "startx" doesn't go through. It complains about "not enough space".
Command "df" reveals that rootfs which phisically resides on /dev/sda3 is full.
I removed all of the distfiles from /usr/portage/distfiles and was able to gain 4% space.
I suspect that somethning might have happen during my last compilation: the power went off, with no UPS.
Where to look for some posssible dispersed files?
What should I do to get thing right?
Code: |
df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 96132968 86728084 4521528 100% /
/dev/root 96132968 86728084 4521528 100% /
rc-svcdir 1024 112 912 11% /lib64/rc/init.d
udev 10240 224 10016 3% /dev
none 1547352 0 1547352 0% /dev/shm
/dev/sda1 101089 47885 47985 50% /boot
|
agryppa _________________ The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Oct 30, 2010 11:17 am Post subject: |
|
|
Boot from a liveCD and run fsck.
Make sure all logs are rotated so they won't go out of hand.
Clean up /var/local/portage.
Remove unused kernel sources. |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Sat Oct 30, 2010 1:47 pm Post subject: |
|
|
also a nice space killer: mysql bin-logs _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sat Oct 30, 2010 4:32 pm Post subject: |
|
|
Jaglover wrote: | Clean up /var/local/portage. | What normally goes here? I do not have a /var/local at all.
Another space eater: $PORTAGE_TMPDIR, which defaults to /var/tmp/portage. If you get interrupted during a compile, the partially completed work can be left there. (This might have been what Jaglover meant to mention, but I will add it in case he had something else in mind.) |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Oct 30, 2010 7:26 pm Post subject: |
|
|
Thanks for correction, Hu. I meant /var/tmp/portage indeed.
I was posting before my first cap of coffee this morning. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Sat Oct 30, 2010 9:41 pm Post subject: |
|
|
Jaglover wrote: | I was posting before my first cap of coffee this morning. | Happy to help. However, if you need an entire cap of coffee in the mornings, I really hope you get a good discount on your brew. |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Oct 30, 2010 10:26 pm Post subject: |
|
|
It's not getting any better, I see. Just one of those days ... I hope tomorrow will be different ... |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Sun Oct 31, 2010 4:29 pm Post subject: |
|
|
agrypa1,
if you're still looking, there are heaps of ways of liberating space, besides deleting the obvious.
IF you have a spare partition of device of some sort (maybe a usb flash drive) you could move a folder like /usr and/or /var or /home out of your system partition; just remember to make the new entry in /etc/fstab. _________________ idella4@aus |
|
Back to top |
|
|
agrypa1 Apprentice
Joined: 31 Mar 2005 Posts: 244
|
Posted: Mon Nov 01, 2010 5:30 pm Post subject: |
|
|
idella4 wrote: | agrypa1,
if you're still looking, there are heaps of ways of liberating space, besides deleting the obvious.
IF you have a spare partition of device of some sort (maybe a usb flash drive) you could move a folder like /usr and/or /var or /home out of your system partition; just remember to make the new entry in /etc/fstab. |
The deletion of var/tmp/portage helped significantly, 8% storage gain.
I am now thinking of adding a new hardrive and migrate into lvm. I hope to find some goog howto on how to convert non-lvm system into anlvm one.
thanks all for the suggestions
Agryppa _________________ The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office. |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21635
|
Posted: Tue Nov 02, 2010 2:21 am Post subject: |
|
|
If you are not converting in place, then just make filesystems on the destination drive and copy the files over via a tar pipeline: Code: | cd /mnt
mkdir old new
for fs in '' usr var home; do
mount --bind /$fs old
mount /dev/mapper/lvm-${fs:-root} new
tar -C old -c -f - . | tar -C new -x -f -
umount old
umount new
done
rmdir old new |
|
|
Back to top |
|
|
|