RAIDZ Example
Site.RAIDZExample History
Hide minor edits - Show changes to markup
Here we create a RAID-Z2 (double parity) pool using 6 disks. This pool can tolerate up to 2 disks failing at the same time. In this example we force the owner of the zfs file system to owner “me”, you may want to likewise set a non-root owner for your file system.
In this example we create a RAID-Z2 (double parity) pool using 6 disks. This pool can tolerate up to 2 disks failing at the same time. In this example we force the owner of the zfs file system to owner “me”, you may want to likewise set a non-root owner for your file system.
NAME STATE READ WRITE CKSUM raider ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0
NAME STATE READ WRITE CKSUM raider ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0
Here we create a RAID-Z2 (double parity) pool using 6 disks. This pool can tolerate up to 2 disks failing at the same time. In this example we force the owner of the zfs file system to owner “me”, you may want to likewise set a non-root owner for your file system.
$ sudo zpool showdisks DISK DEVICE SIZE CONNECTION DESCRIPTION /dev/disk1 1.82TiB SATA WDC WD20EURS-63S48Y0 Media /dev/disk2 1.82TiB SATA WDC WD20EURS-63S48Y0 Media /dev/disk3 1.82TiB SATA WDC WD20EURS-63S48Y0 Media /dev/disk4 1.82TiB SATA WDC WD20EURS-63S48Y0 Media /dev/disk5 1.82TiB SATA WDC WD20EURS-63S48Y0 Media /dev/disk6 1.82TiB SATA WDC WD20EURS-63S48Y0 Media $ sudo zpool create -f raider raidz2 /dev/disk1 /dev/disk2 /dev/disk3 /dev/disk4 /dev/disk5 /dev/disk6 $ sudo chown me:staff /Volumes/raider $ zpool status raider pool: raider state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM raider ONLINE 0 0 0 raidz2-0 ONLINE 0 0 0 GPTE_6AA8E61A-63AE-4C82-8117-1CA41F… ONLINE 0 0 0 at disk1s2 GPTE_203C7C41-2576-456E-AD1D-FE17AF… ONLINE 0 0 0 at disk2s2 GPTE_9B68CBE7-5232-456A-907A-7120AB… ONLINE 0 0 0 at disk3s2 GPTE_16485F0B-985D-4B78-AD1B-693764… ONLINE 0 0 0 at disk4s2 GPTE_165B209A-A829-462D-A297-60E51F… ONLINE 0 0 0 at disk5s2 GPTE_93905919-5908-4137-9D31-C6EAA3… ONLINE 0 0 0 at disk6s2 errors: No known data errors