On Tue, 7 Feb 2017 12:27:20 -0800
Samuel Sieb <sam...@sieb.net> wrote:

> On 01/31/2017 12:02 PM, Chris Murphy wrote:
> > On Tue, Jan 31, 2017 at 7:33 AM, Chris Adams <li...@cmadams.net>
> > wrote:  
> >> How do LVM RAID volumes get tested?  There's a regular cron job for
> >> testing MD RAID volumes, but I'm not aware of something like that
> >> for LVM RAID.  
> >
> > I'm not aware of an upstream cron job for this; nor one in Fedora.
> >
> > 'echo check > /sys/block/mdX/md/sync_action' works for either mdadm
> > or LVM RAID, as it's kernel code doing the scrub; but LVM does have
> > a command for it 'lvchange --syncaction {check|repair) vg/raid_lv'
> >  
> There is something in Fedora that does this.  I don't know whether
> it's automatic in the kernel or there's a cron job.  But my md RAID
> arrays get scanned every once in a while and I didn't do anything to
> set that up.

% rpm -qf /etc/cron.d/raid-check 
mdadm-3.4-2.fc25.x86_64
% cat /etc/cron.d/raid-check 
# Run system wide raid-check once a week on Sunday at 1am by default
0 1 * * Sun root /usr/sbin/raid-check

/etc/sysconfig/raid-check has the config. I think by default it's not
set to do anything, but perhaps something updates this on install. 

kevin

Attachment: pgpT2YAkSHPDd.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org

Reply via email to