TrueNAS CORETrueNAS CORE Community Release Documentation
This content documents the end of life 13.3 TrueNAS Community release. Archival documentation is provided for reference only and not actively maintained. Use the Product and Version selectors above to view content specific to another TrueNAS release.

SLOG Overprovisioning

Over-provisioning SLOG SSDs is useful for different scenarios. The most useful benefit of over-provisioning is greatly extending SSD life. Over-provisioning an SSD distributes the total number of writes and erases across more flash blocks on the drive.

Seagate provides a thoughtful investigation into over-provisioning SSDs here: https://www.seagate.com/blog/ssd-over-provisioning-benefits-master-ti/.

Some SATA devices are limited to one resize per power cycle. Some BIOS can block resize during boot and require a live power cycle.

Overprovision Options

Web Interface

To over provision a SLOG device, log in to TrueNAS and go to System > Advanced. Enter an over-provision value corresponding to the new size in GB in the Log (Write Cache) Overprovision Size in GiB field.

StoragePoolsOptionSLOGOverprovision

When this value is applied, the over-provision value is applied whenever a pool is created with a SLOG device. It is impossible to restore an over-provisioned SLOG device back to original capacity without running the disk_resize command after first destroying the pool it was part of and issuing a full power cycle.

Only one over-provision/under-provision operation occurs per power cycle.

Erasing the over-provision setting in System > Advanced Log (Write Cache) Overprovision Size in GiB field and setting to none prevents future SLOG devices from being over-provisioned.

Shell

Use disk_resize in the shell to over-provision.

The command to over-provision an SSD is disk_resize {DEVICE} {SIZE}, where {DEVICE} is the SSD device name and {SIZE} is the new provision size in GiB or TiB. Example: disk_resize ada5 16GB. When no size is specified, it reverts the provision back the full size of the device.