<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div data-crea="font-wrapper" style="font-family: Tahoma; font-size: 16px"><div>Thanks <span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14.6666669845581px;">Bron / list Â for your reply </span><br></div><div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14.6666669845581px;"><br></span></div><div><span style="font-family: Helvetica, Tahoma, Arial, sans-serif; font-size: 14.6666669845581px;">I am using </span><font face="Helvetica, Tahoma, Arial, sans-serif"><span style="font-size: 14.6666669845581px;">cyrus-imapd-2.4.17-6.el6.x86_64 Â , with ext4 file system .</span></font></div><div><font face="Helvetica, Tahoma, Arial, sans-serif"><span style="font-size: 14.6666669845581px;"><br></span></font></div><div>Just now the Â issue has been resolved , Â I found Â corruption with inode Â level and few emails. Â Some email was converted to binary file. </div><div>Due to which Â few mailboxes was corrupted . Â Delivery or access of such mailbox was getting failed and Segmentation fault &amp; core file was getting generated . </div><div><br></div><div>After Â identifying such mailbox manually , Â i moved those to Â other path and removed all cyrus.* files , Â recreated the new mailbox and moved that all non-corrupted Â emails Â and reconstruct the same. Its seem my issue is resolved for now . For Â next 1/2 days will monitor the flow and after that will shift the data with new LUN . Â I Will verify the badblocks and will re-format the LUN with new fresh filesystem.</div><div><br></div><div>Do you know what could be the reason for below scenario :-- </div><div>------------------------------------------------------------------------</div><div>I found one interesting point Â with core.xxxx files , The sizing of such files with Â du -sh &amp; ls -lh was showing different . </div><div>While doing the same file "cp" or "rsync" it was showing me different size. Â  Also the inodes for "cp" file was less and inodes for "rsync" file was more. Â With Google I learn that cp &amp; du work differently . </div><div><br></div><div>I verified the same with another ext3 partition , but there sizing is showing proper. <br></div><div><br></div><div>My question is , whether its normal behavior or related corrupted inode or file system ? Â In tune2fs -l , filesystem showing clean.</div><div>Below is for reference scenario. </div><div><br></div><div><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">[root@active ~]# </span><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">rsync</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"> -av  /hacluster/varlib/imap/core.10236 /hacluster/san-testing/by-rsync/</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">[root@active ~]# </span><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">cp</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"> -p   /hacluster/varlib/imap/core.10236 /hacluster/san-testing/by-cp/</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">[root@active ~]# ls -lh  /hacluster/san-testing/by-cp/core.10236  /hacluster/san-testing/by-rsync/core.10236 </span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">-rw------- 1 cyrus mail </span><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">1.3G</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"> Jun 16 08:19 /hacluster/san-testing/by-cp/core.10236</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">-rw------- 1 cyrus mail </span><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">1.3G</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"> Jun 16 08:19 /hacluster/san-testing/by-rsync/core.10236</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">[root@active ~]# du -sh   /hacluster/san-testing/by-cp/core.10236  /hacluster/san-testing/by-rsync/core.10236 </span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">3.3M</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">   Â /hacluster/san-testing/by-cp/core.10236 Â  &lt;----- Note this </span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">1.3G</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">   Â /hacluster/san-testing/by-rsync/core.10236</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">[root@active ~]# md5sum    /hacluster/san-testing/by-cp/core.10236  /hacluster/san-testing/by-rsync/core.10236 </span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">2b66ecf5187fb341e60ba61c92747d0d</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">  /hacluster/san-testing/by-cp/core.10236</span><br style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;"><b style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">2b66ecf5187fb341e60ba61c92747d0d</b><span style="font-family: 'Times New Roman', Times, serif; font-size: 14.6666669845581px;">  /hacluster/san-testing/by-rsync/core.10236</span><br></div><div><br></div><div>Regards<br></div><div>Jayesh Shinde</div><br><br><div></div><br><br>On Fri, Jun 19, 2015 at 04:06 AM, Bron Gondwana &lt;brong@fastmail.fm&gt; wrote:<blockquote><div>



<div>We're going to need to know at least what version of Cyrus you are running.  Loading a core file with gdb and pasting a backtrace might be helpful too.<br></div>
<div> </div>
<div>Bron.<br></div>
<div> </div>
<div> </div>
<div>On Thu, Jun 18, 2015, at 12:40 AM, Jayesh Shinde wrote:<br></div>
<blockquote type="cite"><div><span style='font-family: "Times New Roman"," Times"," serif"'>Hi , <br><br>
      I am facing problem with randomly mail delivery to local
      mailboxes.  While doing reconstruct its showing </span><span style='font-family: "Times New Roman"," Times"," serif"'><span style="">Segmentation fault</span><br>
      Also there lots of core.xxx files created under /var/lib/imap. <br><br>
      Â -bash-4.1$  /usr/lib/cyrus-imapd/reconstruct -r -f  
      <a href="mailto:user/amit.badarpur@domain.com" target="_blank" tabindex="-1">user/amit.badarpur@domain.com</a><br><a href="mailto:user/amit.badarpur@domain.com" target="_blank" tabindex="-1">user/amit.badarpur@domain.com</a><br>
      Segmentation fault<br><br>
      And the dmesg is showing error like below . <br><br>
      imapd[7127]: segfault at 7f9092d7ce33 ip 00007f905fc1192e sp
      00007fff659f55e0 error 4 in imapd[7f905fbae000+191000]<br>
      reconstruct[17981]: segfault at 7f656e112c4b ip 00007f64fdc1380e
      sp 00007ffff1cf7110 error 4 in reconstruct[7f64fdbdd000+15b000]<br>
      reconstruct[19517]: segfault at 7f0ea8ae2c4b ip 00007f0e3494780e
      sp 00007fff162a79d0 error 4 in reconstruct[7f0e34911000+15b000]<br>
      reconstruct[19693]: segfault at 7fa5821b0c4b ip 00007fa50e01580e
      sp 00007fff2f724aa0 error 4 in reconstruct[7fa50dfdf000+15b000]<br>
      lmtpd[6046]: segfault at 7f141270712e ip 00007f13d86c242e sp
      00007fff483d6000 error 4 in lmtpd[7f13d867e000+16d000]<br>
      lmtpd[3130]: segfault at 7fd68612606f ip 00007fd665e8b42e sp
      00007fff9b8595f0 error 4 in lmtpd[7fd665e47000+16d000]<br><br>
      I checked by moving the mailbox from iscsi partition to local
      drive and simlink the same .  But when i do reconstruct again it
      gives "</span><span style='font-family: "Times New Roman"," Times"," serif"'>Segmentation
      fault" <br>
      I checked by doing the gdb the core.xxx files , but not able to
      got the actual problem. <br><br>
      What could be the problem.  Is its related server's Memory  or
      currption on mailbox ?  <br>
      How can I handle it. <br><br>
      Regards<br>
      Jayesh Shinde<br></span></div>
<div>----<br></div>
<div>Cyrus Home Page: <a href="http://www.cyrusimap.org/" target="_blank" tabindex="-1">http://www.cyrusimap.org/</a><br></div>
<div>List Archives/Info: <a href="http://lists.andrew.cmu.edu/pipermail/info-cyrus/" target="_blank" tabindex="-1">http://lists.andrew.cmu.edu/pipermail/info-cyrus/</a><br></div>
<div>To Unsubscribe:<br></div>
<div><a href="https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus" target="_blank" tabindex="-1">https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus</a><br></div>
</blockquote><div> </div>
<div><div>--<br></div>
<div>Bron Gondwana<br></div>
<div><a href="mailto:brong@fastmail.fm" target="_blank" tabindex="-1">brong@fastmail.fm</a><br></div>
<div> </div>
</div>
<div> </div>


</div></blockquote></div></body></html>