<html><head/><body><html v="urn:schemas-microsoft-com:vml" o="urn:schemas-microsoft-com:office:office" w="urn:schemas-microsoft-com:office:word" m="http://schemas.microsoft.com/office/2004/12/omml"><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></head><body lang="ZH-CN" link="blue" vlink="purple" style="text-justify-trim:punctuation">This looks like a support question to me. If you are asking a development question, you might want to use strace or gdb to figure out where the hang is, file a bug report on bugzilla, and submit your patch(es) to gerrit. <br><br><div class="gmail_quote">Song <gluster@163.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<!--[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]--><div class="WordSection1"><p class="MsoNormal"><span lang="EN-US">Hi,<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </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.<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </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.<p></p></span></p><p class="MsoNormal"><span lang="EN-US">When execute command “cd /xmail/gfs1/scl_test/001”, also hang.<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US">The test shell script:<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><i><span lang="EN-US">for((i=1;i<=100;i++));<p></p></span></i></p><p
class="MsoNormal"><i><span lang="EN-US">do <p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">rmdir /xmail/gfs1/scl_test/001<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">if [ "$?" == "0" ];<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">then <p></p></span></i></p><p class="MsoNormal" style="text-indent:21.0pt"><i><span lang="EN-US">echo "delete dir success"<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">fi <p></p></span></i></p><p class="MsoNormal"><i><span lang="EN-US"><p> </p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">mkdir /xmail/gfs1/scl_test/001<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">if [ "$?" == "0" ];<p></p></span></i></p><p class="MsoNormal"
style="text-indent:10.5pt"><i><span lang="EN-US">then <p></p></span></i></p><p class="MsoNormal" style="text-indent:21.0pt"><i><span lang="EN-US">echo "create dir success"<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">fi<p></p></span></i></p><p class="MsoNormal"><i><span lang="EN-US"><p> </p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">echo "1111" >>/xmail/gfs1/scl_test/001/001.txt<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">echo "2222" >>/xmail/gfs1/scl_test/001/002.txt<p></p></span></i></p><p class="MsoNormal" style="text-indent:10.5pt"><i><span lang="EN-US">echo "3333" >>/xmail/gfs1/scl_test/001/003.txt<p></p></span></i></p><p class="MsoNormal"><i><span lang="EN-US"><p> </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<p></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<p></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<p></p></span></i></p><p class="MsoNormal"><i><span lang="EN-US">done<p></p></span></i></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US">“/xmail/gfs1” is native mount point of gluster volume gfs1.<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US">Gluster volume info is as below:<p></p></span></p><p class="MsoNormal"><span lang="EN-US">[root@d181 glusterfs]# gluster volume info<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US">Volume Name: gfs1<p></p></span></p><p class="MsoNormal"><span
lang="EN-US">Type: Distributed-Replicate<p></p></span></p><p class="MsoNormal"><span lang="EN-US">Status: Started<p></p></span></p><p class="MsoNormal"><span lang="EN-US">Number of Bricks: 30 x 3 = 90<p></p></span></p><p class="MsoNormal"><span lang="EN-US">Transport-type: tcp<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p><p class="MsoNormal"><span lang="EN-US">Please help me, Thanks!<p></p></span></p><p class="MsoNormal"><span lang="EN-US"><p> </p></span></p></div><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre style="white-space: pre-wrap; word-wrap:break-word; font-family: sans-serif; margin-top: 0px"><hr /><br />Gluster-devel mailing list<br />Gluster-devel@nongnu.org<br /><a href="https://lists.nongnu.org/mailman/listinfo/gluster-devel">https://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br
/></pre></blockquote></div></body></html></body></html>