免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3029 | 回复: 0
打印 上一主题 下一主题

[存储网络] HBA 连接 soft iscsi lun 问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-07-18 18:15 |只看该作者 |倒序浏览
两台机器 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作为启动设备。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP