Creating a RAID-Z Storage Pool
To create a storage pool with a RAID-Z configuration, use one of the RAID-Z keywords depending on the parity that you want for the pool:
-
raidz
orraidz1
for single-parity configuration. -
raidz2
for double-parity configuration. -
raidz3
for triple-parity configuration.
To create multiple RAID-Z top level virtual devices, repeat the keyword on the command line. The following command creates a pool rdpool
with one top-level virtual device. The virtual device is a triple-parity RAID-Z configuration that consists of nine disks.
$ zpool create rdpool raidz3 c0t0d0 c1t0d0 c2t0d0 c3t0d0 c4t0d0 \ c5t0d0 c6t0d0 c7t0d0 c8t0d0
For an example of how to configure ZFS with a RAID-Z storage pool, see Configuring a RAID-Z ZFS File System.
You can perform the following operations on ZFS RAID-Z configurations:
-
Add another top-level virtual device with a different set of disks. See Adding Devices to a Storage Pool.
-
Replace disks. See Replacing Devices in a Storage Pool.
You cannot perform the following operations on a RAID-Z configuration:
-
Attach an additional disk.
-
Detach a disk, except when you are replacing it with a spare disk, or when you need to detach a spare disk.
-
Remove a device that is not a log device or a cache device.