What does 'iscsiadm -mode node -l' do? Does it login to the portal?
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
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
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.
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.
>
> 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