mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
b2255edcc0
This patch adds a new top-level vdev type called dRAID, which stands for Distributed parity RAID. This pool configuration allows all dRAID vdevs to participate when rebuilding to a distributed hot spare device. This can substantially reduce the total time required to restore full parity to pool with a failed device. A dRAID pool can be created using the new top-level `draid` type. Like `raidz`, the desired redundancy is specified after the type: `draid[1,2,3]`. No additional information is required to create the pool and reasonable default values will be chosen based on the number of child vdevs in the dRAID vdev. zpool create <pool> draid[1,2,3] <vdevs...> Unlike raidz, additional optional dRAID configuration values can be provided as part of the draid type as colon separated values. This allows administrators to fully specify a layout for either performance or capacity reasons. The supported options include: zpool create <pool> \ draid[<parity>][:<data>d][:<children>c][:<spares>s] \ <vdevs...> - draid[parity] - Parity level (default 1) - draid[:<data>d] - Data devices per group (default 8) - draid[:<children>c] - Expected number of child vdevs - draid[:<spares>s] - Distributed hot spares (default 0) Abbreviated example `zpool status` output for a 68 disk dRAID pool with two distributed spares using special allocation classes. ``` pool: tank state: ONLINE config: NAME STATE READ WRITE CKSUM slag7 ONLINE 0 0 0 draid2:8d:68c:2s-0 ONLINE 0 0 0 L0 ONLINE 0 0 0 L1 ONLINE 0 0 0 ... U25 ONLINE 0 0 0 U26 ONLINE 0 0 0 spare-53 ONLINE 0 0 0 U27 ONLINE 0 0 0 draid2-0-0 ONLINE 0 0 0 U28 ONLINE 0 0 0 U29 ONLINE 0 0 0 ... U42 ONLINE 0 0 0 U43 ONLINE 0 0 0 special mirror-1 ONLINE 0 0 0 L5 ONLINE 0 0 0 U5 ONLINE 0 0 0 mirror-2 ONLINE 0 0 0 L6 ONLINE 0 0 0 U6 ONLINE 0 0 0 spares draid2-0-0 INUSE currently in use draid2-0-1 AVAIL ``` When adding test coverage for the new dRAID vdev type the following options were added to the ztest command. These options are leverages by zloop.sh to test a wide range of dRAID configurations. -K draid|raidz|random - kind of RAID to test -D <value> - dRAID data drives per group -S <value> - dRAID distributed hot spares -R <value> - RAID parity (raidz or dRAID) The zpool_create, zpool_import, redundancy, replacement and fault test groups have all been updated provide test coverage for the dRAID feature. Co-authored-by: Isaac Huang <he.huang@intel.com> Co-authored-by: Mark Maybee <mmaybee@cray.com> Co-authored-by: Don Brady <don.brady@delphix.com> Co-authored-by: Matthew Ahrens <mahrens@delphix.com> Co-authored-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Mark Maybee <mmaybee@cray.com> Reviewed-by: Matt Ahrens <matt@delphix.com> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #10102 |
||
---|---|---|
.. | ||
.gitignore | ||
fsck.zfs.8 | ||
Makefile.am | ||
mount.zfs.8 | ||
vdev_id.8 | ||
zdb.8 | ||
zed.8.in | ||
zfs_ids_to_path.8 | ||
zfs-allow.8 | ||
zfs-bookmark.8 | ||
zfs-change-key.8 | ||
zfs-clone.8 | ||
zfs-create.8 | ||
zfs-destroy.8 | ||
zfs-diff.8 | ||
zfs-get.8 | ||
zfs-groupspace.8 | ||
zfs-hold.8 | ||
zfs-inherit.8 | ||
zfs-jail.8 | ||
zfs-list.8 | ||
zfs-load-key.8 | ||
zfs-mount-generator.8.in | ||
zfs-mount.8 | ||
zfs-program.8 | ||
zfs-project.8 | ||
zfs-projectspace.8 | ||
zfs-promote.8 | ||
zfs-receive.8 | ||
zfs-recv.8 | ||
zfs-redact.8 | ||
zfs-release.8 | ||
zfs-rename.8 | ||
zfs-rollback.8 | ||
zfs-send.8 | ||
zfs-set.8 | ||
zfs-share.8 | ||
zfs-snapshot.8 | ||
zfs-unallow.8 | ||
zfs-unjail.8 | ||
zfs-unload-key.8 | ||
zfs-unmount.8 | ||
zfs-upgrade.8 | ||
zfs-userspace.8 | ||
zfs-wait.8 | ||
zfs.8 | ||
zfsconcepts.8 | ||
zfsprops.8 | ||
zgenhostid.8 | ||
zinject.8 | ||
zpool_influxdb.8 | ||
zpool-add.8 | ||
zpool-attach.8 | ||
zpool-checkpoint.8 | ||
zpool-clear.8 | ||
zpool-create.8 | ||
zpool-destroy.8 | ||
zpool-detach.8 | ||
zpool-events.8 | ||
zpool-export.8 | ||
zpool-get.8 | ||
zpool-history.8 | ||
zpool-import.8 | ||
zpool-initialize.8 | ||
zpool-iostat.8 | ||
zpool-labelclear.8 | ||
zpool-list.8 | ||
zpool-offline.8 | ||
zpool-online.8 | ||
zpool-reguid.8 | ||
zpool-remove.8 | ||
zpool-reopen.8 | ||
zpool-replace.8 | ||
zpool-resilver.8 | ||
zpool-scrub.8 | ||
zpool-set.8 | ||
zpool-split.8 | ||
zpool-status.8 | ||
zpool-sync.8 | ||
zpool-trim.8 | ||
zpool-upgrade.8 | ||
zpool-wait.8 | ||
zpool.8 | ||
zpoolconcepts.8 | ||
zpoolprops.8 | ||
zstream.8 | ||
zstreamdump.8 |