> On Fri, 25 Jun 2010 19:30:01 +0200
> Herbert Poetzl <herbert@13thfloor.at> wrote:
>
> so try:
>
> vnamespace -e <vserver> mount
> --bind /var/mail/ /var/lib/vservers/ftp/tmp/mnt/
>
> specifically, i've used the following:
>
> vnamespace -e <vserver> mount /dev/loop /vservers/<vserver>/mnt/
>
> (to mount the loop-back device into a vserver, like copying the contents
> of
> a cd/dvd image into a vserver.)
>
> corey
thanks corey, but still no luck (I think I'm doing something wrong)
# vserver ftp exec ls -a /tmp/mnt
. ..
# vnamespace -e ftp mount --bind /var/mail/ /var/lib/vservers/ftp/tmp/mnt/
# vserver ftp exec ls -a /tmp/mnt
. ..
# vnamespace -e ftp cat /proc/mounts
[...]
/dev/mapper/var-mail /var/lib/vservers/ftp/tmp/mnt ext3
rw,relatime,errors=continue 0 0
# ls -a /var/mail
. .. root
Received on Mon Jun 28 07:44:03 2010