Commit d9fbb338 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve gluster scripts

parent bd703ce7
...@@ -33,6 +33,13 @@ echo "# attempting deletion of stale linkfile" >>$TASKFILE ...@@ -33,6 +33,13 @@ echo "# attempting deletion of stale linkfile" >>$TASKFILE
grep "attempting deletion of stale linkfile" $0.$VOLUME.sorted.log >$0.$VOLUME.stale.log grep "attempting deletion of stale linkfile" $0.$VOLUME.sorted.log >$0.$VOLUME.stale.log
cat $0.$VOLUME.stale.log | sed -e "s|.*: attempting deletion of stale linkfile \(.*\) on $VOLUME.*|$LOCALPATH\1|g" | sort -u >>$TASKFILE cat $0.$VOLUME.stale.log | sed -e "s|.*: attempting deletion of stale linkfile \(.*\) on $VOLUME.*|$LOCALPATH\1|g" | sort -u >>$TASKFILE
# remote operation failed. Path:
echo >>$TASKFILE
echo "# remote operation failed" >>$TASKFILE
# 0-ftp-pub-client-3: remote operation failed. Path:
#grep "remote operation failed" $0.$VOLUME.sorted.log >$0.$VOLUME.remote.log
grep "remote operation failed" $GLUSTERLOG >$0.$VOLUME.remote.log
cat $0.$VOLUME.remote.log | sed -e "s|.*: remote operation failed. Path: \(.*\) (.*|$LOCALPATH\1|g" | sort -u >>$TASKFILE
# gfid differs on subvolume # gfid differs on subvolume
echo >>$TASKFILE echo >>$TASKFILE
......
...@@ -4,6 +4,5 @@ RES=pub ...@@ -4,6 +4,5 @@ RES=pub
VOLUME=ftp-$RES VOLUME=ftp-$RES
LOCALPATH=/var/ftp/$RES LOCALPATH=/var/ftp/$RES
gluster volume heal ftp-pub info split-brain | grep "^[</]" | sed -e "s|^|$LOCALPATH/|g" | sort -u >$0.log gluster volume heal ftp-pub info | grep "^[</]" | sed -e "s|^|$LOCALPATH/|g" | sort -u >$0.log
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