Chinaunix
标题:
HBA 连接 soft iscsi lun 问题
[打印本页]
作者:
mercuyr
时间:
2011-07-18 18:15
标题:
HBA 连接 soft iscsi lun 问题
两台机器 A 和 B
I. 在A上安装了scsi-target-utils 并用它使用本地磁盘做了一个soft iscsi lun, 步骤如下:
1. dd if=/dev/zero of=/opt/softiscsi.img bs=1M count=15000
2. vi /etc/tgt/targets.conf
修改其中带backing-store 的那3行:
<target iqn.2008-09.com.test:iscsi>
backing-store /opt/softiscsi.img
</target>
3. tgt-admin -s 能正确看到lun
Target 1: iqn.2008-09.com.test:iscsi
System information:
Driver: iscsi
State: ready
I_T nexus information:
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Readonly: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 16777 MB, Block size: 512
Online: Yes
Removable media: No
Readonly: No
Backing store type: rdwr
Backing store path: /opt/softiscsi.img
Backing store flags:
Account information:
ACL information:
ALL
II. 在机器B上, 安装HBA卡,设置HBA. HBA里面能正确连上机器A的lun.
但是退出HBA 正常从BIOS启动 不能使用HBA里连的A机器上的lun作为启动设备。
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2