Solaris10配置iscsi initiator
存储采用openfiler,已经配置好lun。
openfiler配置信息表
配置项 | 取值 |
IP地址 | 10.0.22.1 |
target | iqn.2006-01.com.openfiler:tsn.9a0dc3413c15 |
主机端采用静态配置target的方式。
设置initiator别名
此步骤不是必须的。
root@test2 # iscsiadm modify initiator-node -A test2
root@test2 # iscsiadm list initiator-node
Initiator node name: iqn.1986-03.com.sun:01:eacfccf7ffff.50403c2b
Initiator node alias: test2
Login Parameters (Default/Configured):
Header Digest: NONE/-
Data Digest: NONE/-
Authentication Type: NONE
RADIUS Server: NONE
RADIUS access: unknown
Tunable Parameters (Default/Configured):
Session Login Response Time: 60/-
Maximum Connection Retry Time: 180/-
Login Retry Time Interval: 60/-
Configured Sessions: 1
增加静态配置target
root@test2 # iscsiadm add static-config iqn.2006-01.com.openfiler:tsn.9a0dc3413c15,10.0.22.1
root@test2 # iscsiadm list static-config
Static Configuration Target: iqn.2006-01.com.openfiler:tsn.9a0dc3413c15,10.0.22.1:3260
修改discovery,启用static配置
root@test2 # iscsiadm list discovery
Discovery:
Static: disabled
Send Targets: disabled
iSNS: disabled
root@test2 # iscsiadm modify discovery -s enable
root@test2 # iscsiadm list discovery
Discovery:
Static: enabled
Send Targets: disabled
iSNS: disabled
让solaris扫描iscsi设备
root@test2 # devfsadm -c iscisi
root@test2 # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <DEFAULT cyl 4174 alt 2 hd 255 sec 63>
/pci@0,0/pci15ad,1976@10/sd@0,0
1. c3t2d0 <DEFAULT cyl 2045 alt 2 hd 128 sec 32>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.9a0dc3413c150001,0
2. c3t3d0 <DEFAULT cyl 2045 alt 2 hd 128 sec 32>
/iscsi/disk@0000iqn.2006-01.com.openfiler%3Atsn.9a0dc3413c150001,1