5 minute read.Last Modified 2022-09-27 14:16 EDT
TrueNAS uses ZFS data storage pools to efficiently store and protect data.
It is strongly recommended that you 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. The Create or Import Pool screen of the pool creation screens displays. Select Create new pool and click CREATE POOL to open the Pool Manager.
To begin, enter a name for the pool in Name. Do not include spaces in the pool name as this could cause problems with other functions.
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 vdevs 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. Select the Disk checkboxes and click the to move the disks into the Data VDevs list.
Warning: USB-connected disks might report their serial numbers inaccurately, making them indistinguishable from each other.
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, you can create multiple copies of the original vdev.
Don’t have multiple data vdevs with different numbers of disks in each vdev. This complicates and limits the pool capabilities.
Hot Spare are drives reserved to insert 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.
Each disk is used to store data. Requires at least one disk and has no data redundancy.
Never use a Stripe type vdev to store critical data! A single disk failure results in losing all data in the vdev.
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.