<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" 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
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Hi Pranith,</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Many thanks for your suggestive reply. </FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>The gluster version I used is 3.2.7. It seems
the same problem. However, I still don't know what actions cause
client to send "protocol_client_reopen" to server side. And I failed
to reproduce the bug each time. </FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>I checked the source code, it looks like lock problem.
</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV>
<DIV> /* Delay notifying CHILD_UP to parents</DIV>
<DIV> until all locks are recovered */</DIV>
<DIV> if (count > 0) {</DIV>
<DIV> gf_log (this->name, GF_LOG_INFO,</DIV>
<DIV> "%d fds open - Delaying child_up until they are re-opened",</DIV>
<DIV> count);</DIV></DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080>Cheers,</FONT></DIV>
<DIV><FONT color=#000080>Qiulan</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2013-01-17 </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> Pranith Kumar K
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2013-01-16 18:15:46
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> huangql </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> gluster-devel; gluster-users
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [Gluster-devel]
ownership of link file changed to root:root afterreboot brick service
</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV class=moz-cite-prefix>On 01/16/2013 12:23 PM, huangql wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:201301161453398058011@ihep.ac.cn type="cite">
<META name=GENERATOR content="MSHTML 9.00.8112.16457"><LINK rel=stylesheet
href="BLOCKQUOTE%7Bmargin-Top:%200px;%20margin-Bottom:%200px;%20margin-Left:%202em%7D">
<META name=GENERATOR content="MSHTML 6.00.2900.2180">
<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>
<FONT color=#000000 size=2 face=Verdana>
<DIV> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV> </DIV>
<DIV><FONT size=2 face=Verdana>Dear all,</FONT></DIV>
<DIV> </DIV>
<DIV> I have encountered a strange problem
that the ownership of linkto file was changed to root:root after we reboot
server. And I reproduced the problem many times.</DIV>
<DIV> </DIV>
<DIV>For example: ff_2</DIV>
<DIV> </DIV>
<DIV>First, the new created file: ff_2</DIV>
<DIV> </DIV>
<DIV>
<DIV>[root@test02 ~]# ll /testfs/mydir</DIV>
<DIV>total 50941</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
0 Jan 12 11:38 ff_1</DIV>
<DIV>-<FONT color=#ff0000>rw-rw-r-- 1 test test
5242880 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV>From server side, we have 2 bricks and we can see the ff_2
status:</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>
<DIV>brick1:</DIV>
<DIV> </DIV>
<DIV>-rw-rw-r-- 1 test test
0 Jan 12 11:38 ff_1</DIV>
<DIV><FONT color=#ff0000>---------T 1 test test
0 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV>brick2:</DIV>
<DIV> </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><FONT color=#ff0000>-rw-rw-r-- 1 test test
5242880 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV>After we restart gluterd service, we can see the ownership of ff_2 was
changed to root:root.</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV>
<DIV>brick1:</DIV>
<DIV> </DIV>
<DIV>-rw-rw-r-- 1 test test
0 Jan 12 11:38 ff_1</DIV>
<DIV><FONT color=#ff0000>---------T 1 test test
0 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV>brick2:</DIV>
<DIV> </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><FONT color=#ff0000>-rw-rw-r-- 1 root root
5242880 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Then, we can get the file list on client side:</DIV></DIV></DIV>
<DIV> </DIV>
<DIV>
<DIV>[root@test02 ~]# ll /testfs/mydir</DIV>
<DIV>total 50941</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
0 Jan 12 11:38 ff_1</DIV>
<DIV>-<FONT color=#ff0000>rw-rw-r-- 1 root root
5242880 Jan 13 00:43 ff_2</FONT></DIV>
<DIV> </DIV>
<DIV> this problem has stucked me for days. Could someone give us
tips, thank you very much.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Cheers,</DIV>
<DIV>Qiulan</DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-01-15
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>huangql</SPAN>
</FONT></DIV></FONT></FONT></DIV></FONT><BR>
<FIELDSET class=mimeAttachmentHeader></FIELDSET> <BR><PRE wrap="">_______________________________________________
Gluster-devel mailing list
<A class=moz-txt-link-abbreviated href="mailto:Gluster-devel@nongnu.org">Gluster-devel@nongnu.org</A>
<A class=moz-txt-link-freetext href="https://lists.nongnu.org/mailman/listinfo/gluster-devel">https://lists.nongnu.org/mailman/listinfo/gluster-devel</A>
</PRE></BLOCKQUOTE>hi
Qiulan,<BR> What version of
glusterfs are you running?. The following bug seems similar to what you
describe:<BR><A class=moz-txt-link-freetext
href="https://bugzilla.redhat.com/show_bug.cgi?id=807976">https://bugzilla.redhat.com/show_bug.cgi?id=807976</A><BR><BR>Pranith.<BR></FONT></DIV></BODY></HTML>