I have the following scenario:
I have a folder /bla/ on a server which mounts a windows samba share into it. Now I want to mount this folder /bla/ on another server with nfs.
That should look like:
Server A:
/bla/FoldersFromSambeShare
Server B:
/mnt/bla(FromServerA)/FoldersFromSambeShare(MountedOnServerA)
I mounted the /bla/ folder on server A but I don’t see the samba folders. I tried it with the nohide option in /etc/exports but I still don’t see them.
Has anyone any advice for me?
NFS will not “forward” mounts. If the real file system is on
systemW, you can have a remote mountsystemW -> (cifs) systemA, and ifsystemWhas an NFS implementation (either not Windows, or Windows with add-on software), you can also have a remote mountsystemW -> (nfs) systemB. However, as you’ve noted, trying to mountsystemA -> (nfs) systemBgives you the (probably empty) directory fromsystemAupon whichsystemAhas something else mounted. Your idea to havesystemW -> (cifs) systemA -> (nfs) systemBcannot work, at least with NFS. There are some other options if you really need to chain remote mounts (likesshfsand some other FUSE-based file system types).