手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

红帽企业存储管理之iSCSI简单应用

[日期:2012-05-07] 来源:Linux社区  作者:xjzhujunjie [字体:大 中 小]
配置身份验证机制:

[root@target-server ~]# tgtadm --lld iscsi --op bind --mode target --tid 1 --initiator-address 192.168.101.0/24

[root@target-server ~]# tgtadm --lld iscsi --op show --mode target

Target 1: iqn.2012-05-22.com.junjie.node1:target

    System information:

        Driver: iscsi

        State: ready

    I_T nexus information:

    LUN information:

        LUN: 0

            Type: controller

            SCSI ID: deadbeaf1:0

            SCSI SN: beaf10

            Size: 0 MB

            Online: Yes

            Removable media: No

            Backing store: No backing store

        LUN: 1

            Type: disk

            SCSI ID: deadbeaf1:1

            SCSI SN: beaf11

            Size: 1012 MB

            Online: Yes

            Removable media: No

            Backing store: /dev/sda4

    Account information:

    ACL information:

        192.168.101.0/24

此时的所有配置为临时配置,开机重启会丢失的,若要永久保持,又如下:2中方法
方法1:将以上脚本写到开机启动脚本中:/etc/rc.d/rc.local
方法2:开机启动

[root@target-server ~]# vim /etc/tgt/targets.conf

linux
相关资讯       iSCSI 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款