<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.koozali.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.koozali.org/"
          
          maintainer="staff@lists.contribs.org"
>

    <bug>
          <bug_id>3535</bug_id>
          
          <creation_ts>2007-11-08 05:07:28 +0100</creation_ts>
          <short_desc>NFR: Periodic scrub of RAID arrays</short_desc>
          <delta_ts>2013-06-25 07:24:02 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>SME Server</classification>
          <product>SME Server Future</product>
          <component>New Feature Request</component>
          <version>Unknown</version>
          <rep_platform>---</rep_platform>
          <op_sys>---</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Filippo Carletti">filippo.carletti</reporter>
          <assigned_to name="SME Server bug team">bugteam</assigned_to>
          <cc>esmith</cc>
    
    <cc>smeserver-bugzilla</cc>
          
          <qa_contact name="SME Server bug team">bugteam</qa_contact>
          <cf_package>---</cf_package>
          <votes>0</votes>

      

      

      

          <comment_sort_order>newest_to_oldest_desc_first</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30596</commentid>
    <comment_count>0</comment_count>
    <who name="Filippo Carletti">filippo.carletti</who>
    <bug_when>2007-11-08 05:07:28 +0100</bug_when>
    <thetext>It&apos;s really important to periodically scrub raid arrays.
From http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID#Data_Scrubbing:

During raid reconstruction, if you run across a previously undetected unreadable block, you may not be able to reconstruct your array without data corruption. The larger the disk, the higher the odds that passive bad block detection will be inadequate. Therefore, with today&apos;s large disks it is important to actively perform data scrubbing on your array.

Unfortunately, we cannot do this on sme 7.x because of the kernel not having the required feature.
It could be done on sme8, with a cron job (daily or weekly) that simply repeats
echo check &gt;&gt; /sys/block/mdX/md/sync_action
for each array.

I&apos;ve been bitten by this problem, defective disk sectors were in an unused PE at the end of a disk. When the other disk failed I wasn&apos;t able to sync and I had to resort to a restore from backup over a new install.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71354</commentid>
    <comment_count>5</comment_count>
    <who name="Ian Wells">esmith</who>
    <bug_when>2013-06-25 07:24:02 +0200</bug_when>
    <thetext>Closing as Bug 6160 shows that this is active.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60496</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan">smeserver-bugzilla</who>
    <bug_when>2011-03-13 13:39:31 +0100</bug_when>
    <thetext>(In reply to comment #3)
&gt; Upstream fixed this bug, but we fall in a case where we still need an
&gt; unreleased fix, our / raid set is never checked.
&gt; https://bugzilla.redhat.com/show_bug.cgi?id=523000
&gt; 
&gt; I think we will pick this up with a future update.

AFAIK this is not true anymore, according to bug 6320. See the link in that bug to RedHat&apos;s bugzilla for a more detailed explanation.

Should this be closed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50884</commentid>
    <comment_count>3</comment_count>
    <who name="Filippo Carletti">filippo.carletti</who>
    <bug_when>2009-11-23 04:41:44 +0100</bug_when>
    <thetext>Upstream fixed this bug, but we fall in a case where we still need an unreleased fix, our / raid set is never checked.
https://bugzilla.redhat.com/show_bug.cgi?id=523000

I think we will pick this up with a future update.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46644</commentid>
    <comment_count>2</comment_count>
    <who name="Charlie Brady">charlieb-contribs-bugzilla</who>
    <bug_when>2009-05-20 10:24:33 +0200</bug_when>
    <thetext>(In reply to comment #1)
&gt; Two bugs are dealing with this upstream:
&gt; https://bugzilla.redhat.com/show_bug.cgi?id=233972
&gt; https://bugzilla.redhat.com/show_bug.cgi?id=474436
&gt; 
&gt; Should we patch mdadm (like fedora) or simply add the cron job to e-smith-base?

I don&apos;t see any value in patching mdadm just to get a cron job script. That script could be added to e-smith-base. We would need to anticipate an updated mdadm eventually arriving that includes the cron job. We could, for instance, use a different path for the script, and in our copy of the script, check for the existence of the one from mdadm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46641</commentid>
    <comment_count>1</comment_count>
    <who name="Filippo Carletti">filippo.carletti</who>
    <bug_when>2009-05-20 09:33:54 +0200</bug_when>
    <thetext>Two bugs are dealing with this upstream:
https://bugzilla.redhat.com/show_bug.cgi?id=233972
https://bugzilla.redhat.com/show_bug.cgi?id=474436

Should we patch mdadm (like fedora) or simply add the cron job to e-smith-base?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>