<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16457">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Hi Brian,</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2013-01-16 </FONT></DIV><FONT
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>huangql</SPAN> </FONT></DIV>
<HR color=#b5c4df SIZE=1>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Brian Candler </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2013-01-16 15:32:49
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> huangql </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> gluster-users </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [Gluster-users]
ownership of link file changed to root:rootafter reboot brick service
</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>[Aside: please do not cross-post. If you have a problem using glusterfs, and</DIV>
<DIV>you are not looking at the source code and proposing a specific path, then</DIV>
<DIV>I suggest "glusterfs-users" is the appropriate place]</DIV>
<DIV> </DIV>
<DIV>On Wed, Jan 16, 2013 at 02:53:40PM +0800, huangql wrote:</DIV>
<DIV>> I have encountered a strange problem that the ownership of</DIV>
<DIV>> linkto file was changed to root:root after we reboot server. And I</DIV>
<DIV>> reproduced the problem many times.</DIV>
<DIV></DIV>
<DIV>Can you show "gluster volume info" output please? Is this a distributed</DIV>
<DIV>volume, a replicated volume, or something else? Are you doing anything else</DIV>
<DIV>at the same time, e.g. rebalance?</DIV>
<DIV> </DIV>
<DIV>No, I didn't do anything at the same time. In my scenario, we use
distributed volume.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV></DIV>
<DIV>> For example: ff_2</DIV>
<DIV>...</DIV>
<DIV>> From server side, we have 2 bricks and we can see the ff_2 status:</DIV>
<DIV>> </DIV>
<DIV>> brick1:</DIV>
<DIV>> </DIV>
<DIV>> -rw-rw-r-- 1 test test 0 Jan 12 11:38 ff_1</DIV>
<DIV>> ---------T 1 test test 0 Jan 13 00:43 ff_2</DIV>
<DIV>> </DIV>
<DIV>> brick2:</DIV>
<DIV>> </DIV>
<DIV>> -rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_3</DIV>
<DIV>> -rw-rw-r-- 1 test test 5242880 Jan 12 11:31 f_4</DIV>
<DIV>> -rw-rw-r-- 1 test test 5242880 Jan 13 00:43 ff_2</DIV>
<DIV></DIV>
<DIV>This seems wrong either way:</DIV>
<DIV></DIV>
<DIV>* If it's a distributed volume, there should not be ff_2 on both.</DIV>
<DIV></DIV>
<DIV>* If it's a replicated volume, there should be ff_1, ff_2, f_3 and f_4 on</DIV>
<DIV> both.</DIV>
<DIV></DIV>
<DIV>On the bricks, please show the xattrs on these files, and also their</DIV>
<DIV>parent directories. e.g.</DIV>
<DIV></DIV>
<DIV> getfattr -d -m'^trusted\.' /path/to/ff_2</DIV>
<DIV> getfattr -d -m'^trusted\.' /path/to</DIV>
<DIV></DIV>
<DIV>Somebody on this list may then be able to tell you what state they are in</DIV>
<DIV>and how they got into it (but not me I'm afraid, I don't know how the</DIV>
<DIV>internals work)</DIV>
<DIV></DIV>
<DIV>Regards,</DIV>
<DIV></DIV>
<DIV>Brian.</DIV></FONT></DIV></BODY></HTML>