View previous topic :: View next topic |
Author |
Message |
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Mon Oct 04, 2010 8:48 am Post subject: PORTAGE_TMPDIR on unionfs with tmpfs howto ? |
|
|
hi,
some days ago i read a howto somewhere on the inet that described how to define a unionfs that consists of a tmpfs and ordinary disk space. the result is space to compile large packages that lies in RAM, only when the space requirements exceed tmpfs size, rotating disk space is used.
now i cannot find that howto ?
has anyone seen that ?
thanks in advance. |
|
Back to top |
|
|
SLBMEH Apprentice
Joined: 16 Aug 2003 Posts: 299 Location: Pittsburgh, PA
|
Posted: Mon Oct 11, 2010 3:51 pm Post subject: |
|
|
I have never seen what you are talking about before, but it sounds fairly simple.
1. Install UnionFS support.
2. Make your tmpfs dir. (/mnt/portage-tmpfs)
3. Make your overflow dir. (/mnt/portage-overflow)
4. Make your tmpdir mount with a union between the two with tmpfs being placed first.
mount -t unionfs -o dirs=/mnt/portage-tmpfs=rw:/mnt/portage-overflow=rw unionfs /var/tmp/portage
I am at a school computer at the moment, so I can't verify that this works. I will do further experimentation when I get home.
Edit: Or you can use AuFS in place of UnionFS, which IMO is safer when dealing with accidental/intentional direct branch access. http://aufs.sourceforge.net/aufs2/man.html _________________ Steve - Semper Fi |
|
Back to top |
|
|
|
|
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
|
|