[Stgt-devel] discovery not working anymore?

FUJITA Tomonori fujita.tomonori
Mon Oct 22 08:49:57 CEST 2007


On Sat, 20 Oct 2007 09:57:39 +0200
Albert Pauw <albert.pauw at gmail.com> wrote:

> If I remember correctly I had used iscsiadm -m discovery -p <IP> before 
> on the tgt target, which worked.
> 
> However, I noticed that using the latest SVN version I can't get the 
> discovery to work and detect the target. I tried with both open-iscsi 
> and tgt on the same machine as using separate machines for them, but it 
> didn't make a difference.
> 
> Albert
> 
> P.S. open-iscsi works fine discovering the targets on iscsi-target and 
> Wasabi, so it looks like the problem lies with tgt.
> 
> Here's the setup I used:
> 
> #!/bin/sh
> 
> tgtadm --lld iscsi --mode target --op new --tid 1 -T 
> iqn.2007-09.net.homeunix.pauw:blue.stgt.disk
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name 
> scsi_id --value "CONTROLLER"
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 0 --name 
> scsi_sn --value "001"
> #
> # Define backing-store
> #
> tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 
> --backing-store /root/disk.bin --device-type disk
> #
> # Define SCSI ID (max 23 characters)
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 \
>          --params 
> vendor_id=SEAGATE,product_id=HD100,product_rev=0001,removable=0,sense_format=0
> #
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 --name 
> scsi_id --value "HARDDISK"
> #
> # Define SCSI SN (max 23 characters)
> #
> tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 --name 
> scsi_sn --value "001"
> #
> # Define who can connect
> #
> tgtadm --lld iscsi --mode target --op bind   --tid 1 -I All

tgtadm --lld iscsi --mode target --op bind   --tid 1 -I ALL

?



More information about the stgt mailing list