zpool status with cksum errors on two drives in a mirror

rreboto

Cadet
Joined
Dec 8, 2020
Messages
4
Hello,

I have a pool with a mirrored pair. After running zfs scrub I see that both drives in the pool have checksum errors, but the mirror itself does not show checksum errors:

Code:
config:

    NAME        STATE     READ WRITE CKSUM
    tank        ONLINE       0     0     0
      mirror-0  ONLINE       0     0     0
        sda     ONLINE       0     0   425
        sdb     ONLINE       0     0   443

errors: No known data errors


Am I to interpret this as, the data in the pool is safe because some blocks that are bad on sda are okay on sdb and some bad blocks on sdb are okay on sda?

This also means I should replace both drives, correct?

Thank you!
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Yeah, pretty much. The errors are in different places and ZFS presumably recovered everything. The header for zpool status probably said how much was repaired, exactly.

And yeah, replacements would be good.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Checksum errors can indicate connectivity issues more clearly than data issues.

Make sure you run smartctl -a on your drives to ensure there are actually errors on them.

It may be cabling or the controller that's bad.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
I'm not sure about that. A read or write error would be reported if the interface detects a transmission error it can't recover from.
 
Last edited:
Top