Hacker News new | ask | show | jobs
by ciupicri 73 days ago
How can a scrub take only seconds when it has to read all the data?
1 comments

zfs-style scrub only reads allocated blocks and skips unallocated blocks; if the pool is mostly empty it can complete very quickly.

Layered storage systems with a RAID layer that makes N disks look like one big disk generally don't have visibility into which blocks are free and which are allocated so they must "scrub" all the disks on initialization and repair even if only 1% is used.