5 minute read.Last Modified 2021-03-12 15:34 EST
TrueNAS uses ZFS data storage “pools” to efficiently store and protect data.
It is strongly recommended to review the available system resources and plan the storage use case before creating a storage pool.
- When storing critical information, more drives allocated to the pool increases redundancy.
- Maximizing total available storage at the expense of redundancy or performance means allocating large volume disks and configuring the pool for minimal redundancy.
- Maximizing pool performance means installing and allocating high-speed SSD drives to the pool.
Determining your specific storage requirements is a critical step before creating a pool.
To create a new pool, go to Storage > Pools and click ADD. Select Create new pool and click CREATE POOL to open the Pool Manager.
To begin, enter a pool Name.
Next, configure the virtual devices (vdevs) that make up the pool.
Clicking SUGGEST LAYOUT allows TrueNAS to review all available disks and populate the primary Data vdev with identically sized drives in a balanced configuration between storage capacity and data redundancy. To clear the suggestion, click RESET LAYOUT.
To manually configure the pool, add vdevs according to your use case. Set the Disk boxes and click the to move the disks into a vdev.
Pools have many different kinds of vdevs available. These store data or enable unique features for the pool:
Standard vdev for primary storage operations. Each storage pool requires at least one Data vdev. Data vdev configuration typically affects how the other kinds of vdevs are configured.
A Data VDev with disks is duplicated by clicking REPEAT. When more disks are available and equal in size, the REPEAT button creates another vdev with an identical configuration called a “mirror” of vdevs.
When even more same-size disks are available, multiple copies of the original vdev can be created.
Don’t have multiple data vdevs with different numbers of disks in each vdev. This complicates and limits the pool capabilities.
Drives reserved for inserting into Data vdevs when an active drive fails. Hot spares are temporarily used as replacements for failed drives to prevent larger pool and data loss scenarios.
When a failed drive is replaced with a new drive, the hot spare reverts to an inactive state and is available again as a hot spare.
When the failed drive is only detached from the pool, the temporary hot spare is promoted to a full Data vdev member and is no longer available as a hot spare.
To add a different vdev type during pool creation, click ADD VDEV and select the type.
Select disks from
Available Disks and use the (right arrow) next to the new VDev to add it to that section.
Disks added to a vdev arrange in different layouts, according to the specific pool use case.
The Pool Manager suggests a vdev layout from the number of disks added to the vdev. For example, if two disks are added, TrueNAS automatically configures the vdev as a Mirror, where the total available storage is the size of one added disk while the other disk provides redundancy.
To change the vdev layout, open the Data VDevs list and select the desired layout.