Commit 55c99a56 authored by Vitaly Lipatov's avatar Vitaly Lipatov

grflog: add gfid mismatch handle

parent e3054e1b
...@@ -44,3 +44,19 @@ echo "# multiple subvolumes" >>$TASKFILE ...@@ -44,3 +44,19 @@ echo "# multiple subvolumes" >>$TASKFILE
grep "multiple subvolumes" $0.$VOLUME.sorted.log >$0.$VOLUME.multiple.log grep "multiple subvolumes" $0.$VOLUME.sorted.log >$0.$VOLUME.multiple.log
cat $0.$VOLUME.multiple.log | sed -e "s|$VOLUME: multiple subvolumes (.*) have file \(.*\) (preferably rename the file in the backend.*|$LOCALPATH\1|g" | sort -u >>$TASKFILE cat $0.$VOLUME.multiple.log | sed -e "s|$VOLUME: multiple subvolumes (.*) have file \(.*\) (preferably rename the file in the backend.*|$LOCALPATH\1|g" | sort -u >>$TASKFILE
grep afr_selfheal_detect_gfid_and_type_mismatch $GLUSTERLOG | sed -e "s|.*\(afr_selfheal_detect_gfid_and_type_mismatch\)\]|\1:|g" > $0.$VOLUME.gfid.log
sort -u < $0.$VOLUME.gfid.log >$0.$VOLUME.gfid.sorted.log
# Gfid mismatch detected
echo >>$TASKFILE
echo "# Gfid mismatch detected" >>$TASKFILE
# E [afr-self-heal-entry.c:239:afr_selfheal_detect_gfid_and_type_mismatch] 0-ftp-pub-replicate-1:
# Gfid mismatch detected for <68ddfef8-250a-40c5-ae12-02acfefa08c6/i586-libdolphinprivate4-4.12.4-alt0.M70P.2.i586.rpm>,
# 6878e176-c837-483d-84f5-37bf76b5d162 on ftp-pub-client-3 and
# 0e22ad76-f4a4-45d4-9129-5ea54e6b9896 on ftp-pub-client-2. Skipping conservative merge on the file.
grep "Gfid mismatch detected for" $0.$VOLUME.gfid.sorted.log >$0.$VOLUME.mismatch.log
cat $0.$VOLUME.mismatch.log | sed -e "s|.*Gfid mismatch detected for \(<.*>\).*|$LOCALPATH/\1|g" | sort -u >>$TASKFILE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment