OpenIndiana : créer une target iSCSI

Encore quelques steps simples mais qu’on ne fait pas tous les jours:

  1. pkg install SUNWiscsit
  2. svcadm enable -r svc:/network/iscsi/target:default
  3. zfs create -V 10G tank/myiscsilun
  4. sbdadm create-lu /dev/zvol/rdsk/tank/myiscsilun
  5. itadm create-target -a none -n iqn.1986-03.com.sun:hostname-tank-myiscsilun -l hostname-tank-myiscsilun
  6. stmfadm offline-target iqn.1986-03.com.sun:hostname-tank-myiscsilun
  7. stmfadm create-hg myhostgroup
  8. stmfadm add-hg-member -g myhostgroup iqn.1991-05.com.microsoft:myhost
  9. stmfadm create-tg mytargetgroup
  10. stmfadm add-tg-member -g mytargetgroup iqn.1986-03.com.sun:hostname-tank-myiscsilun
  11. stmfadm online-target iqn.1986-03.com.sun:hostname-tank-myiscsilun
  12. stmfadm add-view -n 0 -t mytargetgroup -h myhostgroup <GUID from step 4>

Et voilà.

This entry was posted in Computer, OpenIndiana, Solaris, ZFS. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *