Bug 1166051 - nfs: df -h does not display the mount done via a symlink
Summary: nfs: df -h does not display the mount done via a symlink
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: gluster-nfs
Version: rhgs-3.0
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Niels de Vos
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-20 10:48 UTC by Saurabh
Modified: 2016-01-19 06:14 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-18 09:24:56 UTC
Embargoed:


Attachments (Terms of Use)

Description Saurabh 2014-11-20 10:48:38 UTC
Description of problem:
This issue is about not having the information about the symlink mount in the df -h.


Version-Release number of selected component (if applicable):
glusterfs-3.6.0.33-1.el6rhs.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a volume of 6x2 type, start it
2. mount the volume over nfs on a client
3. create directory inside the mount-point
4. create a symlink for the directory
5. mount using the symlink

Actual results:
df -h does not show the mount done for symlink

[root@rhsauto012 nfs-symdir]# df -h
Filesystem                              Size  Used Avail Use% Mounted on
/dev/mapper/rhel_rhsauto012-root         27G  4.3G   23G  17% /
devtmpfs                                1.9G     0  1.9G   0% /dev
tmpfs                                   1.9G     0  1.9G   0% /dev/shm
tmpfs                                   1.9G  175M  1.7G  10% /run
tmpfs                                   1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/vda1                               497M  105M  393M  21% /boot
rhsqe-repo.lab.eng.blr.redhat.com:/opt  1.9T  298G  1.5T  17% /opt
/dev/mapper/gluster_vg-RHS_pool1_tdata  179G  2.4G  176G   2% /xfs-mount
10.70.37.74:/vol0                       2.7T  1.7G  2.7T   1% /mnt/nfs-test
[root@rhsauto012 nfs-symdir]# 
[root@rhsauto012 nfs-symdir]# mount | grep dir1
10.70.37.74:/vol0/dir1 on /mnt/nfs-symdir type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.70.37.74,mountvers=3,mountport=38465,mountproto=tcp,local_lock=none,addr=10.70.37.74)


Expected results:
df -h should display the mount info

Additional info:

Comment 2 Jiffin 2014-11-25 08:48:42 UTC
This is know issue in nfs clients.If there are multiple nfs mount for same export directory , it will start  filtering duplicates by devnum.  See for more information:
https://bugzilla.redhat.com/show_bug.cgi?id=920806

Comment 3 Niels de Vos 2014-12-18 09:24:56 UTC
This really is not something that can be fixed in gluster-nfs. If this is a problem, a bug should be filed against the RHEL NFS-client, or the "coreutils" package that contains "du".

Bug 1152615 is a similar bug for RHEL6 as Bug 920806 that Jiffin pointed out for Fedora.


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