[Users] OpenVZ Bind mounts
mike at infinilan.com
mike at infinilan.com
Fri May 28 06:07:33 MSK 2021
Hello list,
Hoping someone can help, (forum registration is closed) I'm trying to
bind a samba share from the host to the OpenVZ container, but when I do
the directory on the container is empty. I've tried to follow
https://wiki.openvz.org/Bind_mounts however I think it's out of date as
it refers to simfs which I don't have. I made the directory permissions
open and selinux is disabled.
- Here's the layout:
NAS ---(CIFS)---> Virtuozzo-Server ----(BIND Mount)---> OpenVZ-Container
Virtuozzo, OpenVZ release 7.0.16
Here's what I've done:
1. Mount CIFS share on the host:
[root at openvz conf]# mount -t cifs //server/directory /mnt/disk -o
username=user,vers=3.0,file_mode=0775,dir_mode=0775
2. Run the bind mount (I've tried a few variations of this):
[root at openvz conf]# mount -v --bind /mnt/disk/ /vz/root/101/mnt/disk/
mount: /mnt/disk bound on /vz/root/101/mnt/disk.
- Here's what it looks like on the host:
[root at openvz conf]# ls -l /mnt/disk/ | wc -l
234
[root at openvz conf]# ls -l /vz/root/101/mnt/disk/ |wc -l
234
- ...On the container (101):
[root at computer1 ~]# ls -l /mnt/disk/
total 0
Anyone have any ideas what's going on? It's causing real dramas here.
Kind regards,
Mike.
More information about the Users
mailing list