<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Hi,<br>I've put the Client log in Debug mod : <br># gluster volume geo-replication /soft/venus config log-level DEBUG<br>geo-replication config updated successfully<br><br> # gluster volume geo-replication /soft/venus config log-file<br>/usr/local/var/log/glusterfs/geo-replication-slaves/${session_owner}:file%3A%2F%2F%2Fsoft%2Fvenus.log<br><br> # gluster volume geo-replication athena /soft/venus config session-owner<br>28cbd261-3a3e-4a5a-b300-ea468483c944<br><br> # gluster volume geo-replication athena /soft/venus start<br>Starting geo-replication session between athena & /soft/venus has been successful<br><br> # gluster volume geo-replication athena /soft/venus status<br>MASTER SLAVE STATUS <br>--------------------------------------------------------------------------------<br>athena /soft/venus starting...<br><br>and then : <br><br># gluster volume geo-replication athena /soft/venus status<br>MASTER SLAVE STATUS <br>--------------------------------------------------------------------------------<br>athena /soft/venus faulty <br><br><br><br>For client : <br>cat /usr/local/var/log/glusterfs/geo-replication-slaves/28cbd261-3a3e-4a5a-b300-ea468483c944:file%3A%2F%2F%2Fsoft%2Fvenus.log <br><br>[2011-05-17 09:20:40.519731] I [gsyncd(slave):287:main_i] <top>: syncing: file:///soft/venus<br>[2011-05-17 09:20:40.520587] I [resource(slave):200:service_loop] FILE: slave listening<br>[2011-05-17 09:20:40.532951] I [repce(slave):61:service_loop] RepceServer: terminating on reaching EOF.<br>[2011-05-17 09:21:50.528803] I [gsyncd(slave):287:main_i] <top>: syncing: file:///soft/venus<br>[2011-05-17 09:21:50.529666] I [resource(slave):200:service_loop] FILE: slave listening<br>[2011-05-17 09:21:50.542349] I [repce(slave):61:service_loop] RepceServer: terminating on reaching EOF.<br><br><br><br>For server : <br> # cat /usr/local/var/log/glusterfs/geo-replication/athena/file%3A%2F%2F%2Fsoft%2Fvenus.log<br><br>[2011-05-17 09:30:04.431369] I [monitor(monitor):42:monitor] Monitor: ------------------------------------------------------------<br>[2011-05-17 09:30:04.431669] I [monitor(monitor):43:monitor] Monitor: starting gsyncd worker<br>[2011-05-17 09:30:04.486852] I [gsyncd:287:main_i] <top>: syncing: gluster://localhost:athena -> file:///soft/venus<br>[2011-05-17 09:30:04.488148] D [repce:131:push] RepceClient: call 30011:47491847633776:1305617404.49 __repce_version__() ...<br>[2011-05-17 09:30:04.635481] D [repce:141:__call__] RepceClient: call 30011:47491847633776:1305617404.49 __repce_version__ -> 1.0<br>[2011-05-17 09:30:04.635751] D [repce:131:push] RepceClient: call 30011:47491847633776:1305617404.64 version() ...<br>[2011-05-17 09:30:04.636342] D [repce:141:__call__] RepceClient: call 30011:47491847633776:1305617404.64 version -> 1.0<br>[2011-05-17 09:30:04.645972] E [syncdutils:131:log_raise_exception] <top>: FAIL: <br>Traceback (most recent call last):<br> File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 102, in main<br> main_i()<br> File "/usr/local/libexec/glusterfs/python/syncdaemon/gsyncd.py", line 294, in main_i<br> local.connect()<br> File "/usr/local/libexec/glusterfs/python/syncdaemon/resource.py", line 379, in connect<br> raise RuntimeError("command failed: " + " ".join(argv))<br>RuntimeError: command failed: /usr/local/sbin/glusterfs --xlator-option *-dht.assert-no-child-down=true -l /usr/local/var/log/glusterfs/geo-replication/athena/file%3A%2F%2F%2Fsoft%2Fvenus.gluster.log -s localhost --volfile-id athena --client-pid=-1 /tmp/gsyncd-aux-mount-TEqjwY<br>[2011-05-17 09:30:04.647973] D [monitor(monitor):57:monitor] Monitor: worker got connected in 0 sec, waiting 59 more to make sure it's fine<br><br><br>Thx for your help.<br><br>Anthony<br><br><br><br><br>> Date: Mon, 16 May 2011 20:56:44 +0530<br>> From: csaba@gluster.com<br>> CC: sokar6012@hotmail.com<br>> Subject: Re: Géo-rep fail<br>> <br>> On 05/16/11 17:06, anthony garnier wrote:<br>> > Hi,<br>> > I'm currently trying to use géo-rep on the local data-node into a<br>> > directory but it fails with status "faulty"<br>> [...]<br>> > I've done this cmd :<br>> > # gluster volume geo-replication athena /soft/venus config<br>> ><br>> > # gluster volume geo-replication athena /soft/venus start<br>> ><br>> > # gluster volume geo-replication athena /soft/venus status<br>> > MASTER SLAVE STATUS<br>> > --------------------------------------------------------------------------------<br>> > athena /soft/venus faulty<br>> ><br>> ><br>> > Here is the log file in Debug mod :<br>> ><br>> > [2011-05-16 13:28:55.268006] I [monitor(monitor):42:monitor] Monitor:<br>> > ------------------------------------------------------------<br>> > [2011-05-16 13:28:55.268281] I [monitor(monitor):43:monitor] Monitor:<br>> > starting gsyncd worker<br>> [...]<br>> > [2011-05-16 13:28:59.547034] I [master:191:crawl] GMaster: primary<br>> > master with volume id 28521f8f-49d3-4e2a-b984-f664f44f5289 ...<br>> > [2011-05-16 13:28:59.547180] D [master:199:crawl] GMaster: entering .<br>> > [2011-05-16 13:28:59.548289] D [repce:131:push] RepceClient: call<br>> > 10888:47702589471600:1305545339.55 xtime('.',<br>> > '28521f8f-49d3-4e2a-b984-f664f44f5289') ...<br>> > [2011-05-16 13:28:59.596978] E [syncdutils:131:log_raise_exception]<br>> > <top>: FAIL:<br>> > Traceback (most recent call last):<br>> > File "/usr/local/libexec/glusterfs/python/syncdaemon/syncdutils.py",<br>> > line 152, in twrap<br>> > tf(*aa)<br>> > File "/usr/local/libexec/glusterfs/python/syncdaemon/repce.py", line<br>> > 118, in listen<br>> > rid, exc, res = recv(self.inf)<br>> > File "/usr/local/libexec/glusterfs/python/syncdaemon/repce.py", line 42,<br>> > in recv<br>> > return pickle.load(inf)<br>> > EOFError<br>> ><br>> ><br>> > Does anyone already got those errors ?<br>> <br>> This means slave gsyncd instance could not properly start up. To debug <br>> this further, we need to see the slave side logs. In your case, the <br>> following commands will set a debug log level for the slave (takes <br>> effect if done before starting the geo-replication session) and locate<br>> its log file:<br>> <br>> # gluster volume geo-replication /soft/venus config log-level DEBUG<br>> # gluster volume geo-replication /soft/venus config log-file<br>> <br>> The output of the latter will contain an unresolved parameter<br>> ${session-owner}. To get its actual value, run<br>> <br>> # gluster volume geo-replication athena /soft/venus config session-owner<br>> <br>> -- please post the content of the actual log file, path to which you get <br>> after the substitution. (Also, cf.<br>> <br>> http://www.gluster.com/community/documentation/index.php/Gluster_3.2:_Configuring_Geo-replication<br>> <br>> , slave-side logs are illustrated there.)<br>> <br>> Csaba<br>> <br>                                            </body>
</html>