Bug 1395180 - CIFS + USS : du -sh on cifs mount give wrong information , when snapshots are present and uss is enabled
Summary: CIFS + USS : du -sh on cifs mount give wrong information , when snapshots are...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: doc-Administration_Guide
Version: rhgs-3.2
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: storage-doc
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-15 10:56 UTC by Anil Shah
Modified: 2023-01-04 06:35 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Anil Shah 2016-11-15 10:56:41 UTC
Description of problem:

du -sh command on cifs mount point shows wrong information , when there are activated snapshot and uss is enabled on volume.

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

glusterfs-3.8.4-5.el7rhgs.x86_64


How reproducible:

100%

Steps to Reproduce:
1. create 2*2 distribute replicate volume
2. Do cifs mount and create some date on mount point
3. create few snapshots and activate it
4. enable uss
5. check du -sh on mount mount

Actual results:

du -sh shows wrong information

Expected results:

du -sh should shows the correct size.

Additional info:

Comment 2 rjoseph 2016-11-16 11:26:41 UTC
This is an expected behavior. I think we should clearly document it. May be raise a separate doc bug or convert this to a doc bug.

Comment 3 Anil Shah 2016-11-17 11:47:44 UTC
As discussed with developer, Converting this bug to doc bug for adding this into known issue sectioned

Comment 5 Vivek Das 2017-04-17 09:11:15 UTC
Hi

I did one round of verification by following the steps provided by anil.
So there are two scenario :-

Scene 1.
---------
Fuse mount was already present so just did a du -sh and it showed me 6.4G data available.
Then i did a fresh mount of cifs and run du -sh, it showed me 6.1G data available.

[root@dhcp43-99 cifs]# du -sh
6.1G	.
[root@dhcp43-99 cifs]# cd
[root@dhcp43-99 ~]# cd /mnt/glusterfs/
[root@dhcp43-99 glusterfs]# 
[root@dhcp43-99 glusterfs]# 
[root@dhcp43-99 glusterfs]# du -sh
6.4G	.

Then i unmounted both cifs & fuse and performed scene 2.

Scene 2.
---------
I did a fresh cifs and fuse mount and now the data seems to be equal.

[root@dhcp43-99 cifs]# du -sh
6.4G	.
[root@dhcp43-99 cifs]# cd
[root@dhcp43-99 ~]# cd /mnt/glusterfs/
[root@dhcp43-99 glusterfs]# 
[root@dhcp43-99 glusterfs]# 
[root@dhcp43-99 glusterfs]# du -sh
6.4G	.


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