Re: [vserver] guest mounts

From: <jason_at_netkosice.sk>
Date: Fri 25 Jun 2010 - 06:49:44 BST
Message-ID: <4e0a5f80863e3493934911dabda0116f.squirrel@webmail.antik.sk>

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
. ..

> this really depends on the setup (i.e. more detail
> about the directories is required), but in general,
> if a mount is only visible inside guest A, then
> you won't have the mechanisms to mount it into a
> namespace belonging to e.g. guest B. if the mount
> is shared with the host OTOH, it should be rather
> simple to bind mount it into the guest ....
>
> in general it is advised to share a host directory
> tree with both guests (A and B) instead of trying
> to share a guest A specific filesystem with guest B.
>
>> When using vnamespace command I can see only empty
>> directory :(
>
> before or after the mount, on the host or guest and
> in the guest setup namespace or in the actual guest
> namespace? :)
>
>
> best,
> Herbert
>
Received on Fri Jun 25 06:50:38 2010

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