Bug 1110624

Summary: RHEL7 displays only one nfs mount in df output which are exported with "rw,nohide,crossmnt"
Product: Red Hat Enterprise Linux 7 Reporter: Jayashree <jayashree_doijad>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.0CC: cerninr, pbrady
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-05 16:23:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jayashree 2014-06-18 05:51:27 UTC
Description of problem:
nfs mount points exported with options "rw,nohide,crossmnt" on nfs server and mounted on RHEL7 machine , displays only one mount in "df -k" output and displays all mount points mounted from nfs server in mount output .
If we export without "nohide,crossmnt" from nfs server, we are able to see mount pounts in both mount and df output.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.on nfs server(rhel56) exportfs with options as "rw,nohide,crossmnt"
e.g:
 cat /etc/exports
/opt/VRTSsfaetest/autosetup *(rw,nohide,crossmnt)
/opt/VRTSsfaetest/core/utilities/config *(rw,nohide,crossmnt)
/opt/VRTSsfaetest/core/utilities/scripts *(rw,nohide,crossmnt)
/sfaetest/scratch *(rw,nohide,crossmnt)
/dbdumps *(ro,nohide,crossmnt)
/dbdumps1 *(rw,nohide,crossmnt)

cat /etc/issue
Red Hat Enterprise Linux Server release 5.6 (Tikanga)
Kernel \r on an \m

2.Now try to mount these nfs on rhel7 machine.
mount -t nfs nfsserver:/opt/VRTSsfaetest/autosetup /mnt1
mount -t nfs nfsserver:/opt/VRTSsfaetest/core/utilities/config /sfaetest/config
3.Try df command
It shows only one nfs mount in df -k output , though other nfs actually mounted which displays in mount command .
[root@dblxx64-12-v4 ~]# df -k
Filesystem                                                                  1K-blocks       Used  Available Use% Mounted on
                              
nfsserver:/opt/VRTSsfaetest/core/utilities/config  152516576  123273088   21370976  86% /sfaetest/config

punevault:/re                                                              2149580800  649391104 1488517120  31% /net/re
punevault:/re/release_train                                                2097152000 1254829056  835997696  61% /net/re/release_train


mount output:


nfsserver:/opt/VRTSsfaetest/autosetup on /sfaetest/autosetup type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=,mountvers=3,mountport=876,mountproto=udp,local_lock=none,addr=)
nfsserver:/sfaetest/scratch on /sfaetest/scratch type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=,mountvers=3,mountport=876,mountproto=udp,local_lock=none,addr=)

nfsserver:/opt/VRTSsfaetest/core/utilities/scripts on /sfaetest/scripts type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=,mountvers=3,mountport=876,mountproto=udp,local_lock=none,addr=)
nfsserver:/opt/VRTSsfaetest/core/utilities/config on /sfaetest/config type nfs (rw,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=,mountvers=3,mountport=876,mountproto=udp,local_lock=none,addr=)
puneva:/re on /net/re type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=1,mountvers=3,mountport=41302,mountproto=udp,local_lock=none,addr=)
punevau:/re/release_train on /net/re/release_train type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountproto=,local_lock=none,addr=)
none on /dev/odm type vxodmfs (rw,relatime)

Actual results:
nfs mount points exported with options "rw,nohide,crossmnt" on nfs server and mounted on RHEL7 machine , displays only one mount in "df -k" output and displays all mount points mounted from nfs server in mount output .
If we export without "nohide,crossmnt" from nfs server, we are able to see mount pounts in both mount and df output.


Expected results:
nfs mount points exported with options "rw,nohide,crossmnt" on nfs server and mounted on RHEL7 machine should display all mounted nfs mount points in "df -k" output.

Additional info:

Comment 2 cerninr 2014-10-12 20:36:26 UTC
I can confirm the same, on RedHat Enterprise Linux 6.5. exported 2 Filesystems *(rw,sync,no_root_squash) and mount on RHEL-7 and only first mounted visible in the df -k output.

Comment 3 Steve Dickson 2014-11-03 21:29:47 UTC
I would like to redirect this to the coreutils... I can reproduce
this problem creating to exports on the same file system on the server

nfsserver# cat /etc/exports
#/home *(rw,crossmnt,sec=sys:krb5:krb5i:krb5p)
/home *(rw,nohide,crossmnt)
/home/tmp *(rw,nohide,crossmnt)

nfsclient#mount simhat:/home /mnt/home
nfsclient#mount simhat:/home/tmp /mnt/home/tmp

df -k just shows the first mount
nfsserver:/home             20G  5.1G   14G  28% /mnt/home

Both filesystems are in /proc/mounts and when I 
strace the df command (strace df -k) it does how 
the two file system getting stat()-ed 
   stat("/mnt/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
   stat("/mnt/home/tmp", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0

So the df command does see them but its just not displaying them

I would rather let coreutils people  debug why df is not 
displaying the filesystem (since they know the command better).

If it does turns out to be a NFS issue, just reassign this 
back to nfs-utils...

Comment 4 Ondrej Vasik 2014-11-05 16:23:18 UTC

*** This bug has been marked as a duplicate of bug 1100026 ***