Red Hat Bugzilla – Bug 1283480
Data Tiering:Rename of cold file to a hot file causing split brain and showing two copies of files in mount point
Last modified: 2016-04-19 03:48:31 EDT
REVIEW: http://review.gluster.org/12655 (cluster/tier: Do not delete linkto file on demotion) posted (#1) for review on release-3.7 by N Balachandran (email@example.com)
COMMIT: http://review.gluster.org/12655 committed in release-3.7 by Dan Lambright (firstname.lastname@example.org)
Author: N Balachandran <email@example.com>
Date: Mon Nov 9 15:49:50 2015 +0530
cluster/tier: Do not delete linkto file on demotion
The current DHT migration code will always delete the
src linkto file after migration as dht always moves
files to the hashed subvol. This is not the case in tiering.
The lack of linkto files causes rename to fail leaving 2 files
with the same name but different gfids on the volume.
Modified to leave the linkto file behind if the source
volume is the hashed subvolume.
> Change-Id: I2b99f7d34b4b719aee6232dc40c6a8f8ba88225d
> Signed-off-by: N Balachandran <firstname.lastname@example.org>
> Reviewed-on: http://review.gluster.org/12551
> Reviewed-by: Dan Lambright <email@example.com>
> Tested-by: Dan Lambright <firstname.lastname@example.org>
Signed-off-by: N Balachandran <email@example.com>
Tested-by: Gluster Build System <firstname.lastname@example.org>
Tested-by: NetBSD Build System <email@example.com>
Reviewed-by: Dan Lambright <firstname.lastname@example.org>
Tested-by: Dan Lambright <email@example.com>
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.7.7, please open a new bug report.
glusterfs-3.7.7 has been announced on the Gluster mailinglists , packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist  and the update infrastructure for your distribution.