Running preconfig to install dependencies and update the system:
chmod +x preconfig
– 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:
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