Bug 1395180

Summary: CIFS + USS : du -sh on cifs mount give wrong information , when snapshots are present and uss is enabled
Product: Red Hat Gluster Storage Reporter: Anil Shah <ashah>
Component: doc-Administration_GuideAssignee: storage-doc
doc-Administration_Guide sub component: Default QA Contact:
Status: ASSIGNED --- Docs Contact:
Severity: high    
Priority: unspecified CC: asriram, rcyriac, rhs-bugs, storage-doc, vdas
Version: rhgs-3.2Keywords: ZStream
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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	.