Commit befbc7f7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gluster: add small tools

parent 55c99a56
#!/bin/sh
RES=pvt
VOLUME=ftp-$RES
LOCALPATH=/var/ftp/$RES
[ -n "$1" ] && LOCALPATH="$1"
find $LOCALPATH -type f -size 0 -perm 1000 >>$0.log
#find $LOCALPATH -type f -size 0 >>$0.log
#!/bin/sh
RES=pub
VOLUME=ftp-$RES
LOCALPATH=/var/ftp/$RES
gluster volume heal ftp-pub info split-brain | grep "^2.*/" | sed -e "s|.* /\(.*\)$|$LOCALPATH/\1|g" | sort -u >$0.log
ADPATH=$1
for i in pub pvt tmp ; do
./glruncmd "find /var/local/eterglust/pub/$ADPATH -type f -size 0 -perm 1000 | xargs rm -v"
./glruncmd "find /var/local/eterglust2/pub/$ADPATH -type f -size 0 -perm 1000 | xargs rm -v"
done
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