iscsi-target,tgtd服务的问题
各位好,本人在使用tgtd服务的时候出现了以下问题,望大神帮助。
OS:CentOS release 5.9 (Final)
已安装#yum install scsi-target-utils
磁盘信息:
分配/dev/sda4
# 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 IdSystem
/dev/sda1 * 1 25 200781 83Linux
/dev/sda2 26 2636 20972857+83Linux
/dev/sda3 2637 3681 8393962+82Linux swap / Solaris
/dev/sda4 3682 121601 947192400 8eLinux LVM
#
服务端:
# 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
#
配置文件:
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后,在使用过程中会突然中断,中断的同时服务端的服务器也同时重启。不明是什么原因导致。
以下有错误日志供分析:
# cat messages | grep error
Jun2 20:59:19 host1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff9e49a588 error 6
Jun2 21:12:31 host1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff5516f8d8 error 6
Jun2 21:15:14 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun2 21:36:55 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun2 21:39:00 hv1 rpc.statd: gethostbyname error for onapp-hv1.seridc.com
Jun2 21:39:07 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun2 21:53:22 hv1 rpc.statd: gethostbyname error for onapp-hv1.seridc.com
Jun2 21:53:30 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun2 22:10:57 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff026f0d48 error 6
Jun2 22:13:10 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff2ac32e48 error 6
Jun2 22:26:19 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff45c610b8 error 6
Jun2 22:30:53 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff57f9a598 error 6
Jun2 22:32:58 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff057a1638 error 6
Jun2 22:38:36 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff7e1182c8 error 6
Jun2 22:39:25 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffcbd46cf8 error 6
Jun2 22:40:48 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffd8f88708 error 6
Jun2 22:43:00 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fffb498c158 error 6
Jun2 22:46:59 hv1 kernel: tgtd: segfault at 0000000000000008 rip 000000000041ed57 rsp 00007fff9788b078 error 6
Jun4 11:06:54 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun4 11:09:06 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
Jun6 10:50:21 hv1 snmptrapd: net-snmp: 1 error(s) in config file(s)
#
页:
[1]