How to configure RAID 10 using ZFS



ZFS is a software based file system which allows you to do RAID in software. It is extremely fast and flexible, and has online error detection (unlike hardware RAID cards). This is a great way to run file servers.

To setup RAID 10 in ZFS, you run the following command:

zpool create tank mirror disk1 disk2 mirror disk3 disk4 mirror disk5 disk6

Where disk1, disk2, disk3, disk4, disk5, and disk6s are your hard drives.   How to list all drives installed in Solaris/OpenSolaris


 


 


Categories

  • Programster

    Correct me if I’m wrong but ZFS does not have “native” RAID10 like BTRFS. Because of this BTRFS can create RAID 10 across odd numbers of drives above 4.

    Also if you cannot replace a drive after it has failed, in ZFS your RAID array could “die” if the second drive in the same set then failed, no matter how many drives in your array. BTRFS on the other hand can be told that the drive is permanently gone (btrfs dev delete missing /path/to/mnt) and will then proceed to rebalance the array so that it can handle the failure of any of the remaining drives.

    However, ZFS could handle the failure of two drives simultaneously (as long as they were in different pairs), but BTRFS is unlikely to be able to handle this as the stripes can be mixed across the drives in any manner.