Bug 1024730
Summary: | While mounting two different file system (ext3, ext4 ) df tool shows only one mounted file system | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | IBM Bug Proxy <bugproxy> | ||||||
Component: | coreutils | Assignee: | Ondrej Vasik <ovasik> | ||||||
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 20 | CC: | admiller, bugproxy, extras-orphan, hannsj_uhl, jkachuck, jonathan, kdudka, kzak, mluscon, ooprala, ovasik, pbrady, p, rvokal, twaugh, wgomerin | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | s390x | ||||||||
OS: | All | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2014-06-19 21:20:20 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
IBM Bug Proxy
2013-10-30 10:38:55 UTC
Created attachment 817390 [details]
df patch
Created attachment 817391 [details]
sosreport
------- Comment From thorsten.diehl.com 2014-02-27 17:23 EDT------- I can not reproduce this on RHEL7.0 snap8 with various filesystems, and also with a change and manually mounted filesystem it was ok, see here: [root@p2315003 ~]# df -hT /dev/dasda1 ext4 3.8G 715M 2.9G 20% / devtmpfs devtmpfs 994M 0 994M 0% /dev tmpfs tmpfs 999M 0 999M 0% /dev/shm tmpfs tmpfs 999M 8.3M 991M 1% /run tmpfs tmpfs 999M 0 999M 0% /sys/fs/cgroup /dev/dasdb2 ext4 5.7G 12M 5.4G 1% /home /dev/dasda2 ext3 1.9G 26M 1.8G 2% /var /dev/dasdb1 xfs 469M 71M 398M 16% /boot /dev/dasda3 xfs 569M 31M 539M 6% /srv [root@p2315003 ~]# cat /etc/fstab |grep dasd [root@p2315003 ~]# cat /etc/fstab # # /etc/fstab # Created by anaconda on Thu Feb 27 17:12:39 2014 # # Accessible filesystems, by reference, are maintained under '/dev/disk' # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # /dev/disk/by-path/ccw-0.0.5c06-part1 / ext4 defaults 1 1 /dev/disk/by-path/ccw-0.0.5c07-part1 /boot xfs defaults 1 2 /dev/disk/by-path/ccw-0.0.5c07-part2 /home ext4 defaults 1 2 /dev/disk/by-path/ccw-0.0.5c06-part3 /srv xfs defaults 1 2 /dev/disk/by-path/ccw-0.0.5c06-part2 /var ext3 defaults 1 2 /dev/disk/by-path/ccw-0.0.5c07-part3 swap swap defaults 0 0 [root@p2315003 ~]# umount /srv [root@p2315003 ~]# mkfs.ext4 /dev/disk/by-path/ccw-0.0.5c06-part3 mke2fs 1.42.9 (28-Dec-2013) 38400 inodes, 153600 blocks 7680 blocks (5.00%) reserved for the super user Maximum filesystem blocks=159383552 5 block groups 7680 inodes per group 32768, 98304 Creating journal (4096 blocks): done [root@p2315003 ~]# mount -t ext4 /dev/disk/by-path/ccw-0.0.5c06-part3 /srv [root@p2315003 ~]# df -hT /dev/dasda1 ext4 3.8G 715M 2.9G 20% / devtmpfs devtmpfs 994M 0 994M 0% /dev tmpfs tmpfs 999M 0 999M 0% /dev/shm tmpfs tmpfs 999M 8.3M 991M 1% /run tmpfs tmpfs 999M 0 999M 0% /sys/fs/cgroup /dev/dasdb2 ext4 5.7G 12M 5.4G 1% /home /dev/dasda2 ext3 1.9G 26M 1.8G 2% /var /dev/dasdb1 xfs 469M 71M 398M 16% /boot /dev/dasda3 ext4 575M 468K 533M 1% /srv [root@p2315003 ~]# Actually, what you see is caused by the change of /etc/mtab to symlink to /proc/mounts. df needs to do the deduplication, otherwise you can sometimes see dozens of duplicates because of bindmounts and various other "unwanted" items. Unfortunately, deduplication with the shortest mount approach has some disadvantages - but every approach we tried is not perfect. For showing all mounted filesystems you can use df -a (or --all). Does that answer your question/concern? I tend to close it either CANTFIX or NOTABUG - as the behaviour is the result of the systemwide change and there is no good way how to fix it (other than some nasty workarounds like behaving differently for things like fuse fs). As no further comment is provided, I'm closing this CANTFIX ... we know about the df deduplication deficiencies and these are already tracked by various bugzillas (and were discussed upstream). Unfortunately, there is no clear solution atm. - and keeping this one opened doesn't make sense. I think there were issues here. though there is no point showing old mounts that can't be accessed. The soon to be released coreutils 8.23 will show the last (i.e. only accessible) details for a mount point, as per these commits: http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=25a2c948 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=4f8d74eb ------- Comment From hannsj_uhl.com 2017-07-13 07:29 EDT------- . |