This information will help you create an iSCSI share on TrueNAS. iSCSI shares are a “block” storage device. They are defined as a particular size which can be increased later.
Creating a Zvol
- At Storage, Pools, select a pool and at the far right select the triple dots and Add Zvol
- Provide the Zvol name, a comment if need be and the size of the zvol.
- All ofthe other settings can be left as is.
- Press the Save button.
Share the Zvol
- At Services, start and start automatically the iSCSI service.
- At Sharing and Block Shares, click the “Wizard” button in the top right of the screen.
- Create or Choose Block Device - You can use a device (like a Zvol) or a file. Select the zvol you just created. Select the “Sharing platform” that best matches what will attach to this share. For Proxmox, select the “VMware” option. Press Next.
- Select a Portal. This is usually an IP address and port. 3260 is the default iSCSI port. To be more secure, use CHAP under “Discovery Authentication Method”. Press Next.
- Select the Initiator settings. If you leave this blank, all initiators (devices attaching to this share) will be allowed. You can also restrict the networks allowed to connect. Press Next.
- Review the settings then press Submit.
That is it. All done.