免费注册 查看新帖 |

Chinaunix

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

[存储网络] iscsi-target,tgtd服务的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-06-06 17:25 |只看该作者 |倒序浏览
各位好,
     本人在使用tgtd服务的时候出现了以下问题,望大神帮助。
OS:CentOS release 5.9 (Final)
已安装#yum install scsi-target-utils
磁盘信息:
分配/dev/sda4   
[root@hv1 ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        2636    20972857+  83  Linux
/dev/sda3            2637        3681     8393962+  82  Linux swap / Solaris
/dev/sda4            3682      121601   947192400   8e  Linux LVM
[root@hv1 ~]#

服务端:
[root@hv1 ~]# tgt-admin -s
Target 1: iqn.2013-06-02.onappdata:data1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 3
            Initiator: iqn.1994-05.com.redhat:d56c5d8ffeb
            Connection: 0
                IP Address: 192.168.1.10
    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: 969925 MB, Block size: 512
            Online: Yes
            Removable media: No
            Readonly: No
            Backing store type: rdwr
            Backing store path: /dev/sda4
            Backing store flags:
    Account information:
    ACL information:
        ALL
[root@hv1 ~]#

配置文件:
default-driver iscsi
<target iqn.2013-06-02.onappdata:data1>
    backing-store /dev/sda4
</target>

问题1:使用tgtadm命令建立的以上信息正确,重启服务tgtd后依然存在,但是当服务器重启后该信息丢失,即lun 1消失,需要重新手动再次执行一遍tgtadm创建命令即可还原lun 1.
问题2:在客户端挂载成功,并创建多个LV后,在使用过程中会突然中断,中断的同时服务端的服务器也同时重启。不明是什么原因导致。

以下有错误日志供分析:

[root@hv1 log]# cat messages | grep error
Jun  2 20:59:19 host1 kernel: tgtd[30847]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff9e49a588 error 6
Jun  2 21:12:31 host1 kernel: tgtd[30924]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff5516f8d8 error 6
Jun  2 21:15:14 hv1 snmptrapd[5536]: net-snmp: 1 error(s) in config file(s)
Jun  2 21:36:55 hv1 snmptrapd[7099]: net-snmp: 1 error(s) in config file(s)
Jun  2 21:39:00 hv1 rpc.statd[5180]: gethostbyname error for onapp-hv1.seridc.com
Jun  2 21:39:07 hv1 snmptrapd[5593]: net-snmp: 1 error(s) in config file(s)
Jun  2 21:53:22 hv1 rpc.statd[5204]: gethostbyname error for onapp-hv1.seridc.com
Jun  2 21:53:30 hv1 snmptrapd[5609]: net-snmp: 1 error(s) in config file(s)
Jun  2 22:10:57 hv1 kernel: tgtd[5571]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff026f0d48 error 6
Jun  2 22:13:10 hv1 kernel: tgtd[11215]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff2ac32e48 error 6
Jun  2 22:26:19 hv1 kernel: tgtd[11741]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff45c610b8 error 6
Jun  2 22:30:53 hv1 kernel: tgtd[15085]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff57f9a598 error 6
Jun  2 22:32:58 hv1 kernel: tgtd[16104]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff057a1638 error 6
Jun  2 22:38:36 hv1 kernel: tgtd[16614]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff7e1182c8 error 6
Jun  2 22:39:25 hv1 kernel: tgtd[18069]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffcbd46cf8 error 6
Jun  2 22:40:48 hv1 kernel: tgtd[18328]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffd8f88708 error 6
Jun  2 22:43:00 hv1 kernel: tgtd[18601]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffb498c158 error 6
Jun  2 22:46:59 hv1 kernel: tgtd[19113]: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff9788b078 error 6
Jun  4 11:06:54 hv1 snmptrapd[5611]: net-snmp: 1 error(s) in config file(s)
Jun  4 11:09:06 hv1 snmptrapd[5616]: net-snmp: 1 error(s) in config file(s)
Jun  6 10:50:21 hv1 snmptrapd[5622]: net-snmp: 1 error(s) in config file(s)
[root@hv1 log]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP