Re: [zfs-discuss] How does resilver/scrub work?

2012-05-18 Thread Jim Klimov
2012-05-18 19:08, Edward Ned Harvey wrote: From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- boun...@opensolaris.org] On Behalf Of Jim Klimov I'm reading the ZFS on-disk spec, and I get the idea that there's an uberblock pointing to a self-balancing tree (some say b-tree, some say

Re: [zfs-discuss] How does resilver/scrub work?

2012-05-18 Thread Edward Ned Harvey
> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- > boun...@opensolaris.org] On Behalf Of Jim Klimov I'm reading the ZFS on-disk spec, and I get the idea that there's an uberblock pointing to a self-balancing tree (some say b-tree, some say avl-tree, some say nv-tree), where data is

Re: [zfs-discuss] How does resilver/scrub work?

2012-05-18 Thread Jim Klimov
First of all, thank you Daniel for taking the time to post a lengthy reply! I do not get that kind of high-quality feedback very often :) I hope the community and googlers would benefit from that conversation sometime. I did straighten out some thoughts and (mis-)understandings, at least, more on

Re: [zfs-discuss] How does resilver/scrub work?

2012-05-18 Thread Edward Ned Harvey
> From: zfs-discuss-boun...@opensolaris.org [mailto:zfs-discuss- > boun...@opensolaris.org] On Behalf Of Jim Klimov I'm reading the ZFS on-disk spec, and I get the idea that there's an uberblock pointing to a self-balancing tree (some say b-tree, some say avl-tree, some say nv-tree), where data

Re: [zfs-discuss] How does resilver/scrub work?

2012-05-18 Thread Daniel Carosone
On Fri, May 18, 2012 at 04:18:12PM +1000, Daniel Carosone wrote: > > When doing a scrub, you start at the root bp and walk the tree, doing > reads for everything, verifying checksums, and letting repair happen > for any errors. That traversal is either a breadth-first or > depth-first traversal of