RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1110624 - RHEL7 displays only one nfs mount in df output which are exported with "rw,nohide,crossmnt"
Summary: RHEL7 displays only one nfs mount in df output which are exported with "rw,no...
Keywords:
Status: CLOSED DUPLICATE of bug 1100026
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-18 05:51 UTC by Jayashree
Modified: 2014-11-05 16:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-05 16:23:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.