Thursday, March 6, 2014

Set up openfiler as dynamic iscsi target in solaris server

This post is taking about to setting up dynamic ISCSI target to access from solaris host , here i am providing some screenshot for same.

I have configured and tested in my environment , These are the steps to configured dynamic ISCSI target.


Check iscsi service is running or not:
bash-3.2# svcs -a | grep -i iscsi
STATE          STIME    FMRI
disabled       18:59:33 svc:/system/iscsitgt:default
disabled       18:59:59 svc:/network/iscsi/initiator:default
bash-3.2#
Enable the iscsi service:
bash-3.2# svcadm enable svc:/network/iscsi/initiator:default
bash-3.2#
Check again to confirm the status of iscsi service:
bash-3.2# svcs -a | grep -i iscsi
STATE          STIME    FMRI
disabled       18:59:33 svc:/system/iscsitgt:default
online       18:59:59 svc:/network/iscsi/initiator:default
bash-3.2#
Check the current status of send target mode:
bash-3.2# iscsiadm list discovery
Discovery:
        Static: disabled
        Send Targets: disabled
        iSNS: disabled
bash-3.2#
Enable send target mode:
bash-3.2# iscsiadm modify discovery --sendtargets enable
bash-3.2#
Check the status again to confirm :
bash-3.2# iscsiadm list discovery
Discovery:
        Static: disabled
        Send Targets: enabled
        iSNS: disabled
bash-3.2#
Add the IP address of your iscsi target:
bash-3.2# iscsiadm add discovery-address 192.168.10.30
bash-3.2#
Check the status of discovery-address:
bash-3.2# iscsiadm list discovery-address
Discovery Address: 192.168.10.30:3260
bash-3.2# iscsiadm list target
Target: iqn.2006-01.com.openfiler:tsn.46012d2a5365
        Alias: -
        TPGT: 1
        ISID: 4000002a0000
        Connections: 1
bash-3.2#
Scan and Detect the iscsi disks in OS level running with devfsadm command:
Current Status:
bash-3.2# echo | format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0d0 
          /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
Specify disk (enter its number): Specify disk (enter its number): 
bash-3.2# devfsadm -C -i iscsi
After running devfsadm:
bash-3.2# echo | format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
   0. c0d0 
      /pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
   1. c3t1d0 
      /iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.46012d2a53650001,0
   2. c3t2d0 
      /iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.46012d2a53650001,1
Specify disk (enter its number): Specify disk (enter its number): 
bash-3.2#
Thanks for reading this article...

0 comments:

Post a Comment