<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 12/05/2011 08:07 PM, anthony garnier wrote:
<blockquote cite="mid:BAY159-W29DCBBE0817F1030DB2F2FAEB50@phx.gbl"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
thank you for your answer.<br>
A last question for you, on some directory I got a little
difference when I display extended attribute : <br>
<br>
getfattr -d -m "trusted*" -e hex *<br>
<br>
Server1 # file: yvask300<br>
trusted.gfid=0x433c796513864672871226072825336f<br>
trusted.glusterfs.dht=0x00000001000000007fffffffffffffff<br>
<br>
Server2 # file: yvask300<br>
trusted.gfid=0x433c796513864672871226072825336f<br>
trusted.glusterfs.dht=0x00000001000000007fffffffffffffff<br>
<br>
<br>
Server3 # file: yvask300<br>
trusted.afr.poolsave-client-2=0x000000000000000002000000<br>
trusted.afr.poolsave-client-3=0x000000000000000002000000<br>
trusted.gfid=0x433c796513864672871226072825336f<br>
trusted.glusterfs.dht=0x0000000100000000000000007ffffffe<br>
<br>
Server4 # # file: yvask300<br>
trusted.afr.poolsave-client-2=0x000000000000000002000000<br>
trusted.afr.poolsave-client-3=0x000000000000000002000000<br>
trusted.gfid=0x433c796513864672871226072825336f<br>
trusted.glusterfs.dht=0x0000000100000000000000007ffffffe<br>
<br>
why the attribute "trusted.afr.VOLNAME-client-X" is not
displayed on Server 1 & 2 ?<br>
<br>
<br>
Thx for your help.<br>
<br>
<div>
<hr id="stopSpelling">Date: Fri, 2 Dec 2011 08:59:48 +0530<br>
From: <a class="moz-txt-link-abbreviated" href="mailto:pranithk@gluster.com">pranithk@gluster.com</a><br>
To: <a class="moz-txt-link-abbreviated" href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a><br>
CC: <a class="moz-txt-link-abbreviated" href="mailto:jdarcy@redhat.com">jdarcy@redhat.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
Subject: Re: [Gluster-users] Detecting split brain<br>
<br>
<meta name="Generator" content="Microsoft SafeHTML">
On 12/01/2011 11:33 PM, anthony garnier wrote:
<blockquote
cite="mid:BAY159-W1356860C952E1AB0A0F6C5AEB10@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>
<div dir="ltr"> So if I understand well, a value different
than 0sAAAAAAAAAAAAAAAA for the attribute
trusted.afr.poolsave-client-0 indicate split brain.<br>
<br>
Thx<br>
<br>
<div>> Date: Thu, 1 Dec 2011 11:23:29 -0500<br>
> From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:jdarcy@redhat.com">jdarcy@redhat.com</a><br>
> To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:sokar6012@hotmail.com">sokar6012@hotmail.com</a><br>
> CC: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
> Subject: Re: [Gluster-users] Detecting split brain<br>
> <br>
> On Thu, 1 Dec 2011 16:00:09 +0000<br>
> anthony garnier <a moz-do-not-send="true"
class="ecxmoz-txt-link-rfc2396E"
href="mailto:sokar6012@hotmail.com"><sokar6012@hotmail.com></a>
wrote:<br>
> <br>
> > <br>
> > Hi,<br>
> > <br>
> > I got a lot of files with attributes :
0sAAAAAAAAAAAAAAAAA<br>
> > <br>
> > Serv 1 :<br>
> > # file:
tbo_rmr_globale_log_11-04-07_15h43m48s.log<br>
> >
trusted.afr.poolsave-client-0=0sAAAAAAAAAAAAAAAA<br>
> >
trusted.afr.poolsave-client-1=0sAAAAAAAAAAAAAAAA<br>
> > trusted.gfid=0sfm7CRROuQ4+wuQfmHjFCdg==<br>
> > <br>
> > Serv 2 :<br>
> > # file:
tbo_rmr_globale_log_11-04-07_15h43m48s.log<br>
> >
trusted.afr.poolsave-client-0=0sAAAAAAAAAAAAAAAA<br>
> >
trusted.afr.poolsave-client-1=0sAAAAAAAAAAAAAAAA<br>
> > trusted.gfid=0sfm7CRROuQ4+wuQfmHjFCdg==<br>
> > <br>
> > Does it mean that those files need
Self-Healing ? I use GlusterFS<br>
> > 3.2.3<br>
> <br>
> This is actually normal. For some reason that would
probably make me<br>
> throw up if I knew it, getfattr misreports
0x000000000000000000000000<br>
> as 0sAAAAAAAAAAAAAAAA (which would be
0x404040404040404040404040) if<br>
> you don't give it the "-e hex" flag. The value is
actually three<br>
> four-byte integers, and if they're zero it means
there are no pending<br>
> operations. Any *other* value is likely to indicate
split brain.<br>
</div>
</div>
<br>
<fieldset class="ecxmimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
Gluster-users mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="http://gluster.org/cgi-bin/mailman/listinfo/gluster-users" target="_blank">http://gluster.org/cgi-bin/mailman/listinfo/gluster-users</a>
</pre>
</blockquote>
Small Correction:<br>
Different value than 0sAAA.. means there are pending
operations.<br>
If you dump the values with -e hex option and there should be
24 digits, first 8 represent pending operations on the data of
the files (write/truncate). next 8 represent pending
operations on metadata (permissions, ownership etc) next 8
represent pending operations on entry
(creation/deletion/rename of a file inside that directory).
Now if both data/metadata/entry digits are non-zero on a file
then that will be split-brain.<br>
Example:<br>
Data split-brain:<br>
trusted.afr.poolsave-client-0=0s000000010000000000000000<br>
trusted.afr.poolsave-client-1=0s000000200000000000000000<br>
<br>
Thanks<br>
Pranith<br>
</div>
</div>
</blockquote>
<br>
The xattrs are set on need basis so no xattr means all zeros.<br>
<br>
Thanks<br>
Pranith<br>
</body>
</html>