ZFS solaris 10 iscsi initiator exercise

On Solaris

1. Determine whether the required software is installed.

-bash-3.2# pkginfo |grep iscsi
system SUNWiscsir Sun iSCSI Device Driver (root)
system SUNWiscsitgtr Sun iSCSI Target (Root)
system SUNWiscsitgtu Sun iSCSI Target (Usr)
system SUNWiscsiu Sun iSCSI Management Utilities (usr)

2. Enable iscsi_initiator

-bash-3.2# svcadm enable iscsi/initiator

-bash-3.2# svcs -a|grep iscsi
disabled Mar_17 svc:/system/iscsitgt:default
online Mar_17 svc:/network/iscsi/initiator:default

3. Determine the Solaris 10 iqn.
-bash-3.2# iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:7ac1dcf7ffff.5300d745
Initiator node alias: solaris10
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Authentication Type: NONE
RADIUS access: unknown
Tunable Parameters (Default/Configured):
Session Login Response Time: 60/-
Maximum Connection Retry Time: 180/-
Login Retry Time Interval: 60/-
Configured Sessions: 0

4. Enable static and/or send targets
-bash-3.2# iscsiadm list discovery
Static: disabled
Send Targets: disabled
iSNS: disabled

iscsiadm modify discovery --static enable
iscsiadm modify discovery --sendtargets enable


On zfs

1. In the BUI create target
"configuration" "san" "+target"
In the create iscsi target window enter:
Alias: "zfs_t1"
Network Interfaces: "e1000g0"

Drag the target to below the Target Group "default"
A new targetgroup "targets-0" is created.
Click apply

Create Initiator
"configuration" "san" "+initiators"
In the Identify iSCSI Initiator window enter
Initiator IQN: "iqn.1986-03.com.sun:01:7ac1dcf7ffff.5300d745"
Alias: "solaris"

Drag the initiator to below the Initiator Group "default"
A new initiatorgroup "initiators-0" is created.
Click apply

2. Create a lun
"shares" "luns" "+luns"
In the Create Lun window enter:
Name: solarislun
Size: 2G
Target group: targets-0
Initiator group: initiators-0


On Solaris

-bash-3.2# iscsiadm add discovery-address
-bash-3.2# iscsiadm modify discovery --sendtargets enable
-bash-3.2# devfsadm

Now the disk should show up with format.

This entry was posted in Uncategorized. Bookmark the permalink.

Comments are closed.