From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Shenkin Subject: Re: SMART detects pending sectors; take offline? Date: Tue, 10 Oct 2017 10:56:27 +0100 Message-ID: References: <629d29b4-a3ae-533f-bdba-f115e99d8ce4@shenkin.org> <8caa4fe1-c51f-6f3a-e16b-8795cf1b4071@turmel.org> <8cb4bb54-fadc-30c3-58b9-16e1ca460e83@thelounge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: <8cb4bb54-fadc-30c3-58b9-16e1ca460e83@thelounge.net> Content-Language: en-US Sender: linux-raid-owner@vger.kernel.org To: Reindl Harald , Phil Turmel , Carsten Aulbert , linux-raid@vger.kernel.org List-Id: linux-raid.ids On 10/10/2017 10:11 AM, Reindl Harald wrote: > > > Am 10.10.2017 um 11:00 schrieb Alexander Shenkin: >> Thanks... I know nothing about "check scrubs".  Could you point me to >> a good resource?  I've found >> https://raid.wiki.kernel.org/index.php/Scrubbing and >> https://raid.wiki.kernel.org/index.php/Scrubbing_the_drives, but it's >> hard to tell exactly how the system should be configured in order to >> run these regularly.  A weekly cron perhaps?  And, should it be just >> check, or repair?  etc...  Any help you could offer would be welcome. > > if your distribution don't install a cronjob for that you should blame > them because RAID without regular scrub is asking for troubles > > [root@srv-rhsoft:~]$ rpm -q --file /etc/cron.d/raid-check > mdadm-4.0-1.fc26.x86_64 > > [root@srv-rhsoft:~]$ cat /etc/cron.d/raid-check > 30 4 * * Mon root /usr/sbin/raid-check Thanks Reindl. Here's what I have installed (no evidence of raid-check available on my system): $ cat /etc/cron.d/mdadm 57 0 * * 0 root if [ -x /usr/share/mdadm/checkarray ] && [ $(date +\%d) -le 7 ]; then /usr/share/mdadm/checkarray --cron --all --idle --quiet; fi >> Is this something I should run now?  I figure it's a bad idea to push >> an array that is starting to degrade... haven't had a chance to >> replace the drive yet, but will get to it this week.  Probably best to >> start the scrubbing routines once I have 4 good drives in there I >> figure... > > NO - never put any load you can avoid on degraded arrays thanks, i won't.