ZFS on CentOS

First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below:

$ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm
$ sudo yum install zfs 

Once, zfs has been installed, we can create a storage pool. There’re many RAID configuration to choose from, and I’m not going to get into it. However, if you want to learn more, you can read this ZFS Administration article which explains in great detail about ZFS RAID(Z).

In my case, I have three 1TB disks and pick RAIDZ-1.

# zpool create tank raidz1 sda sdb sdc
# zpool status tank
  pool: tank
 state: ONLINE   
  scan: none requested
config:

        NAME        STATE     READ WRITE CKSUM
        tank        ONLINE       0     0     0
          raidz1-0  ONLINE       0     0     0
            sda     ONLINE       0     0     0
            sdb     ONLINE       0     0     0
            sdc     ONLINE       0     0     0

Source:

Leave a Reply

Your email address will not be published. Required fields are marked *