iscsi服务端配置(rhel5.5)(2)

[root@ex333server tgt]# service tgtd restart
Stopping SCSI target daemon: Stopping target framework daemon
                                                           [  OK  ]
Starting SCSI target daemon: Starting target framework daemon

[root@ex333server tgt]# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2012-05.com.example:ex333server.demo
    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
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: None
        LUN: 1
            Type: disk
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 4 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: /dev/vg_iscsi/lv_iscsi_demo
    Account information:
    ACL information:
        192.168.221.0/24
Target 2: iqn.2012-05.com.example:ex333server.target244
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00020000
            SCSI SN: beaf20
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: None
        LUN: 1
            Type: disk
            SCSI ID: IET     00020001
            SCSI SN: beaf21
            Size: 4 MB
            Online: Yes
            Removable media: No
            Backing store type: rdwr
            Backing store path: /dev/vg_iscsi/lv_iscsi_244
    Account information:
    ACL information:
        192.168.221.244
[root@ex333server tgt]#


找台244的虚机当客户端测试下:
[root@localhost rules.d]# ifconfig bond0
bond0     Link encap:Ethernet  HWaddr 00:0C:29:F7:5A:00 
          inet addr:192.168.221.244  Bcast:192.168.221.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fef7:5a00/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:11680 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6070 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6193467 (5.9 MiB)  TX bytes:901920 (880.7 KiB)

yum install iscsi-initiator-utils.x86_64
service iscsi restart
chkconfig iscsi on

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/416a1bf2a5fd34cb56bcd15a8be87d8e.html