Re: Disk Monitoring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/30/2017 08:35 AM, Gandalf Corvotempesta wrote:
> 2017-06-29 16:33 GMT+02:00 Wols Lists <antlists@xxxxxxxxxxxxxxx>:
>> In other words, a patrol check looks for a failing disk. A consistency
>> check looks for corrupt data. (A consistency check does a patrol check
>> as a side effect, but you might not want to do just that, as it is
>> computationally much more expensive. You might want to do a patrol check
>> every day, and a consistency check of a weekend.)
> 
> Ok, so, if resources are not a problem, someone could only run a
> consistency check and totally skip the patrol check. Right ?

Hardware raid and MD raid are not directly comparable.  Based on your
description, patrol read and consistency check are separate functions in
your hardware raid.  (I don't do hardware raid, myself.)

In MD raid, you have a "check" scrub which reads all member devices to
find and rewrite any UREs (patrol read), while comparing mirrors/parity
for mismatches.  You end up with a "mismatch count" in sysfs when done.

You also have a "repair" scrub which also reads all data blocks in
parity arrays and first mirrors and write all parity and other mirrors.
This is only recommended when a "check" scrub finds mismatches, as this
type of scrub can miss developing bad sectors on parity blocks and other
mirrors.  (Drives can only *detect* failing sectors on *read*, and can
only relocate them on *write* *after* detection.)

> What about md reliability? There are many detractors out there.
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=99171

That's hardly a great case.  Changing data in a chunk of memory in one
thread while another thread is writing it out is undefined behavior and
MD will give you back something that was there at the time of actual
write.  Do that with hardware raid and you will gain consistency, but
you'll still have jumbled data.  Real applications don't do this or they
have much bigger problems than raid mirror mismatches.

> One of the most common complaint is the absence of write-back cache,
> and if you force a "writeback" you'll risk data loss in case of
> unclean shutdown (power failure and so on)

The only good reason for hardware raid, in my opinion.  Balanced against
vendor lock-in, limited layout options, and a plethora of management
interfaces.

Phil
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux