{
  "slug": "raidz",
  "term": "RAIDZ",
  "aliases": [
    "RAID-Z",
    "RAIDZ1",
    "RAIDZ2",
    "RAIDZ3"
  ],
  "definition": "RAIDZ is ZFS's distributed-parity virtual-device layout with one, two or three parity fragments and block-dependent stripe widths.",
  "note": "Data and parity are striped across all disks of a raidz group, though not necessarily with a consistent stripe width, and the layout avoids the write hole in which data and parity become inconsistent after a power loss. A group of N disks of size X with P parity disks holds approximately (N-P)*X bytes and survives P device failures, needs at least P+1 devices, and is recommended at 3 to 9 devices. [concepts] RAIDZ1, RAIDZ2 and RAIDZ3 name parity levels within this layout, not separate storage media, and raidz is an alias for raidz1. A whole-pool failure probability cannot be inferred from the parity count alone.",
  "status": "shipping",
  "advantages": [
    {
      "text": "Variable stripe width avoids the fixed-width zero padding of dRAID, where 8 data devices and 4 KiB sectors give a 32 KiB minimum allocation.",
      "citationIds": [
        "concepts"
      ]
    },
    {
      "text": "A group can be widened by attaching a disk, redundancy is kept during the expansion, and the number of tolerated failures stays the same.",
      "citationIds": [
        "attach"
      ]
    }
  ],
  "limitations": [
    {
      "text": "After expansion, old blocks keep their old data-to-parity ratio, so a 5-wide RAIDZ2 stores 3 data and 2 parity per stripe while new blocks after growth to 6-wide store 4 and 2, and reported free space can be slightly low.",
      "citationIds": [
        "attach"
      ]
    },
    {
      "text": "Because stripe width varies, resilvering is not fully sequential, which dRAID obtains only by accepting fixed-width padding.",
      "citationIds": [
        "concepts"
      ]
    },
    {
      "text": "A disk failure during expansion pauses the expansion until the group is healthy again.",
      "citationIds": [
        "attach"
      ]
    }
  ],
  "related": [
    "parity-raid",
    "raid-5",
    "raid-6",
    "resilver",
    "raidz-expansion",
    "zfs",
    "vdev",
    "zfs-recordsize",
    "zfs-volblocksize"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30",
  "citations": [
    {
      "id": "concepts",
      "title": "OpenZFS zfs-2.3.0: zpoolconcepts(7), raidz and draid virtual devices",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/man/man7/zpoolconcepts.7",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela",
      "title": "Hesela: RAIDZ expansion and retained parity cost",
      "url": "https://hesela.com/analyses/raidz-expansion-parity-capacity/",
      "accessed": "2026-10-16"
    },
    {
      "id": "attach",
      "title": "OpenZFS zfs-2.3.0: zpool-attach(8), RAID-Z expansion.",
      "url": "https://github.com/openzfs/zfs/blob/zfs-2.3.0/man/man8/zpool-attach.8",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "concepts is the OpenZFS zfs-2.3.0 zpoolconcepts(7) manual page, re-read for the raidz and draid virtual-device descriptions.",
    "attach is the OpenZFS zfs-2.3.0 zpool-attach(8) manual page, read for RAID-Z expansion behavior.",
    "No pool reliability figure or measured performance is claimed."
  ]
}
