Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Running out of space on /var partition
Date: Mon, 25 Jul 2011 10:41:24
Message-Id: 201107251140.57518.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Running out of space on /var partition by YoYo Siska
1 On Monday 25 Jul 2011 11:24:33 YoYo Siska wrote:
2 > On Mon, Jul 25, 2011 at 11:02:34AM +0100, Mick wrote:
3 > > After some deliberation I've started emerging libreoffice. It gave the
4 > > usual office suite warnings at the beginning that there isn't enough
5 > > space in /var (I have 5.8G and it was asking for more than 7G+).
6 > >
7 > > Half way through the emerge I noticed that I have only 74M left and is
8 > > going down fast! O_O
9 > >
10 > > OpenOffice was able to emerge in the past using this partition size
11 > > without a problem. I've flushed logs and what not to free some space,
12 > > but I'm thinking of extending the partition somehow. I don't run LVM on
13 > > this machine so that's not a solution for this circumstance.
14 > >
15 > > Is there anything I can do with mount --rbind and could I do this in the
16 > > middle of an emerge? I have another partition with loads of space in it,
17 > > but it has a different fs on it (reiser4 instead of /var's ext4).
18 >
19 > You can mount --bind a dir from a large partition to /var/tmp/portage
20 > before an emerge, but you can't do that during a running emerge. However
21 > with a reasonable buildsystem, you could in theory stop the emerge, copy
22 > over the files in /var/tmp/portage to new location (preserving
23 > timestamps) and then try resuming the emerge with FEATURES="keepwork
24 > noclean", though i don't know if that works well with openoffice...
25 >
26 > Also you don't have to mount anything to /var/tmp/portage, you can just
27 > change the dir by setting PORTAGE_TMPDIR to a directory on a partition
28 > with enough space (I normally have my DISTDIR, PKGDIR and PORTAGE_TMP set
29 > on a different partition...)
30
31 Oh yes! Of course, PORTAGE_TMPDIR .... what was I thinking?!!
32
33 Thank you.
34
35 I never understood properly how the mount --bind/rbind works. I understand
36 that the original partition content becomes visible on a second partition, but
37 I'm not at all sure what happens when the space on the first partition runs
38 out?
39 --
40 Regards,
41 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Running out of space on /var partition YoYo Siska <yoyo@××××××.sk>