Well, I did say there could be issues lurking behind that safety check.
Then the terminology used in the TrueNAS iSCSI administration page is really poorly worded and the lack of clear docs with examples for this type of deployment hurts. The TrueNAS approach is map hosts to zVols whereas industry norm is map zVols to hosts.
Referencing only the TrueNAS iSCSI sharing page, let’s have a go at mapping TrueNAS terminology to concepts and see if it gives the desired result.
Initiator Groups (IG)
Treat Initiator groups as a host ACL for accessing one or more zVols.
Create an IG for each initiator host IQN. This is used for zVols limited to that host.
Create an IG group containing all host’s IQN needing access to a shared zVol. This is used when multiple hosts need access to one zVol.
Useful Tip: Set the Description to the either the host name or the group of hosts collective (when sharing access)
Targets
Targets is a virtualised endpoint representing a combination of ACLs. This is where network addresses, iSCSI Portal, authentication, and IG ACLs are combined. An initiator logs into the TrueNAS IQN host, but think of the target being the ACL path used to reach an exposed iSCSI disk.
Useful Tip: Set the target name to hostname-purpose. E.g. host01-boot, or host01-localdata. Treat Target Alias as a description.
Note: The GUI layout is broken as the Initiator group ID shows the ID and all members IQNs and no description. This causes the left side Basic Info column to be squished up significantly resulting in networks only having 1 octave shown. Also makes one needing to work harder remembering what an IG ID is for. Be far better if the Initiator Group ID and Description (rather than all members IQNs) is displayed in the selection pop down with a width limit and text wrapping.
Extents
Extents are a map between a zVol (actual representation of block storage) to a name and NAA giving a “disk” ready for exposure to initiators. Think of each extent being an iSCSI disk.
Create an extent for each zVol. Name the extent representing the use of the zvol. Maybe a naming scheme like fqdn-purpose for individual host specific disks, and type-purpose for group shared disks.
Associated Targets
This is mapping the Target (ACL) to the extent (iSCSI disk representing a zVol). This is where who (initiators) can access a zVol is defined. This is also where the Disk LUN is defined. Note, the LUN is forced to be the same to each host.
This is where concepts greatly differ to other storage units. In many other implementations a disk or LUN is defined when attaching a disk to a host definition. In TrueNAS, the act is attaching an initiator host(s) definition to a disk.
The LUN limitation means it is not possible to map a shared group disk to different hosts using different LUNs.
Conclusion
By treating TrueNAS iSCSI as map hosts to zVols, and targets are in fact an initiator(s) ACL, it is then possible to map a zVol to multiple hosts. But the logic is really topsy turvy with very unique naming involved for those not immersed in TrueNAS ecosystem.
@m4rek11 hope the above helps and results in a working setup for you.