Wednesday, December 12, 2012

Quick way to add iscsi device in Solaris 10

bash-3.2#  iscsiadm modify discovery --static enable
bash-3.2#  iscsiadm list discovery
Discovery:
        Static: enabled
        Send Targets: disabled
        iSNS: disabled
bash-3.2# iscsiadm add discovery-address 192.168.214.200:3260
bash-3.2# iscsiadm list discovery-address -v;
Discovery Address: 192.168.214.200:3260
        Target name: iqn.2011-03.example.org.istgt:freenas
                Target address: 192.168.214.200:3260, 1
bash-3.2# iscsiadm add static-config iqn.2011-03.example.org.istgt:freenas,192.168.214.200:3260
bash-3.2# format

Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0
          /pci@0,0/pci15ad,1976@10/sd@0,0
       1. c2t2d0
          /iscsi/disk@0000iqn.2011-03.example.org.istgt%3Afreenas0001,0
       2. c2t3d0
          /iscsi/disk@0000iqn.2011-03.example.org.istgt%3Afreenas0001,1
       3. c2t4d0
          /iscsi/disk@0000iqn.2011-03.example.org.istgt%3Afreenas0001,2
       4. c2t5d0
          /iscsi/disk@0000iqn.2011-03.example.org.istgt%3Afreenas0001,3
       5. c2t6d0
          /iscsi/disk@0000iqn.2011-03.example.org.istgt%3Afreenas0001,4
Specify disk (enter its number):

Reference: http://sys-admin.wikidot.com/iscsi-solaris

No comments:

Post a Comment