Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo system old with rootfs 100% used?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Sat Oct 30, 2010 10:37 am    Post subject: gentoo system old with rootfs 100% used? Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Oct 30, 2010 11:17 am    Post subject: Reply with quote

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
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Sat Oct 30, 2010 1:47 pm    Post subject: Reply with quote

also a nice space killer: mysql bin-logs
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Sat Oct 30, 2010 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Oct 30, 2010 7:26 pm    Post subject: Reply with quote

Thanks for correction, Hu. :) I meant /var/tmp/portage indeed.
I was posting before my first cap of coffee this morning. :wink:
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Sat Oct 30, 2010 9:41 pm    Post subject: Reply with quote

Jaglover wrote:
I was posting before my first cap of coffee this morning. :wink:
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
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sat Oct 30, 2010 10:26 pm    Post subject: Reply with quote

It's not getting any better, I see. :( Just one of those days ... I hope tomorrow will be different ... :P
Back to top
View user's profile Send private message
idella4
Retired Dev
Retired Dev


Joined: 09 Jun 2006
Posts: 1600
Location: Australia, Perth

PostPosted: Sun Oct 31, 2010 4:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Mon Nov 01, 2010 5:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21635

PostPosted: Tue Nov 02, 2010 2:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum