Showing posts with label Storage. Show all posts
Showing posts with label Storage. Show all posts

Tuesday, March 11, 2014

How to add Static iSCSI targets in Solaris-shared storage setup

This post explains about adding the static iSCSI target in Solaris host. After configured your openfiler software just you have to map those LUN's to specific target in order to access the LUN's in operating system level. From Solaris OS end just we need to configure those targets in OS level to see all the Lun's / disks.Here i am giving step by step manner with screenshot.

How to add the static iSCSI target in Solaris OS in detailed.

Check iSCSI service status:
bash-3.2# svcs -a | grep -i iscsitgt
STATE          STIME    FMRI
disabled       18:59:33 svc:/system/iscsitgt:default
bash-3.2#
Enable iSCSI service and recheck service status:
bash-3.2# svcadm enable svc:/system/iscsitgt:default
bash-3.2# svcs -a | grep -i iscsitgt
STATE          STIME    FMRI
online       19:30:20 svc:/system/iscsitgt:default
bash-3.2#
Check target mode current status:
bash-3.2# iscsiadm list discovery
Discovery:
        Static: disabled
        Send Targets: disabled
        iSNS: disabled
bash-3.2#
Enable Static target mode and check the status:
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#
Add static target which your seeing target number in your openfiler:
bash-3.2# iscsiadm add static-config iqn.2006-01.com.openfiler:tsn.46012d2a5365,192.168.10.30:3260
bash-3.2# iscsiadm list static-config
Static Configuration Target: iqn.2006-01.com.openfiler:tsn.46012d2a5365,192.168.10.30:3260
bash-3.2#
Scan the iSCSI LUN's / Disk:
bash-3.2# devfsadm -C -i iscsi
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. c0d1 
    /pci@0,0/pci-ide@7,1/ide@0/cmdk@1,0
 2. c3t1d0 
    /iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.46012d2a53650001,0
 3. c3t2d0 
    /iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.46012d2a53650001,1
Specify disk (enter its number): Specify disk (enter its number): 
bash-3.2#

Now we have shared / configured storage setup and we can add multiple target for same LUNS and that will act as alternative path for those LUNS. So we can practice multi-pathing as well. 

Thank you for reading this article.

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...