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

Increasing iSCSI Available Storage

  2 minute read.

Last Modified 2022-08-18 08:41 -0400

Expanding LUNs

TrueNAS lets users expand Zvol and file-based LUNs to increase the available storage that the iSCSI shares.

Zvol LUNs

To expand a Zvol LUN, go to Storage and click the next to the Zvol LUN, then select Edit Zvol.

ExpandingZvolLUNListSCALE

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

ExpandingZvolLUNSizeSCALE

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.

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

ExpandingFileLUNPathSCALE

Highlight and copy the path, then click Cancel.

Go to Shell and input truncate -s +[size] [path to file], then press Enter.

Where [size] is how much space you want to grow the file by, and [path to file] is the file path you copied earlier.

ExpandingFileLUNShellSCALE

An example command could look like this: truncate -s +2g /mnt/Pool1/Dataset1/File LUN

Lastly, go back to the extent in Shares > Block (iSCSI) Shares Targets and make sure the Filesize is set to 0 so that the share uses the actual file size.

Related Content