Skip to content
Home » Solaris » How to Configure iSCSI Disk on Solaris

How to Configure iSCSI Disk on Solaris

For Linux database servers, you may check: How to Build 19c RAC - 1 of 4 - Preparing Two Database Servers.

First of all, let's see our Solaris release.

# cat /etc/release
                    Oracle Solaris 10 1/13 s10x_u11wos_24a X86
  Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
                            Assembled 17 January 2013

It's Solaris 10 1/13.

Make sure required packages are present.

# pkginfo SUNWiscsiu SUNWiscsir
system      SUNWiscsir Sun iSCSI Device Driver (root)
system      SUNWiscsiu Sun iSCSI Management Utilities (usr)

Additionally, make sure the minimum fix of iSCSI is patched.

# showrev -p | grep 119091
Patch: 147144-17 Obsoletes: 119091-35, 120183-06, 120347-09, 121981-03, 123501-02, 125185-11, 125389-04, 125391-02, 128147-03, 12    8149-01, 139605-06, 141875-10, 141879-11, 143646-16, 143648-10, 145958-11, 146233-22, 148095-06 Requires: 118855-36, 119043-09, 1    19131-33, 121902-01, 125082-13, 142910-04, 147148-11 Incompatibles:  Packages: SUNWfctl, SUNWiscsir, SUNWiscsiu, SUNWfcmdb, SUNWc    fcl, SUNWfcsm, SUNWcfclr, SUNWfchba, SUNWfcip, SUNWmpathadmr, SUNWfcp

Check current initiator

# iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:7a01dbf7ffff.5e348510
Initiator node alias: primary01
        Login Parameters (Default/Configured):
                Header Digest: NONE/-
                Data Digest: NONE/-
        Authentication Type: NONE
        RADIUS Server: 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: 1

Make discovery method static.

# iscsiadm modify discovery --static enable

Make sure iSCSI storage can be connected.

# ping 10.128.110.101
10.128.110.101 is alive

Discover the targets.

# iscsiadm add discovery-address 10.128.110.101:3260

List the discovery result.

# iscsiadm list discovery-address -v 10.128.110.101
Discovery Address: 10.128.110.101:3260
        Target name: iqn.2005-10.org.freenas.ctl:asm-t1
                Target address:  10.128.110.101:3260, 65535

Add discovered targets to discovery table.

# iscsiadm add static-config iqn.2005-10.org.freenas.ctl:asm-t1,10.128.110.101

List the details of a specific target.

# iscsiadm list target -S iqn.2005-10.org.freenas.ctl:asm-t1
Target: iqn.2005-10.org.freenas.ctl:asm-t1
        Alias: asm-t1
        TPGT: 2
        ISID: 4000002a0000
        Connections: 1
        LUN: 3
             Vendor:  FreeBSD
             Product: iSCSI Disk
             OS Device Name: /dev/rdsk/c3t6589CFC000000E688DF262B36EF99309d0s2
        LUN: 2
             Vendor:  FreeBSD
             Product: iSCSI Disk
             OS Device Name: /dev/rdsk/c3t6589CFC000000D7B56F1C00083126659d0s2
        LUN: 1
             Vendor:  FreeBSD
             Product: iSCSI Disk
             OS Device Name: /dev/rdsk/c3t6589CFC000000A2E2E6C55D90EED7093d0s2
        LUN: 0
             Vendor:  FreeBSD
             Product: iSCSI Disk
             OS Device Name: /dev/rdsk/c3t6589CFC000000A848F311CA40666444Ad0s2

Now we have 4 new iSCSI disks.

Leave a Reply

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