tgt-1.0.8 iscsi target don't work!

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

tgt-1.0.8 iscsi target don't work!

zengold
Download this sit of tgt-1.0.8 iscsi target software http://stgt.sourceforge.net/releases/tgt-1.0.8.tar.gz,install was very successful,i was use ps command display tgtd process normal


[root@localhost:/root]# ps -ef|grep tgt
root     20240     1  0 16:14 ?        00:00:00 tgtd
root     20241 20240  0 16:14 ?        00:00:00 tgtd

stoped tgt normaly
[root@localhost:/root]# /etc/rc.d/init.d/tgt stop
Stopping target framework daemon

start tgt again
[root@localhost:/root]# /etc/rc.d/init.d/tgt start
Starting target framework daemon
Can't locate Config/General.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/sbin/tgt-admin line 10.
BEGIN failed--compilation aborted at /usr/sbin/tgt-admin line 10

report the Perl can;t locate error


tail /var/log/message again below

Nov 20 16:01:32 localhost tgtd: tgtd daemon started, pid:20188
Nov 20 16:01:32 localhost tgtd: tgtd logger started, pid:20189 debug:0
Nov 20 16:01:33 localhost tgtd: bs_init(318) use pthread notification
Nov 20 16:01:54 localhost tgtd: tgtd logger exits abnormally, pid:20189
Nov 20 16:10:16 localhost tgtd: tgtd daemon started, pid:20214
Nov 20 16:10:16 localhost tgtd: tgtd logger started, pid:20215 debug:0
Nov 20 16:10:17 localhost tgtd: bs_init(318) use pthread notification
Nov 20 16:10:21 localhost tgtd: tgtd logger stopped, pid:20215
Nov 20 16:10:25 localhost tgtd: tgtd daemon started, pid:20225
Nov 20 16:10:25 localhost tgtd: tgtd logger started, pid:20226 debug:0
Nov 20 16:10:26 localhost tgtd: bs_init(318) use pthread notification
Nov 20 16:10:29 localhost tgtd: tgtd logger stopped, pid:20226
Nov 20 16:14:10 localhost tgtd: tgtd daemon started, pid:20240
Nov 20 16:14:10 localhost tgtd: tgtd logger started, pid:20241 debug:0
Nov 20 16:14:11 localhost tgtd: bs_init(318) use pthread notification
Nov 20 16:14:30 localhost tgtd: tgtd logger stopped, pid:20241
Nov 20 16:14:54 localhost tgtd: tgtd daemon started, pid:20255
Nov 20 16:14:54 localhost tgtd: tgtd logger started, pid:20256 debug:0
Nov 20 16:14:55 localhost tgtd: bs_init(318) use pthread notification

i have use tgtdm command building tgt logical drivers has fail
nia
Reply | Threaded
Open this post in threaded view
|

Re: tgt-1.0.8 iscsi target don't work!

nia
Administrator
Try :

yum install perl-Config-General
yum install libibverbs, And whatever dependencies yum asked for ..
Reply | Threaded
Open this post in threaded view
|

Re: tgt-1.0.8 iscsi target don't work!

zengold
oh!yes problem was resolved!using tgt iscsi method mapping my windows XP x32 system can be found IET SCSI RAID ADAPTER,and unknow library picker,look like not drivers,n.i.a brother can you give some advice to install tape library drivers??

[root@localhost:/media/cdrom/RHEL5/Server]# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2010-09.com.lab.mhvtl:vtl.1
    System information:
        Driver: iscsi
        State: ready
    I_T nexus information:
        I_T nexus: 1
            Initiator: iqn.1991-05.com.microsoft:lenovo-5970f08d
            Connection: 1
                IP Address: 192.168.146.1
    LUN information:
        LUN: 0
            Type: controller
            SCSI ID: IET     00010000
            SCSI SN: beaf10
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: null
            Backing store path: None
            Backing store flags:
        LUN: 1
            Type: passthrough
            SCSI ID: IET     00010001
            SCSI SN: beaf11
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg6
            Backing store flags:
        LUN: 2
            Type: passthrough
            SCSI ID: IET     00010002
            SCSI SN: beaf12
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg1
            Backing store flags:
        LUN: 3
            Type: passthrough
            SCSI ID: IET     00010003
            SCSI SN: beaf13
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg2
            Backing store flags:
        LUN: 4
            Type: passthrough
            SCSI ID: IET     00010004
            SCSI SN: beaf14
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg3
            Backing store flags:
        LUN: 5
            Type: passthrough
            SCSI ID: IET     00010005
            SCSI SN: beaf15
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg4
            Backing store flags:
        LUN: 6
            Type: passthrough
            SCSI ID: IET     00010006
            SCSI SN: beaf16
            Size: 0 MB
            Online: Yes
            Removable media: No
            Backing store type: sg
            Backing store path: /dev/sg5
            Backing store flags:
    Account information:
    ACL information:
        ALL

nia
Reply | Threaded
Open this post in threaded view
|

Re: tgt-1.0.8 iscsi target don't work!

nia
Administrator
The IET controller unknown device can be ignored, I am not sure what is the purpose for it, and also I am not able to find a driver for it either but it does not cause any issues that I know of if you just leave it alone ..

The Medium Changer was configured with Microsoft generic driver and should also work fine but you could also download the driver from vendor website and install. For Windows, you may want to pick a more common/compatible configuration so you can find the drivers for it.




Reply | Threaded
Open this post in threaded view
|

Re: tgt-1.0.8 iscsi target don't work!

ap2010
To quote the developer of stgt:

--- Quote ---

The dummy RAID controller serves 2 purposes:
(1) commands that are addressed to an inexistent LUN are redirected to it My purpose is redirecting appropriate commands (INQUIRY, REPORT_LUNS, anything else?).

(2) it provides a LUN 0 by default which is required by the SCSI spec.

--- unQuote ---

it is in there by design,

it is only for internal use only, so you can ignore it.

Albert