Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a group of server that need two nfs shares, a few servers need access to one of the shares and all of the servers need access to another. The NFS server is ubuntu 12.04 and the others are 13.04 Here's my exports on the nfs server


Both of those are on separate partitions, logshare is ext4 and vmail is xfs, dunno if that could be relevant.

Here's what's in the fstab on the client server           /vmail1         nfs     hard,intr,auto 0 0      /logshare     nfs     hard,intr,auto 0 0 

but here's what I get after rebooting  4.1G  158M  3.8G   4% /logshare       4.1G  158M  3.8G   4% /vmail1

it's just mounted the logshare twice. If I reverse the order of the exports then it mounts the vmail twice. What's going on? I've been trhough the logs but don't see any errors relating to nfs

Showmount -e shows this
/vmail1, /u0/logshare

and the contents of both mounts are identical

share|improve this question
What does showmount -e from one of your servers give you? – GeoSword Aug 31 '13 at 9:04
Are the actual files duplicate at each mount point? – Skaperen Aug 31 '13 at 9:22
Showmount -e shows this /vmail1, /u0/logshare and the contents of both mounts are identical – vmos Aug 31 '13 at 13:36

You should have started saying that this is an NFSv4 server.

The problem is in your /etc/exports file. You are declaring both resources with the fsid=0 flag. That's wrong.

Read the exports(5) for the details, but basically:

For NFSv4, there is a distinguished filesystem which is the root of all exported filesystem. 
This is specified with fsid=root or fsid=0 both of which mean exactly the same thing. 

I.e. you can only declare one root.

Common practice (although others might have different ones) is to create dedicated LVs (formatted as you need, ext4, xfs, ...) for the resources you plan to export, and mount them under a controlled directory structure. For example:


Then, mount bind those resources under /srv/nfsv4/, resulting something in the lines of:

# tree /srv/nfsv4/
├── bar
├── baz
└── foo

This way, you declare /srv/nfsv4 your fsid=0 and export the rest of the resources as you see fit.

Note that access restrictions (by IP, or sec mode chosen) in the fsid=0 apply, so clients not satisfying the requirements in the fsid=0 will fail to mount the resources, even if the requirements for an specific resource are fulfilled.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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