任务
|
说明
|
参考
|
1. 确定 iSCSI 软件和硬件要求。
|
确定有关设置基于 iSCSI 的存储网络的软件和硬件要求。
|
iSCSI 软件和硬件要求
|
2. 设置 iSCSI 目标设备。
|
连接并设置 iSCSI 目标设备。
|
有关设置说明,请参见供应商的 iSCSI 目标设备文档。
|
3. 准备 Solaris iSCSI 配置
|
确保已安装正确的软件版本和硬件。
|
如何准备 Solaris iSCSI 配置
|
4. (可选)在 Solaris iSCSI 配置中设置验证。
|
决定是否要在 Solaris iSCSI 配置中使用验证:
|
|
考虑使用单向 CHAP 还是双向 CHAP
|
如何配置对 iSCSI 配置的 CHAP 验证
|
|
考虑使用第三方 RADIUS 服务器简化 CHAP 管理。
|
如何为 iSCSI 配置配置 RADIUS
|
|
5. 配置 iSCSI 目标搜索方法。
|
选择最适合于您所在环境的 iSCSI 目标搜索方法。
|
如何配置 iSCSI 目标搜索
|
6. (可选)删除已搜索到的 iSCSI 目标。
|
可能需要删除已搜索到的 iSCSI 目标。
|
如何删除搜索到的 iSCSI 目标
|
7. 监视 iSCSI 配置。
|
使用 iscsiadm 命令监视 iSCSI 配置。
|
监视 iSCSI 配置
|
8. (可选)修改 iSCSI 配置。
|
可能需要更改 iSCSI 目标设置,如头和数据摘要参数。
|
如何修改 iSCSI initiator和目标参数
|
9. (可选)对目标启用多个 iSCSI 会话
|
使用此过程可以创建与单个目标连接的多个 iSCSI 会话。
|
如何为目标启用多个 iSCSI 会话
|
术语
|
说明
|
initiator
|
用于启动对 iSCSI 目标的 SCSI 请求的驱动程序。
|
目标设备
|
表示 iSCSI 存储组件。
|
搜索
|
搜索是指为initiator提供可用目标列表的过程
|
搜索方法
|
找到 iSCSI 目标的方法。当前有三种可用方法:
Internet 存储名称服务 (Internet Storage Name Service, iSNS)-通过与一个或多个 iSNS 服务器进行交互来搜索潜在目标。
SendTargets-通过使用
discovery-address 来搜索潜在目标。
静态-静态目标地址已配置。
|
#
pkginfo SUNWiscsiu SUNWiscsir
system SUNWiscsiu Sun iSCSI Device Driver (root)
system SUNWiscsir Sun iSCSI Management Utilities (usr)
|
#
iscsiadm modify initiator-node --CHAP-secret
|
#
iscsiadm modify initiator-node --CHAP-name
new-CHAP-name
|
#
iscsiadm modify initiator-node --authentication CHAP
|
#
iscsiadm modify target-param -B enable eui.5000ABCD78945E2B
|
#
iscsiadm modify target-param --authentication CHAP eui.5000ABCD78945E2B
|
#
iscsiadm modify target-param --CHAP-secret eui.5000ABCD78945E2B
|
# iscsiadm modify target-param --CHAP-name target-CHAP-name
|
#
iscsiadm modify initiator-node --radius-server 10.0.0.72:1812
|
#
iscsiadm modify initiator-node --radius-shared-secret
|
#
iscsiadm modify initiator-node --radius-access enable
|
#
iscsiadm add discovery-address 10.0.0.1:3260
|
#
iscsiadm add iSNS-server 10.0.0.1:3205
|
#
iscsiadm add static-config eui.5000ABCD78945E2B,10.0.0.1
|
#
iscsiadm modify discovery --sendtargets enable
|
#
iscsiadm modify discovery --isns enable
|
#
iscsiadm modify discovery --static enable
|
#
devfsadm -i iscsi
|
#
iscsiadm modify discovery --sendtargets disable
|
#
iscsiadm modify discovery --iSNS disable
|
#
iscsiadm modify discovery --static disable
|
#
iscsiadm remove discovery-address 10.0.0.1:3260
|
#
iscsiadm remove isns-server 10.0.0.1:3205
|
#
iscsiadm remove static-config eui.5000ABCD78945E2B,10.0.0.1
|
logical unit in use
|
#
format
AVAILABLE DISK SELECTIONS:
0. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e010685cf1,0
1. c0t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0106e3ba1,0
2. c3t0d0 <ABCSTORAGE-100E-00-2.2 cyl 20813 alt 2 hd 16 sec 63>
/iscsi/[email protected]%3A6-8a0900-477d70401-
b0fff044352423a2-hostname-020000,0
3. c3t1d0 <ABCSTORAGE-100E-00-2.2 cyl 20813 alt 2 hd 16 sec 63>
/iscsi/[email protected]%3A6-8a0900-3fcd70401
-085ff04434f423a2-hostname-010000,0
.
21. c4t60A98000686F694B2F59775733426B77d0 <ABCSTORAGE-LUN-0.2 cyl
4606 alt 2 hd 16 sec 256>
/scsi_vhci/ssd@g60a98000686f694b2f59775733426b77
22. c4t60A98000686F694B2F59775733434C41d0 <ABCSTORAGE-LUN-0.2 cyl
4606 alt 2 hd 16 sec 256>
/scsi_vhci/ssd@g60a98000686f694b2f59775733434c41
|
#
iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:0003ba4d233b.425c293c
Initiator node alias: zzr1200
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS access: unknown
Configured Sessions: 1
|
#
iscsiadm list discovery
Discovery:
Static: enabled
Send Targets: enabled
iSNS: enabled
|
#
iscsiadm list target-param iqn.1992-08.com.abcstorage:sn.33592219
Target: iqn.1992-08.com.abcstorage:sn.33592219
|
#
iscsiadm list target-param -v eui.50060e8004275511 Target: eui.50060e8004275511
Alias: -
Bi-directional Authentication: disabled
Authentication Type: NONE
Login Parameters (Default/Configured):
Data Sequence In Order: yes/-
Data PDU In Order: yes/-
Default Time To Retain: 20/-
Default Time To Wait: 2/-
Error Recovery Level: 0/-
First Burst Length: 65536/-
Immediate Data: yes/-
Initial Ready To Transfer (R2T): yes/-
Max Burst Length: 262144/-
Max Outstanding R2T: 1/-
Max Receive Data Segment Length: 65536/-
Max Connections: 1/-
Header Digest: NONE/-
Data Digest: NONE/-
Configured Sessions: 1
|
#
iscsiadm list target -v eui.50060e8004275511
Target: eui.50060e8004275511
TPGT: 1
ISID: 4000002a0000
Connections: 1
CID: 0
IP address (Local): 172.90.101.71:32813
IP address (Peer): 172.90.101.40:3260
Discovery Method: Static
Login Parameters (Negotiated):
Data Sequence In Order: yes
Data PDU In Order: yes
Default Time To Retain: 0
Default Time To Wait: 3
Error Recovery Level: 0
First Burst Length: 65536
Immediate Data: yes
Initial Ready To Transfer (R2T): yes
Max Burst Length: 262144
Max Outstanding R2T: 1
Max Receive Data Segment Length: 65536
Max Connections: 1
Header Digest: NONE
Data Digest: NONE
|
#
iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:0003ba4d233b.425c293c
Initiator node alias: zzr1200
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS access: unknown
Configured Sessions: 1
|
#
iscsiadm list target-param -v iqn.1992-08.com.abcstorage:sn.84186266
Target: iqn.1992-08.com.abcstorage:sn.84186266
Alias: -
Bi-directional Authentication: disabled
Authentication Type: NONE
Login Parameters (Default/Configured):
Data Sequence In Order: yes/-
Data PDU In Order: yes/-
Default Time To Retain: 20/-
Default Time To Wait: 2/-
Error Recovery Level: 0/-
First Burst Length: 65536/-
Immediate Data: yes/-
Initial Ready To Transfer (R2T): yes/-
Max Burst Length: 262144/-
Max Outstanding R2T: 1/-
Max Receive Data Segment Length: 65536/-
Max Connections: 1/-
Header Digest: NONE/-
Data Digest: NONE/-
Configured Sessions: 1
|
#
iscsiadm modify initiator-node -h CRC32
|
#
iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:0003ba4d233b.425c293c
Initiator node alias: zzr1200
Login Parameters (Default/Configured):
Header Digest: NONE/CRC32
Data Digest: NONE/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS access: unknown
Configured Sessions: 1
|
# iscsiadm list target-param -v iqn.1992-08.com.abcstorage:sn.84186266
Target: iqn.1992-08.com.abcstorage:sn.84186266
Alias: -
Bi-directional Authentication: disabled
Authentication Type: NONE
Login Parameters (Default/Configured):
Data Sequence In Order: yes/-
Data PDU In Order: yes/-
Default Time To Retain: 20/-
Default Time To Wait: 2/-
Error Recovery Level: 0/-
First Burst Length: 65536/-
Immediate Data: yes/-
Initial Ready To Transfer (R2T): yes/-
Max Burst Length: 262144/-
Max Outstanding R2T: 1/-
Max Receive Data Segment Length: 65536/-
Max Connections: 1/-
Header Digest: CRC32/-
Data Digest: NONE/-
Configured Sessions: 1
|
#
iscsiadm list target -v iqn.1992-08.com.abcstorage:sn.84186266
Target: iqn.1992-08.com.abcstorage:sn.84186266
TPGT: 2
ISID: 4000002a0000
Connections: 1
CID: 0
IP address (Local): nnn.nn.nn.nnn:64369
IP address (Peer): nnn.nn.nn.nnn:3260
Discovery Method: SendTargets
Login Parameters (Negotiated):
.
.
.
Header Digest: CRC32
Data Digest: NONE
|
#
iscsiadm modify target-param -h none iqn.1992-08.com.abcstorage:sn...
|
#
iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:0003ba4d233b.425c293c
Initiator node alias: zzr1200
Configured Sessions: 1
|
#
iscsiadm list target-param -v iqn.1992-08.com.abcstorage:sn.84186266
Target: iqn.1992-08.com.abcstorage:sn.84186266
Alias: -
.
Configured Sessions: 1
|
#
iscsiadm modify initiator-node -c 2
|
#
iscsiadm modify target-param -c 2 iqn.1992-08.com.abcstorage:sn.84186266
|
#
iscsiadm modify initiator-node -c 10.0.0.1,10.0.0.2
|
#
iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:0003ba4d233b.425c293c
Initiator node alias: zzr1200
.
Configured Sessions: 2
|
#
iscsiadm list target-param -v iqn.1992-08.com.abcstorage:sn.84186266
Target: iqn.1992-08.com.abcstorage:sn.84186266
Alias: -
.
Configured Sessions: 2
|
#
iscsiadm list target
Target: iqn.2001-05.com.abcstorage:6-8a0900-37ad70401-bcfff02df8a421df-zzr1200-01
TPGT: default
ISID: 4000002a0000
Connections: 0
|
#
iscsiadm list discovery-address -v 10.0.0.1
Discovery Address: 10.0.0.1:3260
Target name: eui.210000203787dfc0
Target address: 10.0.0.1:11824
Target name: eui.210000203787e07b
Target address: 10.0.0.1:11824
|
#
iscsiadm list isns-server -v
iSNS Server IP Address: 10.20.56.56:3205
Target name: iqn.1992-08.com.xyz:sn.1234566
Target address: 10.20.57.161:3260, 1
Target name: iqn.2003-10.com.abc:group-0:154:abc-65-01
Target address: 10.20.56.206:3260, 1
Target name: iqn.2003-10.com.abc:group-0:154:abc-65-02
Target address: 10.20.56.206:3260, 1
.
.
.
|
#
iscsiadm list target -S
Target: iqn.2001-05.com.abcstorage:6-8a0900-37ad70401-bcfff02df8a421df-zzr1200-01
TPGT: default
ISID: 4000002a0000
Connections: 1
LUN: 0
Vendor: ABCSTOR
Product: 0010
OS Device Name: /dev/rdsk/c3t34d0s2
|
iscsi
TYPE (
OID)
STRING (
STATUS-CLASS#/
STATUS-DETAIL#)
|