<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=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@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:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        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:"Bobletekst Tegn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EpostStil17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BobletekstTegn
        {mso-style-name:"Bobletekst Tegn";
        mso-style-priority:99;
        mso-style-link:Bobletekst;
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</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=NO-BOK link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hi all,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I&#8217;ve found a serious problem doing this command:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>perl -i -pe 's/something/somethingelse/' filename <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>from a gluster mount. This command does remove the content of the file, making it 0 bytes in glusterfs v3.2.0, and in glusterfs v3.2.3 it also kills the client so the mountpoint have to be unmounted and mounted again.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Is this a known problem or does the inline editing of the &#8211;i switch in perl doing something unsupported fileop?<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>Regard<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Einar Gautun<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>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>Server and client: Centos 5.6 with glusterfs rpm packages:<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>glusterfs 3.2.3 built on Aug 23 2011 05:40:50<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Repository revision: git://git.gluster.com/glusterfs.git<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 command for blanking the file and crashing the client:<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>perl -i -pe 's/something/somethingelse/' filename<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>TRACE from client:<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>[2011-09-16 11:04:57.203581] T [fuse-bridge.c:632:fuse_setattr_cbk] 0-glusterfs-fuse: 1870: SETATTR() /glusterfstest/wash.nml =&gt; 163708930<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.203756] T [fuse-bridge.c:1767:fuse_readv_resume] 0-glusterfs-fuse: 1871: READ (0x2aaaacbe9024, size=4096, offset=0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.203886] T [rpc-clnt.c:1219:rpc_clnt_record] 0-gahome-client-0: Auth Info: pid: 0, uid: 0, gid: 0, owner: 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.203905] T [rpc-clnt.c:1120:rpc_clnt_record_build_header] 0-rpc-clnt: Request fraglen 180, payload: 52, rpc hdr: 128<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.203948] T [rpc-clnt.c:1424:rpc_clnt_submit] 0-rpc-clnt: submitted request (XID: 0x1831x Program: GlusterFS 3.1, ProgVers: 310, Proc: 11) to rpc-transport (gahome-client-0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.209937] T [rpc-clnt.c:633:rpc_clnt_reply_init] 0-gahome-client-0: received rpc message (RPC XID: 0x1831x Program: GlusterFS 3.1, ProgVers: 310, Proc: 11) from rpc-transport (gahome-client-0)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.209973] I [client3_1-fops.c:366:client3_1_open_cbk] 0-gahome-client-0: remote operation failed: No such file or directory<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.209997] W [fuse-bridge.c:1751:fuse_readv_cbk] 0-glusterfs-fuse: 1871: READ =&gt; -1 (No such file or directory)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>[2011-09-16 11:04:57.210037] E [mem-pool.c:468:mem_put] 0-mem-pool: invalid argument<o:p></o:p></span></p><p class=MsoNormal>pending frames:<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>patchset: git://git.gluster.com/glusterfs.git<o:p></o:p></p><p class=MsoNormal><span lang=EN-US>signal received: 11<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>time of crash: 2011-09-16 11:04:57<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>configuration details:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>argp 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>backtrace 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>dlfcn 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>fdatasync 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>libpthread 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>llistxattr 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>setfsid 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>spinlock 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>epoll.h 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>xattr.h 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>st_atim.tv_nsec 1<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>package-string: glusterfs 3.2.3<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/lib64/libc.so.6[0x383c4302d0]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/lib64/libpthread.so.0(pthread_spin_lock+0x2)[0x383d00b722]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/opt/glusterfs/3.2.3/lib64/libglusterfs.so.0(fd_ref+0x23)[0x2b29e57dc203]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/opt/glusterfs/3.2.3/lib64/glusterfs/3.2.3/xlator/mount/fuse.so[0x2b29e6c33d05]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/opt/glusterfs/3.2.3/lib64/glusterfs/3.2.3/xlator/mount/fuse.so[0x2b29e6c38c8b]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/lib64/libpthread.so.0[0x383d00673d]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>/lib64/libc.so.6(clone+0x6d)[0x383c4d40cd]<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><o:p>&nbsp;</o:p></span></p><table class=MsoNormalTable border=0 cellpadding=0 width="100%" style='width:100.0%'><tr><td style='padding:.75pt .75pt .75pt .75pt'><table class=MsoNormalTable border=0 cellspacing=0 cellpadding=0 align=left width="100%" style='width:100.0%'><tr><td valign=top style='padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><a href="http://www.statkart.no/"><span style='color:blue;text-decoration:none'><img border=0 width=112 height=109 id="_x0000_i1025" src="cid:image001.jpg@01CC746D.C3C5F710"></span></a><span style='font-size:12.0pt'><o:p></o:p></span></p></td><td width="100%" valign=top style='width:100.0%;padding:3.0pt 3.0pt 3.0pt 3.0pt'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'>Einar&nbsp;Gautun</span></b><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'><br>System administrator<br>Statens&nbsp;kartverk<br>IT<br>Sentralbord 32 11 81 00<br>Direkte/Mobil 32 11 83&nbsp;72 /&nbsp;926 926 62<br>E-post:<a href="mailto:Ditt.Navn@statkart.no"><span style='color:blue'>einar.gautun@statkart.no</span></a> </span><span style='font-size:12.0pt'><o:p></o:p></span></p></td></tr></table></td></tr></table><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>