Get a Quote     (408) 943-4100               TrueNAS Discord      VendOp_Icon_15x15px   Commercial Support Toggle between Light and Dark mode

Zvol Screens

  5 minute read.

Last Modified 2022-12-09 08:45 EST

To access the Zvol screens, from the Storage screen click the   for a pool or dataset, then click Add Zvol to display the Add Zvol screen. To edit a zvol, click the   for a zvol, then click Edit Zvol to display the Edit Zvol screen.

Add Zvol Screen

The Add Zvol has two screens, basic options and advanced options. The basic options display by default. Click Advanced Options to expand the settings that includes block size.

Basic Options Settings


Zvol nameRequired setting. Enter a short name for the zvol. Using a zvol name longer than 63-characters can prevent accessing zvols as devices. For example, you cannot use a zvol with a 70-character file name or path as an iSCSI extent.
CommentsEnter any notes about this zvol.
Size for this zvolSpecify size and value. You can include units like t as in TiB, and G. You can increase the size of the zvol later, but you cannot reduce size. If the size is more than 80% of the available capacity, the creation fails with an out-of-space error unless you select Force size.
Force sizeSelect to enable the system to create a zvol where the size is over 80% capacity. By default, the system does not create a zvol of this size. While not recommended, enabling this option forces the creation of the zvol.
SyncSelect the data write synchronization option from the dropdown list. Inherit gets the sync settings from the parent dataset. Standard uses the sync settings requested by the client software. Always waits for data writes to complete. Disabled never waits for writes to complete.
Compression levelSelect the option from the dropdown list for the type of data compression to use or encoding information in less space than the original data occupies. Select the algorithm that balances disk performance with the amount space saved. See below for the options.
ZFS DeduplicationDo not change this setting unless instructed to do so by your iXsystems support engineer. Select to transparently reuse a single copy of duplicated data to save space. Deduplication can improve storage capacity, but it is RAM intensive. Compressing data is recommended before using deduplication. Deduplicating data is a one-way process. You cannot un-deduplicate deduplicated data!
SparseUsed to provide thin provisioning. Use with caution as writes fail when space is low on a pool.
Read-onlySelect the option to use to prevent modifying the zvol. Options are Inherit (off), On or Off.

Encryption options do not display unless you create the zvol from dataset using encryption.

Advanced Options Settings


Block sizeSelect the size option from the dropdown list. The default is Inherit, other options include, 4KiB, 8KiB, 16KiB, 32KiB, 64KiB, 128KiB.

TrueNAS recommends a space-efficient block size for new zvols. This table shows the minimum recommended volume block size values by configuration (mirror or RAIDz type). Use this table to change the Block size value.

ConfigurationNumber of DrivesOptimal Block Size

Depending on their workload, zvols can require additional tuning for optimal performance. See the OpenZFS handbook workload tuning chapter for more information.

Data Compression Algorithms

Select the compression algorithm that best suits your needs from the Compression dropdown list of options.

LZ4 maximizes performance and dynamically identifies the best files to compress. LZ4 provides lightning-fast compression/decompression speeds and comes coupled with a high-speed decoder. This makes it one of the best Linux compression tools for enterprise customers.

ZSTD offers highly configurable compression speeds, with a very fast decoder.

Gzip is a standard UNIX compression tool widely used for Linux. It is compatible with every GNU software which makes it a good tool for remote engineers and seasoned Linux users. It offers the maximum compression with the greatest performance impact. The higher the compression level implemented the greater the impact on CPU usage levels. Use with caution especially at higher levels.

ZLE or Zero Length Encoding, leaves normal data alone but only compresses continuous runs of zeros.

LZJB compresses crash dumps and data in ZFS. LZJB is optimized for performance while providing decent compression. LZ4 compresses roughly 50% faster than LZJB when operating on compressible data, and is greater than three times faster for uncompressible data. LZJB was the original algorithm used by ZFS but it is now deprecated.

Zvol Actions List

Click the   for a dataset to display the Zvol Actions dropdown list. The options for the selected zvol are Delete Zvol, Edit Zvol and Create Snapshot.

Delete Zvol Dialog

Delete Zvol displays a confirmation dialog where you enter the name of the zvol and select Confirm to activate the Delete Zvol button.


Edit Zvol Option

Edit Zvol displays the Edit Zvol screen where you can modify current settings.

Create Snapshot Dialog

Create Snapshot displays a One time snapshot zvol dialog where you can create a manual snapshot of the selected zvol.

Related Content