Re: [Vserver] Making two vservers see the same data/directory structore.

From: Herbert Poetzl <>
Date: Tue 10 Jan 2006 - 16:04:52 GMT
Message-ID: <>

On Tue, Jan 10, 2006 at 10:35:02AM +0200, Etienne Pretorius wrote:
> Hello all,
> I don't quite know where to ask or what to google for but here is my
> situation:

> I have a vserver guest runnning an ftp daemon and another vserver
> guest running samba. What I need to do is to mount, or just make it
> avalible, the ftp data in the samba server. I dont want to give the
> samba users access to writing - only reading, so hopefully that will
> solve some permission issues.

basically the solution is simple, just mount some partition
(or a directory with --bind) into both guests, and they
will have both access to it, using BME patches you can also
'mount --bind -o ro' into the samba guest

> Lets say the ftp data is mounted in the samba server under
> /usr/local/samba/ftp.

> So how would I accomplish this?

mount --bind /vservers/guestA/<dir> /vservers/guestB/<dir>

(make sure to do it _before_ you start the guests, or from
within the namespace of the second one)

> Also I am using ext3 filesystems with the diskquota per vserver
> context application - would this effect the quota?

so you are on a 2.4 kernel I assume ...

yes, you will very likely run into permission issues with
xid tagging enabled on the 'shared' directory, because new
files will be tagged by one guest and denied to the other
(an untagged partition would help here)


> Thank you.
> Etienne Pretorius
> _______________________________________________
> Vserver mailing list
Vserver mailing list
Received on Tue Jan 10 16:05:18 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 10 Jan 2006 - 16:05:23 GMT by hypermail 2.1.8