Re: [vserver] guest mounts

From: John A. Sullivan III <jsullivan_at_opensourcedevel.com>
Date: Fri 25 Jun 2010 - 13:51:02 BST
Message-ID: <1277470262.3423.3.camel@localhost>

On Fri, 2010-06-25 at 07:49 +0200, jason@netkosice.sk wrote:
> maybe small example will be more suitable :)
>
> # vserver ftp exec mkdir /tmp/mnt
> # vserver ftp exec ls -a /tmp/mnt
> . ..
> # mount --bind /var/mail/ /var/lib/vservers/ftp/tmp/mnt/
> # ls /var/lib/vservers/ftp/tmp/mnt/
> root
> # vserver ftp exec ls -a /tmp/mnt
> . ..
> # vserver ftp enter
> # cd /tmp/mnt/
> # ls -a
> . ..
> # exit
> # vserver ftp restart
> [...]
> # vserver ftp exec ls /tmp/mnt
> root
> # umount /var/lib/vservers/ftp/tmp/mnt/
> # vserver ftp exec ls /tmp/mnt
> root
> # vserver ftp restart
> [...]
> # vserver ftp exec ls -a /tmp/mnt
> . ..
<snip>
>
>
Interesting. I've always done my mount rbinds before starting the
guests. I wondered if your issue was because you were using /tmp which
is a tmpfs so I tried it using /vservers/vs/mnt/testmnt and experienced
the same results as you - John
Received on Fri Jun 25 14:01:27 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 25 Jun 2010 - 14:01:32 BST by hypermail 2.1.8