I'm creating a number of iSCSI targets on an OpenIndiana server using COMSTAR. Basically:
- zfs create -V 10g pool/comstar/vol
- sbdadm create-lu /dev/zvol/rdsk/pool/comstar/vol
- stmfadm add-view 600144F077000000000048C62BF00001
- itadm create-target
It's that last part I'm having a hard time understanding because I'm not telling itadm what LU to use. I assume it'll use whatever LU is available, but then after I've created a few of these, how do I know what target maps to what LU? I can't find any correlating bit of info.
'stmfadm list-lu -v' lists LU GUID and data file (e.g. /dev/zvol/rdsk/pool/comstar/vol/)
'itadm list-target -v' and 'stmfadm list-target -v' give me the target IQN but no info about what physical volume/LU they map to.
This seems like something you'd commonly want to know, but I seem to be missing something.