TrueNAS SCALETrueNAS SCALE Documentation Archive
This content follows the TrueNAS SCALE 22.12 (Bluefin) releases. Archival documentation is provided for reference only and not actively maintained.
Use the Product and Version selectors above to view content specific to different TrueNAS software or major version.

Increasing iSCSI Available Storage

Expanding LUNs

TrueNAS lets users expand Zvol and file-based LUNs to increase the available storage in an iSCSI share.

Zvol LUNs

To expand a Zvol LUN, go to Datasets and click the Zvol LUN name. The Zvol Details widget displays. Click the Edit button.

DatasetZvolListingSCALE

Enter a new size in Size for this zvol, then click Save.

DatasetEditZvolListingSizeSCALE

TrueNAS prevents data loss by not allowing users to reduce the Zvol size. TrueNAS also does not allow users to increase the Zvol size past 80% of the pool size.

File LUNs

You need to know the path to the file to expand a file-based LUN. Go to Shares and click Configure in the Block (iSCSI) Shares Targets window, then select the Extents tab.

FileLUNsEditExtent

Click the next to the file-based LUN and select Edit.

FileLUNsEditExtent2

Highlight and copy the path to the extent, then close the Edit Extent window.

Go to System Settings > Shell and input sudo truncate -s +[size] [path to file], where [size] is how much space you want to grow the file by, and [path to file] is the file path you copied earlier. Then press Enter.

In our example, the command looks like this: sudo truncate -s +1g /mnt/tankgrem3/test83/filelun

ShellFileLUNExpandSCALE

Lastly, go back to the extent in Shares > Block (iSCSI) Shares.

Click the Configure button in the window header, then click the Extents tab. Lastly, click the next to the file-based LUN and select Edit. Make sure the Filesize for the file-based LUN is set to 0 so that the share uses the actual file size. Click Save to retain any changes.

FileLUNsEditExtent3

Related Content