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