On Thu, Oct 25, 2012 at 2:25 AM, Jim Klimov <jimkli...@cos.ru> wrote:

> Hello all,
>   I was describing how raidzN works recently, and got myself wondering:
> does zpool scrub verify all the parity sectors and the mirror halves?

Yes.  The ZIO_FLAG_SCRUB instructs the raidz or mirror vdev to read and
verify all parts of the blocks (parity sectors and mirror copies).

The math for RAID-Z is described in detail in the comments of vdev_raidz.c.
 If there is a checksum error, we reconstitue the data by trying all
possible combinations of N incorrect sectors (N being the number of parity
disks) -- see vdev_raidz_combrec().

zfs-discuss mailing list
        • Re: ... Timothy Coalson
          • ... Jim Klimov
            • ... Karl Wagner
              • ... Jim Klimov
              • ... Ray Arachelian
              • ... Toby Thain
              • ... Jim Klimov
              • ... Timothy Coalson
              • ... Edward Ned Harvey (opensolarisisdeadlongliveopensolaris)
              • ... Tomas Forsman
  • Re: [zfs-discuss]... Matthew Ahrens

Reply via email to