iSCSI on Solaris
Following our iSCSI implementation tests on Netapp/Linux, me and my co-worker decided to take a swing at trying this on our Solaris “play” boxes. Since some of our test Blades were running different beta/GA versions of Solaris 10, we started out on one of them. First we downloaded the Cisco iSCSI 3.3.6 driver for Solaris from the Cisco site. After installing it and configuring it on our Sun Blade 100 running Solaris 10 (3/05) just like how we did in our Linux implementation, we fired it up and immediately noticed the following error messages:
# tail var/adm/messages
Jun 13 23:36:40 saratoga iscsid[1490]: [ID 702911 daemon.notice] version 3.3.6 ( 1-Jun-2004)
Jun 13 23:36:40 saratoga iscsid[1491]: [ID 702911 daemon.notice] config entry 90910 sendtargets 916f8 = filer.tigr.org:3260
Jun 13 23:36:40 saratoga iscsid[1496]: [ID 702911 daemon.notice] iSCSI normal session to iqn.1992-08.com.netapp:sn.11111111 estabished
Jun 13 23:36:40 saratoga iscsid[1496]: [ID 702911 daemon.notice] logged into target iqn.1992-08.com.netapp:sn.11111111 — id 0, Initiator sid 00023d000001, target sid 1530
Jun 13 23:36:40 saratoga iscsi: [ID 908655 kern.notice] NOTICE: Couldn’t claim target 0 on iSCSI bus 0 - bus not attached
Jun 13 23:36:40 saratoga iscsid[1496]: [ID 702911 daemon.notice] iSCSI HBA not yet attached - retrying target 0
Bummer. Couldn’t claim target ? hmm..
:( - Must be a Solaris 10 thing,# iscsi-ls
********************************************************************************
TARGET NAME iqn.1992-08.com.netapp:sn.11111111
Session for above target not yet established
********************************************************************************
# cat /etc/release
Solaris 10 3/05 s10_74L2a SPARC
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 January 2005
While I was reading the RFC and looking at the linux source code for possible clues, Eddy went out and installed the same driver on a Solaris 9 box. Again, same exact steps as above with different results.
# cat /etc/release
Solaris 9 4/04 s9s_u6wos_08a SPARC
Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
Use is subject to license terms.
Assembled 22 March 2004# tail /var/adm/messages
Jun 13 16:42:57 bugler iscsimod: [ID 851007 kern.notice] NOTICE: iSCSIs: bus 0 tgt 0 lun 0, Cmd 0x00, Sense
Jun 13 16:42:57 bugler iscsimod: [ID 653037 kern.notice] f0000600 0000000a 00000000 29000000 0000
Jun 13 16:42:57 bugler iscsimod: [ID 851007 kern.notice] NOTICE: iSCSIs: bus 0 tgt 0 lun 0, Cmd 0x4d, Sense
Jun 13 16:42:57 bugler iscsimod: [ID 653037 kern.notice] f0000500 0000000a 00000000 20000000 0000
Jun 13 16:42:57 bugler scsi: [ID 193665 kern.info] sd1 at iscsi0: target 0 lun 0
Jun 13 16:42:57 bugler genunix: [ID 936769 kern.info] sd1 is iscsipseudo/iscsi@0/sd@0,0
Jun 13 16:42:57 bugler scsi: [ID 107833 kern.warning] WARNING: /iscsipseudo/iscsi@0/sd@0,0 (sd1):
Jun 13 16:42:57 bugler Corrupt label; wrong magic number
Hello! So the next thing to do is to issue a devfsadm command to Solaris to build the device pathnames so we can start accessing the disk.
# devfsadm -Cv
# format
Searching for disks…doneAVAILABLE DISK SELECTIONS:
0. c0t0d0
/pci@1f,0/pci@1,1/ide@3/dad@0,0
1. c1t0d0
/iscsipseudo/iscsi@0/sd@0,0
Specify disk (enter its number):
So far so good.