Bug 1176275

Summary: Changing mtime using touch doesn't copy master file to slave with tar+ssh
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Harshavardhana <fharshav>
Component: geo-replicationAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact: storage-qa-internal <storage-qa-internal>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.1CC: aavati, avishwan, csaba, cww, khiremat, nlevinki, rcyriac, smohan, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: consistency
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1176934 (view as bug list) Environment:
Last Closed: 2015-04-21 10:17:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1172332, 1176934    

Comment 3 Aravinda VK 2014-12-23 15:54:08 UTC
Patch sent to upstream to sync atime and mtime.
http://review.gluster.org/#/c/9331/

This patch will not sync data since no data operation recorded in changelog when used touch.

Comment 4 Kotresh HR 2014-12-24 19:34:56 UTC
Since touch doesn't initiate a data transfer in geo-replication and is not expected, a virtual xattr "glusterfs.geo-rep.trigger-sync" is provided to initiate data sync explicitly. 

Usage:
setfattr -n glusterfs.geo-rep.trigger-sync -v "1" <file-path>

Patch posted upstream and downstream 

Upstream Patch: (master)
http://review.gluster.org/#/c/9337/

Downstream Patch: (2.1)
https://code.engineering.redhat.com/gerrit/#/c/39125/

Comment 8 Vivek Agarwal 2015-04-21 10:17:13 UTC
Per discussion with the team, this is already fixed in 2.1/3.0, closing this bug, please reopen if you see this again