Re: [Vserver] Save space for vservers

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Sun 02 Jul 2006 - 17:58:49 BST
Message-ID: <20060702165849.GC16297@MAIL.13thfloor.at>

On Sun, Jul 02, 2006 at 09:06:36AM +0000, Daniel W. Crompton wrote:
> Hi,
>
> On one of my machines I started to run out of space so I started to
> see where I could save space. On my Gentoo host I already share
> portage(ro) and distfiles(rw) trees with the vservers, the vserver bin
> packages I save separately for security reasons.
>
> The same for documents and man pages, although you must be able to
> write to /usr/share/doc and /usr/share/man.
>
> /etc/vservers/gentoo-guest-1/fstab
> # Essentials
> /usr/share/doc /usr/share/doc none bind,rw 0 0
> /usr/share/man /usr/local/share/man none bind,ro 0 0
>
> Gentoo has a compiler in it's base installation and requires it for
> all the installations done. So the next thing logical thing for me is
> sharing the compiler amongst the vservers which will save me 119Mb for
> every vserver.
>
> My only concern was that this might break something, for the time
> being I've mounted on the specific version I'm sharing.

you might want to look into unification and make
use of the vunify or (even better) vhashify ...

http://linux-vserver.org/alpha+util-vserver

HTH,
Herbert

> /etc/vservers/gentoo-guest-1/fstab
> # GCC
> /usr/i686-pc-linux-gnu/gcc-bin/3.4.6/
> /usr/i686-pc-linux-gnu/gcc-bin/3.4.6/ none bind,rw 0 0
> /usr/libexec/gcc/i686-pc-linux-gnu/3.4.6/
> /usr/libexec/gcc/i686-pc-linux-gnu/3.4.6/ none bind,rw 0 0
> /usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/
> /usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/ none bind,rw 0 0
> /usr/i686-pc-linux-gnu/gcc-bin/3.4.6/
> /usr/i686-pc-linux-gnu/gcc-bin/3.4.6/ none bind,rw 0 0
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/
> /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/ none bind,rw 0 0
>
> cya,
>
>
> Daniel
>
> blaze your trail
>
> --
> redhat
> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sun Jul 2 18:00:48 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 02 Jul 2006 - 18:00:52 BST by hypermail 2.1.8