I am running both on the same machine, but when I do a discovery I get:
[root@orange open-iscsi]# iscsiadm -m discovery -t st -p 127.0.0.1
iscsiadm: Improperly formed disc to node link
iscsiadm: Improperly formed disc to node link
iscsiadm: Improperly formed disc to node link
iscsiadm: Improperly formed disc to node link
127.0.0.1:3260,1 iqn.2007-07.net.homeunix.pauw:orange.tgt.cd.iso
127.0.0.1:3260,1 iqn.2007-07.net.homeunix.pauw:orange.tgt.disk
Where the last two are the proper targets anyway. But I don't seem to
get rid of the "Improperly formed disc to node link".
Funny enough on another machine it works fine, with equal settings and
revisions (both tgt and open-iscsi).
Any idea where I have to look for the reason for this behaviour?
Thanks,
Albert
Here's the setup script of tgt:
#!/bin/sh
#
# Setup iSNS
#
tgtadm --lld iscsi --op update --mode sys --name iSNSServerIP --value
192.168.1.2
tgtadm --lld iscsi --op update --mode sys --name iSNS --value On
#
# Set up the first target
#
# Define target name and type
#
tgtadm --lld iscsi --mode target --op new --tid 1 -T
iqn.2007-07.net.homeunix.pauw:orange.tgt.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
#
# Set iSCSI parameters
#
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxConnections --value 1
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxRecvDataSegmentLength --value 262144
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxXmitDataSegmentLength --value 262144
tgtadm --lld iscsi --mode target --op update --tid 1 --name
FirstBurstLength --value 262144
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxBurstLength --value 262144
tgtadm --lld iscsi --mode target --op update --tid 1 --name
DefaultTime2Wait --value 2
tgtadm --lld iscsi --mode target --op update --tid 1 --name
DefaultTime2Retain --value 20
tgtadm --lld iscsi --mode target --op update --tid 1 --name
MaxOutstandingR2T --value 8
tgtadm --lld iscsi --mode target --op update --tid 1 --name
DataPDUInOrder --value "Yes"
tgtadm --lld iscsi --mode target --op update --tid 1 --name
DataSequenceInOrder --value "Yes"
tgtadm --lld iscsi --mode target --op update --tid 1 --name
ErrorRecoveryLevel --value 0
tgtadm --lld iscsi --mode target --op update --tid 1 --name HeaderDigest
--value "CRC32C"
tgtadm --lld iscsi --mode target --op update --tid 1 --name DataDigest
--value "None"
# First target done
#
#
# Set up the second target
#
#
# Define target name and type
#
tgtadm --lld iscsi --mode target --op new --tid 2 -T
iqn.2007-07.net.homeunix.pauw:orange.tgt.cd.iso
tgtadm --lld iscsi --mode logicalunit --op update --tid 2 --lun 0 --name
scsi_id --value "CONTROLLER"
tgtadm --lld iscsi --mode logicalunit --op update --tid 2 --lun 0 --name
scsi_sn --value "002"
#
# Define backing-store
#
tgtadm --lld iscsi --mode logicalunit --op new --tid 2 --lun 1
--backing-store /home/apauw/Minix/minix3_1_3_ide.iso --device-type cd
#
# Define SCSI ID (max 23 characters)
#
tgtadm --lld iscsi --mode logicalunit --op update --tid 2 --lun 1 \
--params
vendor_id=MITSUMI,product_id=FD001,product_rev=0001,removable=1,sense_format=0
tgtadm --lld iscsi --mode logicalunit --op update --tid 2 --lun 1 --name
scsi_id --value "CDROM ISO"
#
# Define SCSI SN (max 23 characters)
#
tgtadm --lld iscsi --mode logicalunit --op update --tid 2 --lun 1 --name
scsi_sn --value "001"
tgtadm --lld iscsi --mode target --op bind --tid 2 -I ALL
#
# Set iSCSI parameters
#
tgtadm --lld iscsi --mode target --op update --tid 2 --name
MaxConnections --value 1
tgtadm --lld iscsi --mode target --op update --tid 2 --name
MaxRecvDataSegmentLength --value 65536
tgtadm --lld iscsi --mode target --op update --tid 2 --name
MaxXmitDataSegmentLength --value 65536
tgtadm --lld iscsi --mode target --op update --tid 2 --name
FirstBurstLength --value 65536
tgtadm --lld iscsi --mode target --op update --tid 2 --name
MaxBurstLength --value 262144
tgtadm --lld iscsi --mode target --op update --tid 2 --name
DefaultTime2Wait --value 2
tgtadm --lld iscsi --mode target --op update --tid 2 --name
DefaultTime2Retain --value 20
tgtadm --lld iscsi --mode target --op update --tid 2 --name
MaxOutstandingR2T --value 8
tgtadm --lld iscsi --mode target --op update --tid 2 --name
DataPDUInOrder --value "Yes"
tgtadm --lld iscsi --mode target --op update --tid 2 --name
DataSequenceInOrder --value "Yes"
tgtadm --lld iscsi --mode target --op update --tid 2 --name
ErrorRecoveryLevel --value 0
tgtadm --lld iscsi --mode target --op update --tid 2 --name HeaderDigest
--value "CRC32C"
tgtadm --lld iscsi --mode target --op update --tid 2 --name DataDigest
--value "None"
You must have had a newer version then downgraded to an older version.
We support upgrading, but not switching from a new version to older
versions. If you go to an older version you have to destroy the old db
with the old
rm -f -r /etc/iscsi/node
rm -f -r /etc/iscsi/sendtargets
rm -f -r /etc/iscsi/static
and if you used isns
rm -f -r /etc/iscsi/isns
that worked. I am a bit puzzled how things got mixed up as I didn't
downgrade.
Anyway, it works now.
Albert
Ah ok. Let me know if happens again with the "iscsiadm .... -d 8" output
and you are sure you started from a clean install, so I can check it out.
Has the database setup changed lately?
Albert
Has the database layout changed recently?
Albert
In 865 it changed. I made the tools in 865 able to read the old and new
format. But if you discovery targets with the new tools, then try to use
the old tools on that db, you will get errors like you saw.
I am trying to understand the overhead on my Linux initiator's CPU between running iscsi or FC?
In other words, how much more is iSCSI cpu hungry than Fibre Channel?
Do you guys have any data?
Thanks,
Simone
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.503 / Virus Database: 269.15.10/1091 - Release Date: 10/24/2007 2:31 PM