HowTo : Create RAIDZ Zpool

RAIDZ is ZFS’s implementation of RAID5. It uses a variable width stripe for it’s parity, which allows for better performance than traditional RAID5 implementations. RAIDZ is typically used when you want the most out of your physical storage and are willing to sacrifice a bit of performance to get it. You can have a single disk failure in a RAIDZ array and still maintain all of your data.

To create a RAIDZ Zpool first run the format command to find the disks that you have in your system.

Format Command

Once you have run the format command, you should have a list of disks that you can select for your Zpool. Select the ones that you would like to use (we’ll use c4t5d0-c4t8d0) and issue this command :

zpool create tank raidz c4t5d0 c4t6d0 c4t7d0 c4t8d0

Once you issue that command, it should build the zpool. Run the “zpool status” command to make sure it was created as expected.

Create RAIDZ Image

Thursday, June 3rd, 2010 RAID, ZFS

4 Comments to HowTo : Create RAIDZ Zpool

  • Reid says:

    Where can one find the “format” command? I’m running ZFS on Ubuntu 11.10 and have no such command it seems. And fdisk only seems to work on one device at a time. Something that spits out all the partitions like “format” would be quite useful!

    There is a graphical “Disk Utility” command. Perhaps it has a command-line interface..

  • We are not terribly familiar with the Ubuntu port of ZFS, so we can’t directly comment on this. Likely the Ubuntu support forums would be a great place to start.

  • Porter Peter says:

    Under Ubuntu you can easily list all disks and partitions using:
    fdisk -l

    You could only list physical SATA disks by doing something along the lines of:

    fdisk -l | grep ‘Disk /dev/sd’

    but note that this includes logical disks such as md devices.

  • Porter Peter says:

    Oops, forgot to clean up that last line, grepping for ‘Disk /dev/sd’ would omit anything not a “/dev/sd?” device, so should do what you want!

  • Leave a Reply

    You must be logged in to post a comment.