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
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to