gluster replicate - sync monitoring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
how do you monitor your gluster replicate ?
I use a rsync -n script, to "check" the diff between my two servers
but is there a better solution to detect split brain or any error ?

Now i'm doing something like that for my 10 "replicate tcp 2 bricks
Volumes".

-------------------------------------------------------

#!/bin/bash

IP_PEER="1.2.3.4"

echo "" > gluster-rapport.log
for i in `gluster volume info | grep Brick2 | awk -F':' '{ print $3 }'
`
do 
??? echo $i >> gluster-rapport.log
??? rsync -aP -n --numeric-ids --delete-after --itemize-changes
--checksum -v $i/ $IP_PEER:$i/ >> gluster-rapport.log 2>&1
done

cat gluster-rapport.log | mail -s gluster-rapport
monitoring at myemail.com

------------------------------------------------------------------

Thx
Hm.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20130110/45b1019b/attachment.html>


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux