Re: [vserver] mount a directory on a different filesystem in guest

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Mon 12 Jul 2010 - 11:41:39 BST
Message-ID: <20100712104139.GA16036@MAIL.13thfloor.at>

On Sun, Jul 11, 2010 at 07:22:28PM +0200, Eugen Leitl wrote:
> On Sun, Jul 11, 2010 at 07:07:16PM +0200, Daniel Hokka Zakrisson wrote:
> > Eugen Leitl wrote:
> > > On Sun, Jul 11, 2010 at 08:55:07AM -0700, Nirmal wrote:
> > >> Do you want to mount host dir

> > > Yes.

> > >> on guest? Did you try mount --bind ?

> > > I'm not familiar with that option. Can you given an example
> > > of how you would use it? Within the host or within the guest?

> > In /etc/vservers/<guest>/fstab:
> > /home /home ext3 bind 0 0

> Thanks for the recipe (ext4 in my case) --

the filesystem doesn't matter, this is VFS magic

> upon guest reboot the mount succeeded.

you could have also entered the guest's filesystem
namespace and do the mount there (at runtime)

best,
Herbert

> Thanks!
> --
> Eugen* Leitl leitl http://leitl.org
> ______________________________________________________________
> ICBM: 48.07100, 11.36820 http://www.ativel.com http://postbiota.org
> 8B29F6BE: 099D 78BA 2FD3 B014 B08A 7779 75B0 2443 8B29 F6BE
Received on Mon Jul 12 11:53:54 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 12 Jul 2010 - 11:53:59 BST by hypermail 2.1.8