I'm usign a Debian server (Jessie) as an NFS server. All exported NFS-shares are mounted filesystems using loop devices. They are mounted in the fstab without any special options & the mountpoints are managed within a common root directory:

  • /nfsshares *(rw,fsid=0,async)
  • /nfsshares/mp1 *(rw,sync,no_root_squash,no_subtree_check,nohide)
  • /nfsshares/mp2 *(rw,async,no_root_squash,no_subtree_check,nohide)

mp1,mp2 are mountpoints for the loop devices!

Starting the nfs server causes an entry in the log file: /nfsshares/mp1 und /nfsshares/mp2 have same filehandle for * using first.

All NFS-clients always mount the first share - regardless of the used mount points. I think that this has something to do with the used loop-device for the mountpoints.

Isn't possible to use mounted images for NFS shares?

ThanX /franzR

  • Can you clarify which version of NFS is being used? – Matt Jul 13 '15 at 20:45

Depending on the locations of the directories being mounted, as well as client and server configurations it may be valuable to ensure that /etc/exports is setup correctly on the server. This answer on setting up NFS with mount-points as sub-directories might be helpful.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.