Prepare for a Solaris iSCSI Configuration
Verify that the iSCSI software packages are installed.
# pkginfo SUNWisciu SUNWiscsir system SUNWiscsiu Sun iSCSI Device Driver (root) system SUNWiscsir Sun iSCSI Management Utilities (usr)
Verify that you are running a Solaris release that supports the iSCSI protocol.
Solaris 10 7/05 release or late
% cat /etc/release Solaris 10 7/05 X86 Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 03 March 2005
Solaris 10 release with the iSCSI patch
On a SPARC system:
# showrev -p | grep 119090
On an x86 system:
# showrev -p | grep 119091
** Configure iSCSI Target Discovery**
Configure the SendTargets device discovery method or the static discovery method:
# iscsiadm add discovery-address 10.0.0.1:326
Enable the iSCSI target discovery method using one of the following:
# iscsiadm modify discovery --sendtargets enable
Create the iSCSI device links for the local system.
# devfsadm -i iscsi======================================================
Note: How to Remove Discovered iSCSI Targets
Disable an iSCSI target discovery method using one of the following:
iscsiadm modify discovery --sendtargets disable
Remove an iSCSI device discovery entry:
iscsiadm remove discovery-address 10.0.0.1:3260=======================================================
Accessing iSCSI Disks
After the devices have been discovered by the Solaris iSCSI initiator, the login negotiation occurs automatically. The Solaris iSCSI driver determines that the number of LUNs available and creates the device nodes. Then, the iSCSI devices can be treated as any other SCSI device.
You can view the iSCSI disks on the local system with the format utility.
AVAILABLE DISK SELECTIONS: 0. c0t0d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@780/pci@0/pci@9/scsi@0/sd@0,0 1. c0t1d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@780/pci@0/pci@9/scsi@0/sd@1,0 2. c0t2d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@780/pci@0/pci@9/scsi@0/sd@2,0 3. c0t3d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> /pci@780/pci@0/pci@9/scsi@0/sd@3,0 4. c2t6090A078407041F52DE03441A471CD96d0 <EQLOGIC-100E-00-5.0 cyl 65533 alt 2 hd 16 sec 200> /scsi_vhci/ssd@g6090a078407041f52de03441a471cd96
Make UFS filesystem and mount it.
newfs /dev/dsk/c2t6090A078407041F52DE03441A471CD96d0/s6 mount c2t6090A078407041F52DE03441A471CD96d0/s6 /mnt/iscsi
Comments
There are currently no comments
New Comment