Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var partition full !
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
sebgarden
Guru
Guru


Joined: 21 Dec 2002
Posts: 353

PostPosted: Tue Jan 14, 2003 7:16 pm    Post subject: /var partition full ! Reply with quote

Hi, I have a separated var partition (2GB), which is full and consequently, I can't emerge anything else. Unfortunately, I didn't emerged evms before. So what can I do ? I think of fstab with some cut/copy to minimize an other partition, but is there anyway to reduce the /var occupied place ?

Regards,
Sébastien.
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Jan 14, 2003 7:20 pm    Post subject: Reply with quote

any big logfiles there - /var/log... ?

u cannot simply change the size of a partition in fstab, thats more complex...
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
doug-x07
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2002
Posts: 122
Location: Paris, France

PostPosted: Tue Jan 14, 2003 7:21 pm    Post subject: Reply with quote

Clean out /var/tmp/portage and you should retrieve quite a bit of space on your partition.
_________________
#! /usr/bin/perl
if( @first != $succeed ) {
post { $question->forum && eval '$answers' };
try { $again } catch { $problem && $resolve };
bless $posters; }
Back to top
View user's profile Send private message
brain
Apprentice
Apprentice


Joined: 16 May 2002
Posts: 229
Location: Farmington Hills, MI

PostPosted: Tue Jan 14, 2003 7:25 pm    Post subject: Reply with quote

Do you have another hard drive available? Probably the simplest thing to do would be to temporarily attach another disk, give it a partition and copy your /var info over to it (use cp -p).

After this, change your fstab to point /var to your new disk.

Do what you need to fix your space issue, and do the reverse as above. I've used this little trick more than once to fix space issues :wink:
_________________
--brain
Back to top
View user's profile Send private message
sebgarden
Guru
Guru


Joined: 21 Dec 2002
Posts: 353

PostPosted: Tue Jan 14, 2003 7:40 pm    Post subject: Reply with quote

OK, I'll try to clean out the /var/tmp/portage. As I have a laptop, I cannot attach a new hard drive so simply. Just a precision, evms can resize partitions, isn't it ?

Regards,
Sébastien.
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Tue Jan 14, 2003 7:51 pm    Post subject: Reply with quote

sebgarden wrote:
Just a precision, evms can resize partitions, isn't it ?


i think so... u might also want to take a look at parted
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Tue Jan 14, 2003 10:01 pm    Post subject: Reply with quote

Even if it is not the very best solution, you could simply symlink /var/tmp/portage and|or /usr/portage (where a lot of tar archives live) on another partition. That is
Code:
mkdir /somewhere/var_tmp_portage
cd /somewhere/var_tmp_portage
ln -s /var/tmp/portage


If you want to "move" /usr/portage, just mv /usr/portage to the new place and then symlink it back. That's because you probably have MBs in /usr/portage and want to keep it.
Back to top
View user's profile Send private message
sebgarden
Guru
Guru


Joined: 21 Dec 2002
Posts: 353

PostPosted: Tue Jan 14, 2003 10:40 pm    Post subject: Reply with quote

OK, thank you doug-x07.
I've cleaned out /var/tmp/portage and I've yet 1,9 GB free. I emerged evms and I now emerge xfree, which failed to compile before, supposingly because I had not enough space on /var. But evms (dated 01.15.2003 !, surely because I have enabled ~arch) need a version of ioctl which is not in the kernel 2.4.19r10. And I need xfs support. So one question, why do the gentoo sources not include xfs support ?

I have xfs in my use variables but if I emerge the last Gentoo-sources with make oldconfig, will it include xfs support ?

Regards,
Sébastien.
Back to top
View user's profile Send private message
schleppy
n00b
n00b


Joined: 22 Nov 2002
Posts: 16

PostPosted: Tue Jan 14, 2003 10:50 pm    Post subject: Reply with quote

I think all you have to do is temporarily set the portage_tmpdir variable. Do:

export PORTAGE_TMPDIR=/anywhere/it/fits

I did that to build java when i had a separate partition for /var that was too small. Who knew I'd ever need more than 2 gigs for /var. go figure...
PS:just an alternative, if it happens again.
Back to top
View user's profile Send private message
TripKnot
Apprentice
Apprentice


Joined: 29 May 2002
Posts: 213

PostPosted: Wed Jan 15, 2003 4:07 pm    Post subject: Reply with quote

Another directory you may want to occasionally empty out is /usr/portage/distfiles.

When you emerge an app the downloaded files are placed here but they are never deleted. If you have been running your system for a while and have gone through several versions of apps then this directory can be pretty big.

This is safe too. If an app ever needs to be emerged again the sources will be downloaded again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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