View previous topic :: View next topic |
Author |
Message |
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Tue Jan 14, 2003 7:16 pm Post subject: /var partition full ! |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Tue Jan 14, 2003 7:20 pm Post subject: |
|
|
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 |
|
|
doug-x07 Tux's lil' helper
Joined: 16 Nov 2002 Posts: 122 Location: Paris, France
|
Posted: Tue Jan 14, 2003 7:21 pm Post subject: |
|
|
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 |
|
|
brain Apprentice
Joined: 16 May 2002 Posts: 229 Location: Farmington Hills, MI
|
Posted: Tue Jan 14, 2003 7:25 pm Post subject: |
|
|
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 _________________ --brain |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Tue Jan 14, 2003 7:40 pm Post subject: |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Tue Jan 14, 2003 7:51 pm Post subject: |
|
|
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 |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Tue Jan 14, 2003 10:01 pm Post subject: |
|
|
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 |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Tue Jan 14, 2003 10:40 pm Post subject: |
|
|
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 |
|
|
schleppy n00b
Joined: 22 Nov 2002 Posts: 16
|
Posted: Tue Jan 14, 2003 10:50 pm Post subject: |
|
|
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 |
|
|
TripKnot Apprentice
Joined: 29 May 2002 Posts: 213
|
Posted: Wed Jan 15, 2003 4:07 pm Post subject: |
|
|
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 |
|
|
|