NFSv4 Server/Client Setup Issues

Greetings,

I’ve been trying to setup NFSv4 on my home server. Currently I am using NFSv3. It works, but I wanted to try to implement version 4 for various reasons, but I have run into several issues.

My current server setup is as follows:

  1. I have several hard drives full of files each mounted in their own directory under /media. So the naming scheme would be something like:

  2. /media/Linux_HD1

  3. /media/Linux_HD2
    etc

Under version 3 of NFS I have them set as in my /etc/exports file and I mount them with autofs on my client computers inside the /nfs/server folder. No problems viewing my files.

However, when I try to implement version 4, I can only get two outcomes:

  1. I can view the /media directory and all sub directories on my clients, but the sub directories are all empty under /nfs/server.
  2. I can mount and view any single one of the drives under /nfs/server, but not all of them at once.

I’m still learning all the ins and outs of NFSv4, but I suspect scenario #1 has to do with /media being a directory full of mount points.

So, with all of that said, what I would like to do is:

  1. export all contents of the /media directory on my server which contains several drives mounted to sub directories.
  2. Mount all the contents of /media on my client computers using autofs.

Any info you may need, just ask. Any help is appreciated. Thanks.

Soon after I posted this I managed to get everything working. A little more reading and starting from scratch and I got my /etc/exports setup correctly. Many thanks.

It would be helpful if you explained what was wrong and how you fixed it, for benefit of others in the future.