Re: NFSv4 mount with fsid=0, clients CentOS6/7 show different mounts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello

I'm using CentOS 7 to export multiple filesystems under a root
filesystem with fsid=0.

eg:
/etc/exports:
/datasets    10.0.231.0/255.255.255.0(rw,fsid=0,no_root_squash,no_subtree_check)
/datasets/home 10.0.231.0/255.255.255.0(rw,no_subtree_check,no_root_squash,no_subtree_check)


On a CentOS 7 client, a mount command will show the NFS servers /
(fsid=0) location. If I then descend into a subdirectory on the client
side, the mount command will show that subdirectory mounted as well.
This is very useful as df -h commands will show the different server
filesystems free space.

eg:
/etc/fstab:
10.0.231.56:/    /datasets    nfs    bg    0 0

# mount:
10.0.231.56:/      6.8G  2.4G  4.4G  36% /datasets

# cd /datasets/home

# mount
10.0.231.56:/ on /datasets type nfs4
(rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=10.0.231.205,local_lock=none,addr=10.0.231.56)

10.0.231.56:/home on /datasets/home type nfs4
(rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.231.205,local_lock=none,addr=10.0.231.56)

# df -h
10.0.231.56:/      6.8G  2.4G  4.4G  36% /datasets
10.0.231.56:/home  6.9T  507G  6.4T   8% /datasets/home


On a CentOS 6.6 client, a mount command will only show the NFS
server / (fsid=0) location mounted. After descending into a subdirectory on
the client side, no change is shown with the mount command. Obviously
this is then an issue when trying to see what the filesystems
freespace under the NFS servers / (fsid=0) location is.

eg:
/etc/fstab:
10.0.231.56:/    /datasets    nfs4    bg    0 0

# mount:
10.0.231.56:/ on /datasets type nfs4
(rw,bg,addr=10.0.231.56,clientaddr=10.0.231.218)

# cd /datasets/home

# mount:
10.0.231.56:/ on /datasets type nfs4
(rw,bg,addr=10.0.231.56,clientaddr=10.0.231.218)

# df -h
10.0.231.56:/   6.8G  2.4G  4.4G  36% /datasets



I've looked through the man pages but don't see any options that would
make CentOS 6.6 show all the NFS subdirectory mountpoints.

Is this just a difference between NFS client versions on CentOS 6 vs
7? Any suggestions on how to deal with this?

Thanks,
Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux