(VERSION INFORMATION: Solaris 11.1)
This restrict selected targets visible to initiator i.e. host group and selected LUN for particular target.
This is one of the best practice when provision LUN.
- 1. Create ZFS pool.
zpool add -f db-pool c0t600A0B800056405E000049EF5253ECF4d0
- 2. create zfs disk/volume
- 3. Make ZFS volume LUN
- 4. Enable scsi initiator (on all the isci client node)
svcs -l iscsi/initiator ##check
- 5. iscsiadm list initiator-node [all client node]
- 6. stmfadm create-hg host-db #[iscsi server node]
- 7. stmfadm add-hg-member -g host-db iqn.1986-03.com.sun:01:00144ffba06e.535be0bb iqn.1986-03.com.sun:01:00144ff99ca4.535be0e7
- 8. stmfadm create-tg target-racdb00
- 9. Create the iSCSI
- 10. itadm list-target –v
- 11. PrimayNode #stmfadm offline-target iqn.1986-03.com.sun:02:315667dd-969a-e405-f715-c6d61ace3acb
- 12. PrimayNode #stmfadm add-tg-member -g target-racdb00 iqn.1986-03.com.sun:02:315667dd-969a-e405-f715-c6d61ace3acb
- 13. PrimayNode #stmfadm list-lu –v
Can you create ZFS iSCSI
SCSI LUN created in step 1 to 3.
- 14. PrimayNode # stmfadm add-view -h host-db -t target-racdb00 -n 10 600144F000212834D270536B68270002
- 15. PrimaryNode #stmfadm list-view -l 600144F000212834D270536B68270002
- 16. Bring logical unit online.
- 17. Activate client’s initiator
root@dbnode1:~# iscsiadm modify discovery -t enable
- 18. Add iSCSI address and port(default is 3260)
- 19. root@dbnode1:~# iscsiadm list target
- 20. Dynamically update /dev and /devices.
- 21. root@dbnode1:~# format
Other Cheat Commands:
- 1. delete logical unit view
- 2. stmfadm à SCSI Target Mode Framework
No comments:
Post a Comment