Subject: Re: [vserver] Simple question ...
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Fri, 11 Sep 2009 10:22:08 +0200

On Fri, Sep 11, 2009 at 02:06:56AM -0500, Dragan Saraginov wrote:
> Hi to all here. 

> I have a simple question regarding mounting two guest servers.

you mean, (bind) mounting the filesystem tree of those
guests?

> Here is the thing I need to mount two quests on the same physical server.

the host is the physical server, if each guest has a
separate device or partition, and your guest config
contains a proper fstab entry, util-vserver will mount
them into your guest's namespace on startup

> I know that this can be done by stopping one of them, changing the xid
> of the stopped guest server with the xid number of the server where
> will be mounted.

the xid is the context id, and has little to do with
the filesystem (tree) used by the guests, except for:

 a) guests are identified by xid, and so are the 
    private namespaces

 b) processes with the same xid (started by util-vserver)
    will share the same guest (namespaces)
 
 c) tagging (filesystem persistant context information)
    is based on xid (context ids) to some extend

> But the issue here is that I need both guests to be up and running,
> so the question is is there a way to mount one running guest to some
> directory to the other one.

if you just want to share a filesystem (tree) between
two guests, the simplest solution is to put the (bind)
mount(s) into the guest config's fstab and be done

HTH,
Herbert

> TIA,
> Dragan Saragin
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.