Re: [Vserver] Re: Basic Question

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 10 May 2006 - 13:51:34 BST
Message-ID: <20060510125134.GE30809@MAIL.13thfloor.at>

On Tue, May 09, 2006 at 02:02:51PM -0400, Fareha Shafique wrote:
> Fareha Shafique wrote:
>
> >Corey Wright wrote:
> >
> >>storage space is conserved because files only exist in one place,
> >>but are referenced within multiple vservers though special hard
> >>links.
> >>
> >>memory space is conserved because binaries and shared libraries (and
> >>any item in the file cache, i suppose) only exist in memory once,
> >>though many vservers may be executing/using the file. the idea is to
> >>extend the concept of "shared libraries" to vservers, so that just
> >>as a shared library may be referenced by multiple applications and
> >>it only exists in memory once, the same is true for a shared library
> >>referenced by multiple vservers (by way of vhashify).
> >>
> >>all the examples i have seen enable vhashify for vserver guests, not
> >>the host. i presume it is possible, but it is never applicable in
> >>my case because hard links are only shared on a single filesystem
> >>(where i mount my host's executables/libraries on /usr and my
> >>vservers on /home).
> >>
> >>hth.
> >>
> >>corey
> >>
> >>
> >Thanks, that explaination helps :)
> >Now, is it only libraries and binaries that can be shared or can a
> >vserver be an exact replica of the host.
>
> Oh sorry, that was already answered. I guess anything on the filesystem
> can be shared.
>
> >How about if I want the filesystem of vserver vs1 to be an exact
> >replica of the host, and only when I write/modify any file a local
> >copy should be created for vs1 (using COW)? Is this possible?
>
> Let me explain this better. Say I want to upgrade some software or
> install new software on my host machine. Before doing this, I would
> like to test the upgrade in an environment that is an exact replica of
> the host machine. Is it possible to create a vserver identical to the
> host so that it can be used as the test environment?

yes, but I would suggest to make a copy first and not to
unify it with the host system, just to make sure that
nothing goes wrong ...

later, you can unify the guest with the host, given that
both use the same filesystem

HTH,
Herbert

> Thanks,
> -FS
> _______________________________________________
> 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 Wed May 10 13:52:39 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 10 May 2006 - 13:52:56 BST by hypermail 2.1.8