<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"批注框文本 Char";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:9.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.Char
        {mso-style-name:"批注框文本 Char";
        mso-style-priority:99;
        mso-style-link:批注框文本;}
.MsoChpDefault
        {mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Recently, glusterfs will hang when we do stress testing. To find the reason, we write a test shell script.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>We run the test shell on 5 servers at the same time. For a moment, all test programming is hang.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>When execute command “cd /xmail/gfs1/scl_test/001”, also hang.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>The test shell script:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><i><span lang=EN-US>for((i=1;i&lt;=100;i++));<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US>do <o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>rmdir /xmail/gfs1/scl_test/001<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>if [ &quot;$?&quot; == &quot;0&quot; ];<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>then <o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:21.0pt'><i><span lang=EN-US>echo &quot;delete dir success&quot;<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>fi <o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>mkdir /xmail/gfs1/scl_test/001<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>if [ &quot;$?&quot; == &quot;0&quot; ];<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>then <o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:21.0pt'><i><span lang=EN-US>echo &quot;create dir success&quot;<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>fi<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>echo &quot;1111&quot; &gt;&gt;/xmail/gfs1/scl_test/001/001.txt<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>echo &quot;2222&quot; &gt;&gt;/xmail/gfs1/scl_test/001/002.txt<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>echo &quot;3333&quot; &gt;&gt;/xmail/gfs1/scl_test/001/003.txt<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US><o:p>&nbsp;</o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>rm -rf /xmail/gfs1/scl_test/001/001.txt<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>rm -ff /xmail/gfs1/scl_test/001/002.txt<o:p></o:p></span></i></p><p class=MsoNormal style='text-indent:10.5pt'><i><span lang=EN-US>rm -rf /xmail/gfs1/scl_test/001/003.txt<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US>done<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>“/xmail/gfs1” is native mount point of gluster volume gfs1.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Gluster volume info is as below:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[root@d181 glusterfs]# gluster volume info<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Volume Name: gfs1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Type: Distributed-Replicate<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Status: Started<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Number of Bricks: 30 x 3 = 90<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Transport-type: tcp<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Please help me, Thanks!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p></div></body></html>