Re: [vserver] guest mounts

From: <jason_at_netkosice.sk>
Date: Mon 28 Jun 2010 - 07:43:20 BST
Message-ID: <a91aed9a7661e622dc04a50782a75f99.squirrel@webmail.antik.sk>

> 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

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 28 Jun 2010 - 07:44:07 BST by hypermail 2.1.8