KB450149 – Configuration: CentOS 7

Last modified: July 23, 2019
You are here:
Estimated reading time: 1 min

Getting Started

Running preconfig to install dependencies and update the system:

wget images.45drives.com/gtools/preconfig
chmod +x preconfig
./preconfig -zstvf

– The script will auto reboot the server, when it comes back you’ll need to run the command again to finish installation.

– When that finishes the server will reboot once more. When it comes back everything should be updated and dependencies installed.

Building Storage Pools

Setting up your ZFS RAID array

Depending on the number of hard drives in your system, you have some options for your RAID array. We always recommend going with a RAIDZ2 volume, as it gives you good redundancy.
Ex: If you have 10 hard drives in your system, we’d recommend a building a 10 disk RAIDZ2 volume.

First, run the following command to see what your hard drives device names are labeled as:


The output should have device names such as sda, sdb, etc. You’ll see the ‘size’ column, which will allow you to find your hard drives.

Once you have all of your device names, you’re ready to build your ZFS RAID array.

zpool create zpool raidz2 sdb sdc sdd sde sdf sdg sdh sdi sdj sdk -o ashift= 9

Creating a Hybrid RAIDZ is also an option that will greatly increase the speed of your array and is what we recommend when performing configurations.

ex. zpool create tank raidz1 sde sdf sdg raidz1 sdh sdi sdj raidz1 sdk sdl sdm raidz1 sdn sdo sdp

Now if you run the following command you should see your zpool with total space available:

zfs list

Creating Datasets

After you create a storage pool (tank) you can then move on to making datasets. The rule we follow is that you create a dataset for each share you will be creating. Use this command to create a dataset:

zfs create tank/dataset

To view the newly created dataset you can use the following command:

zfs list tank/dataset



KB450010 – Single Server Linux SMB Setup


KB450094 – Single Server Linux NFS Setup


KB450152 – Creating a ZVOL

KB450011 – Single Server Linux iSCSI Setup (ZFS)

Network Setup

General Network Setup

KB450130 – Single Server Linux Network Bonding Setup



KB450140 – How to install Netdata on CentOS 7

ZFS Watcher

KB450088 – ZFS Watcher

Was this article helpful?
Dislike 0
Views: 152