iscsiadm: No records found! debian lenny

2,854 views
Skip to first unread message

Stefan

unread,
Jun 18, 2009, 6:26:43 AM6/18/09
to open-iscsi
Hello al,
I want to do a iscsi connection from a debian lenny machine do a san
(openfiler.com) and getting such error when trying:

iscsiadm: No records found!


Im doing:
iscsiadm --mode discovery --type sendtargets --portal 10.100.100.30
10.100.100.30:3260,1 iqn.2006-01.com.openfiler:tsn.c0aa34c0adda

/etc/init.d/open-iscsi restart
Disconnecting iSCSI targets:.
Stopping iSCSI initiator service:.
Starting iSCSI initiator service: iscsid.
Setting up iSCSI targets:
iscsiadm: No records found!

nmap shows the port open from lenny machine. Can not find a log.

can someone help?
tia
stefan

mal...@us.ibm.com

unread,
Jun 18, 2009, 11:51:04 AM6/18/09
to open-...@googlegroups.com
Stefan [ste...@fuhrmann.homedns.org] wrote:
>
> Hello al,
> I want to do a iscsi connection from a debian lenny machine do a san
> (openfiler.com) and getting such error when trying:
>
> iscsiadm: No records found!
>
>
> Im doing:
> iscsiadm --mode discovery --type sendtargets --portal 10.100.100.30
> 10.100.100.30:3260,1 iqn.2006-01.com.openfiler:tsn.c0aa34c0adda
>
> /etc/init.d/open-iscsi restart
> Disconnecting iSCSI targets:.
> Stopping iSCSI initiator service:.
> Starting iSCSI initiator service: iscsid.
> Setting up iSCSI targets:
> iscsiadm: No records found!

What does 'iscsiadm -mode node -l' do? Does it login to the portal?

Mike Christie

unread,
Jun 18, 2009, 12:32:51 PM6/18/09
to open-...@googlegroups.com
Stefan wrote:
> Hello al,
> I want to do a iscsi connection from a debian lenny machine do a san
> (openfiler.com) and getting such error when trying:
>
> iscsiadm: No records found!
>
>
> Im doing:
> iscsiadm --mode discovery --type sendtargets --portal 10.100.100.30
> 10.100.100.30:3260,1 iqn.2006-01.com.openfiler:tsn.c0aa34c0adda
>

It looks like no tagrets were found. I think you might have to set
something in openfiler to allow the initiator to be able to discover
targets.

If targets are found then when you run that iscsiadm command something
like this:

# iscsiadm -m discovery -t st -p 10.15.85.19:3260
10.15.84.19:3260,2 iqn.1992-08.com.netapp:sn.33615311
10.15.85.19:3260,3 iqn.1992-08.com.netapp:sn.33615311

should get printed out.

Stefan

unread,
Jun 20, 2009, 6:53:45 AM6/20/09
to open-...@googlegroups.com
Hello,

Am Donnerstag 18 Juni 2009 17:51:04 schrieb mal...@us.ibm.com:

>
> What does 'iscsiadm -mode node -l' do? Does it login to the portal?

iscsiadm -mode node -l
iscsiadm -m discovery [ -hV ] [ -d debug_level ] [-P printlevel] [ -t type -p
ip:port -I ifaceN ... [ -l ] ] | [ -p ip:port ] [ -o operation ] [ -n name ] [
-v value ]
iscsiadm -m node [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -L
all,manual,automatic ] [ -U all,manual,automatic ] [ -S ] [ [ -T targetname -p
ip:port -I ifaceN ] [ -l | -u | -R | -s] ] [ [ -o operation ] [ -n name ] [
-v value ] ]
iscsiadm -m session [ -hV ] [ -d debug_level ] [ -P printlevel] [ -r
sessionid | sysfsdir [ -R | -u | -s ] [ -o operation ] [ -n name ] [ -vvalue ]
]
iscsiadm -m iface [ -hV ] [ -d debug_level ] [ -P printlevel ] [ -I ifacename
] [ [ -o operation ] [ -n name ] [ -v value ] ]
iscsiadm -m fw [ -l ]
iscsiadm -k priority

doing from beginning:
iscsiadm -m iface -I iface0 --op=new
New interface iface0 added
root@willy:/etc/iscsi# iscsiadm -m discovery -t st -p 10.100.100.30:3260 -I
iface0 -P 1
iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to 10.100.100.30 rejected: initiator error (02/01),
non-retryable, giving up
root@willy:/etc/iscsi# iscsiadm --mode node --targetname
iqn.2006-01.com.openfiler:tsn.e1ed9b1eb42c --portal 10.100.100.30:3260 --login
iscsiadm: no records found!

what else can I try?

tia
stefan

Stefan

unread,
Jun 20, 2009, 7:08:31 AM6/20/09
to open-...@googlegroups.com
Hello,

Am Donnerstag 18 Juni 2009 18:32:51 schrieb Mike Christie:

> It looks like no tagrets were found. I think you might have to set
> something in openfiler to allow the initiator to be able to discover
> targets.

Yes, I allowed 0.0.0.0/0 for accessing openfiler and there is a "incoming user"
set

> If targets are found then when you run that iscsiadm command something
> like this:
>
> # iscsiadm -m discovery -t st -p 10.15.85.19:3260
> 10.15.84.19:3260,2 iqn.1992-08.com.netapp:sn.33615311
> 10.15.85.19:3260,3 iqn.1992-08.com.netapp:sn.33615311
>

iscsiadm -m discovery -t st -p 10.100.100.30:3260


iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to 10.100.100.30 rejected: initiator error (02/01),
non-retryable, giving up

iscsiadm -m discovery -t st -p 10.100.100.30:3260 --login


iscsiadm: Login failed to authenticate with target
iscsiadm: discovery login to 10.100.100.30 rejected: initiator error (02/01),
non-retryable, giving up

What to do?

tia
stefan


Stefan

unread,
Jun 20, 2009, 10:13:36 AM6/20/09
to open-...@googlegroups.com
Am Samstag 20 Juni 2009 12:53:45 schrieb Stefan:

okay, have it: I copied the configs from another machine and did a iscsi
restart doing discover:


iscsiadm -m discovery -t st -p 10.100.100.30

10.100.100.30:3260,1 iqn.2006-01.com.openfiler:tsn.e1ed9b1eb42c
10.100.100.30:3260,1 iqn.from10-100-100-4.com.openfiler:tsn.1391acfee1c6
10.100.100.30:3260,1 iqn.fromlenny.com.openfiler:tsn.7480be2c6f3f

dont know, what was wrong with the old config

but nothing is mounted and I can not find a log entry . How can I mount the
scsi device now? fdisk -l shows no such scsi device.

Mike Christie

unread,
Jun 21, 2009, 12:23:03 PM6/21/09
to open-...@googlegroups.com

After you do discovery, then you can login to the target to find disks.
When you do

iscsiadm -m node ... -l
or
iscsiadm -m node -L all/manual/automatic
or
service iscsi start

then iscsid will login into those targets you found when you did
discovery. iscsid will also then have the scsi layer do a scsi scan and
search for disks. If it finds them then you can mount and use them like
a local disk. If you are not seeing any disks then you probably have not
set something up right in openfiler.

Stefan

unread,
Jun 22, 2009, 7:48:56 AM6/22/09
to open-...@googlegroups.com
Am Sonntag 21 Juni 2009 18:23:03 schrieb Mike Christie:

>
> then iscsid will login into those targets you found when you did
> discovery. iscsid will also then have the scsi layer do a scsi scan and
> search for disks. If it finds them then you can mount and use them like
> a local disk. If you are not seeing any disks then you probably have not
> set something up right in openfiler.

You are correct! I dont have LUNs mapped in openfiler arrgghhh.... !!


thanks for help!!!
stefan

Reply all
Reply to author
Forward
0 new messages