Encore quelques steps simples mais qu’on ne fait pas tous les jours:
- pkg install SUNWiscsit
- svcadm enable -r svc:/network/iscsi/target:default
- zfs create -V 10G tank/myiscsilun
- sbdadm create-lu /dev/zvol/rdsk/tank/myiscsilun
- itadm create-target -a none -n iqn.1986-03.com.sun:hostname-tank-myiscsilun -l hostname-tank-myiscsilun
- stmfadm offline-target iqn.1986-03.com.sun:hostname-tank-myiscsilun
- stmfadm create-hg myhostgroup
- stmfadm add-hg-member -g myhostgroup iqn.1991-05.com.microsoft:myhost
- stmfadm create-tg mytargetgroup
- stmfadm add-tg-member -g mytargetgroup iqn.1986-03.com.sun:hostname-tank-myiscsilun
- stmfadm online-target iqn.1986-03.com.sun:hostname-tank-myiscsilun
- stmfadm add-view -n 0 -t mytargetgroup -h myhostgroup <GUID from step 4>
Et voilà.