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:
Enable iSCSI service and recheck service status: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#
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#
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.
These information were very easy to understand. They were very useful for my business. Keep up the good work.
ReplyDeleteCloud Migration Services
AWS Cloud Migration Services
Azure Cloud Migration Services
VMware Cloud Migration Services
Cloud Migration tool
Database Migration Services
Cloud Migration Services