4 ms·
It makes a lot of the common sysadmin tasks a whole lot easier. For instance, creating raid sets - by default it works with whole disks, which is exactly what
by patrickgzill 16y ago
It makes a lot of the common sysadmin tasks a whole lot easier.
For instance, creating raid sets - by default it works with whole disks, which is exactly what you want 99% of the time (but you can specify a partition if you really want to).
Want to check whether there is a data corruption error?
"zpool scrub poolname" and it will go through all the disks on that pool, using the built-in ECC to verify that the data on the disks is OK. If not, it will try to fix it.
"zpool status -v" lists all the disks, which mirrors or RAID sets each is part of, and when the last scrub was performed, along with errors or ECC problems.
The one suggestion I would make for the btrfs guys is to really work on making the CLI commands simple and intuitive.
- ssmoot 16y agoMinor correction, Scrub just rewrites all data. And since ZFS is copy-on-write and compares new blocks to old, you'll find corruption or bad blocks that way. Also, since ZFS doesn't dedupe (just don't use it) or compress at rest, a scrub is the practical way to apply changes to those settings to the existing blocks already on disk.
- patrickgzill 16y agoGood point, this post talks about their need to rewrite the scrub code to fix a bug and make it faster. http://blogs.sun.com/ahrens/entry/new_scrub_code http://blogs.sun.com/ahrens/entry/new_scrub_code