要成功配置 HP-UX iSCSI 启动器,就需要了解 HP 需求并执行特定步骤。
# PATH=$PATH:/opt/iscsi/bin
#iscsiutil -l Initiator Name : iqn.2001-04.com.hp.stor:svcio Initiator Alias : Authentication Method : None CHAP Method : CHAP_UNI Initiator CHAP Name : CHAP Secret : NAS Hostname : NAS Secret : Radius Server Hostname : Header Digest : None,CRC32C (default) Data Digest : None,CRC32C (default)SLP Scope list for iSLPD :
iscsiutil -i -N <initiator name in iqn or eui format>
# iscsiutil -a -I 192.168.1.149 Target address "192.168.1.149:3260,1" has been successfully added.
# iscsiutil -pD
Discovery Target Information ---------------------------- Target # 1 --------- IP Address : 192.168.1.149 iSCSI TCP Port : 3260 iSCSI Portal Group Tag : 1 User Configured: ---------------- Authenticaton Method : None CHAP Method : CHAP_UNI Initiator CHAP Name : CHAP Secret : Header Digest : None,CRC32C (default) Data Digest : None,CRC32C (default)
# /usr/sbin/ioscan -NH 64000
H/W Path Class Description
==================================================
64000/0x0 usbmsvbus USB Mass Storage
64000/0x0/0x0 escsi_ctlr USB Mass Storage Virt Ctlr
64000/0x0/0x0.0x0 tgtpath usb target served by usb_ms_scsi driver
64000/0x0/0x0.0x0.0x0 lunpath LUN path for disk9
64000/0x2 iscsi iSCSI Virtual Root
64000/0x2/0x0 escsi_ctlr iSCSI Virtual Controller
64000/0x2/0x0.0x10 tgtpath iscsi target served by isvctlr driver
64000/0x2/0x0.0x10.0x0 lunpath LUN path for disk586
64000/0xfa00 esvroot Escsi virtual root
64000/0xfa00/0x0 disk HP DG146BABCF
64000/0xfa00/0x1 disk HP DG146BABCF
64000/0xfa00/0x2 disk HP DG146BABCF
64000/0xfa00/0x3 disk HP DG146BABCF
64000/0xfa00/0x4 disk TEAC DVD-ROM DW-224EV
64000/0xfa00/0xae disk IBM 2145
# iscsiutil -pO
Operational Target Information
------------------------------
Target # 1
-----------
Target Name : iqn.1986-03.com.ibm:2145.LodestHP99.node1
Target Alias :
No. of Target Addresses : 1
Target Address # 1
-------------------
IP Address : 192.168.1.149
iSCSI TCP Port : 3260
iSCSI Portal Group Tag : 1
User Configured:
----------------
Authenticaton Method : None
CHAP Method : CHAP_UNI
Initiator CHAP Name :
CHAP Secret :
Header Digest : None,CRC32C (default)
Data Digest : None,CRC32C (default)
# ioscan -kfnC disk
Class I H/W Path Driver S/W State H/W Type Description
=======================================================================
disk 0 0/1/1/0.0.0.0.0 sdisk CLAIMED DEVICE HP DG146BABCF
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0.1.0 sdisk CLAIMED DEVICE HP DG146BABCF
/dev/dsk/c0t1d0 /dev/rdsk/c0t1d0
disk 3 0/1/1/0.0.0.2.0 sdisk CLAIMED DEVICE HP DG146BABCF
/dev/dsk/c0t2d0 /dev/rdsk/c0t2d0
disk 2 0/1/1/0.0.0.3.0 sdisk CLAIMED DEVICE HP DG146BABCF
disk 485 255/0/16.0.0.0 sdisk CLAIMED DEVICE IBM 2076
/dev/dsk/c15t0d0 /dev/rdsk/c15t0d0
disk 8 255/1/0.0.0 sdisk CLAIMED DEVICE TEAC DVD-ROM
DW-224EV /dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
diskinfo -v <disk>
iscsiutil -d -I <ip>