N
N
Nortrum2018-11-02 19:14:49
Iron
Nortrum, 2018-11-02 19:14:49

Consistency check on RAID 10, which data is correct?

In a raid 10 consistency check, if the controller finds different data, how does it decide which data is correct and which is corrupt?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zettabyte, 2018-11-03
@Zettabyte

I don't think it's possible to give a general answer to your question.
Firstly, individual systems can write some checksums to disks (algorithms depend on the manufacturer), which allow you to judge the reliability of the information in this block (something like parity). And already on the basis of this information, you can decide what to do: recalculate the amount or overwrite the data block.
In such cases, most of the time during array initialization is just spent on calculating these checksums.
Secondly, for example, LSI controllers choose one of the drives they write to first. The choice seems to be random and does not depend on the number of the slot, disk or OS.
The data is written to this disk, the write is completed, and only after that the data is written to the second mirror disk. If a file corruption error occurs while writing to the first disk, the controller will not allow writing to the symmetrical disk.
If a hardware-level error occurs on the first disk, it is corrected if possible, then the write attempt is repeated. If the error on the first disk cannot be corrected, the array goes into the "degraded" state, usually followed by writing to the second disk.
If the "second" disk fails earlier, then in the algorithm above they are swapped.
If there is such documentation, study the logic of your hardware for RAID 1. Most likely, it is the same for RAID 10.

P
Puma Thailand, 2018-11-02
@opium

If above the checksums then on them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question