[Vserver] Save space for vservers

From: Daniel W. Crompton <daniel.crompton_at_gmail.com>
Date: Sun 02 Jul 2006 - 10:06:36 BST
Message-ID: <c17f91900607020206y35ef1263gc5a41ebcc71d9247@mail.gmail.com>

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.

/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
Received on Sun Jul 2 10:07:39 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sun 02 Jul 2006 - 10:07:43 BST by hypermail 2.1.8