Discussion:
login fail
陳德安
2016-06-22 08:07:14 UTC
Permalink
Hi,

I have the question at login of iSCSI

console:

iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals

Could anyone tell me the reason?

Thanks for your help.
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
The Lee-Man
2016-06-22 17:45:41 UTC
Permalink
You really need to supply more information than this.

It looks like you don't have your target set up correctly. What type of
target are you using (and on what platform)? Can you share it's
configuration?
Post by 陳德安
Hi,
I have the question at login of iSCSI
iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals
Could anyone tell me the reason?
Thanks for your help.
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Chris Leech
2016-06-22 18:09:51 UTC
Permalink
Post by 陳德安
Hi,
I have the question at login of iSCSI
iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals
Could anyone tell me the reason?
Thanks for your help.
It looks like you aren't running the iscsiadm command as root, so iscsid
is refusing to process the request.

Chris
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Lee Duncan
2016-06-22 18:12:38 UTC
Permalink
Post by Chris Leech
Post by 陳德安
Hi,
I have the question at login of iSCSI
iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals
Could anyone tell me the reason?
Thanks for your help.
It looks like you aren't running the iscsiadm command as root, so iscsid
is refusing to process the request.
Chris
Good call! I didn't look closely enough at the error message.
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
陳德安
2016-06-23 02:58:07 UTC
Permalink
Command & Console:

./iscsiadm -m discovery -t st -p 10.100.91.57:3260
10.100.91.57:3260,1 iqn.2000-01.com.synology:Target-1
[fe80::211:32ff:fe57:6952]:3260,1 iqn.2000-01.com.synology:Target-1

/var/open-iscsi/usr/iscsiadm -m node -p 10.100.91.57:3260 -l -d8
iscsiadm: Max file limits 1024 4096

iscsiadm: exec_node_op: : node [,10.100.91.57,3260] sid 0
iscsiadm: searching iqn.2000-01.com.synology:Target-1

iscsiadm: found 10.100.91.57,3260,1

iscsiadm: iface iter found iface.example.
iscsiadm: updated 'node.name', '' => 'iqn.2000-01.com.synology:Target-1'
iscsiadm: updated 'node.tpgt', '-1' => '1'
iscsiadm: updated 'node.startup', 'manual' => 'manual'
iscsiadm: updated 'node.leading_login', 'No' => 'No'
iscsiadm: updated 'iface.iscsi_ifacename', 'default' => 'iface.example'
iscsiadm: updated 'iface.net_ifacename', '' => 'eth2'
iscsiadm: updated 'iface.transport_name', 'tcp' => 'tcp'
iscsiadm: updated 'iface.initiatorname', '' => 'iqn.2003-04.com.fedora:test'
iscsiadm: updated 'iface.bootproto', '' => 'dhcp'
iscsiadm: updated 'iface.vlan_id', '0' => '0'
iscsiadm: updated 'iface.vlan_priority', '0' => '0'
iscsiadm: updated 'iface.iface_num', '0' => '0'
iscsiadm: updated 'iface.mtu', '0' => '0'
iscsiadm: updated 'iface.port', '0' => '0'
iscsiadm: updated 'node.discovery_address', '' => '10.100.91.57'
iscsiadm: updated 'node.discovery_port', '0' => '3260'
iscsiadm: updated 'node.discovery_type', 'static' => 'send_targets'
iscsiadm: updated 'node.session.initial_cmdsn', '0' => '0'
iscsiadm: updated 'node.session.initial_login_retry_max', '4' => '4'
iscsiadm: updated 'node.session.xmit_thread_priority', '-20' => '-20'
iscsiadm: updated 'node.session.cmds_max', '128' => '128'
iscsiadm: updated 'node.session.queue_depth', '32' => '32'
iscsiadm: updated 'node.session.nr_sessions', '1' => '1'
iscsiadm: updated 'node.session.auth.authmethod', 'None' => 'None'
iscsiadm: updated 'node.session.timeo.replacement_timeout', '120' => '120'
iscsiadm: updated 'node.session.err_timeo.abort_timeout', '15' => '15'
iscsiadm: updated 'node.session.err_timeo.lu_reset_timeout', '30' => '30'
iscsiadm: updated 'node.session.err_timeo.tgt_reset_timeout', '30' => '30'
iscsiadm: updated 'node.session.err_timeo.host_reset_timeout', '60' => '60'
iscsiadm: updated 'node.session.iscsi.FastAbort', 'Yes' => 'Yes'
iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' =>
'262144'
iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' =>
'16776192'
iscsiadm: updated 'node.session.iscsi.DefaultTime2Retain', '0' => '0'
iscsiadm: updated 'node.session.iscsi.DefaultTime2Wait', '2' => '2'
iscsiadm: updated 'node.session.iscsi.MaxConnections', '1' => '1'
iscsiadm: updated 'node.session.iscsi.MaxOutstandingR2T', '1' => '1'
iscsiadm: updated 'node.session.iscsi.ERL', '0' => '0'
iscsiadm: updated 'node.conn[0].address', '' => '10.100.91.57'
iscsiadm: updated 'node.conn[0].port', '3260' => '3260'
iscsiadm: updated 'node.conn[0].startup', 'manual' => 'manual'
iscsiadm: updated 'node.conn[0].tcp.window_size', '524288' => '524288'
iscsiadm: updated 'node.conn[0].tcp.type_of_service', '0' => '0'
iscsiadm: updated 'node.conn[0].timeo.logout_timeout', '15' => '15'
iscsiadm: updated 'node.conn[0].timeo.login_timeout', '30' => '30'
iscsiadm: updated 'node.conn[0].timeo.auth_timeout', '45' => '45'
iscsiadm: updated 'node.conn[0].timeo.noop_out_interval', '5' => '5'
iscsiadm: updated 'node.conn[0].timeo.noop_out_timeout', '5' => '5'
iscsiadm: updated 'node.conn[0].iscsi.MaxXmitDataSegmentLength', '0' => '0'
iscsiadm: updated 'node.conn[0].iscsi.MaxRecvDataSegmentLength', '262144'
=> '262144'
iscsiadm: updated 'node.conn[0].iscsi.HeaderDigest', 'None' => 'None'
iscsiadm: updated 'node.conn[0].iscsi.DataDigest', 'None' => 'None'
iscsiadm: updated 'node.conn[0].iscsi.IFMarker', 'No' => 'No'
iscsiadm: updated 'node.conn[0].iscsi.OFMarker', 'No' => 'No'
iscsiadm: match session [,10.100.91.57,3260][ ,,]:0
iscsiadm: to
[iqn.2000-01.com.synology:Target-1,10.100.91.57,3260][iface.example tcp,,]:0
iscsiadm: iface.example: Creating session 1/1
Logging in to [iface: iface.example, target:
iqn.2000-01.com.synology:Target-1, portal: 10.100.91.57,3260] (multiple)
iscsiadm: Could not login to [iface: iface.example, target:
iqn.2000-01.com.synology:Target-1, portal: 10.100.91.57,3260].
iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Kevin Chen
2016-06-23 03:04:24 UTC
Permalink
I modify the permissions, but output is same...
Post by 陳德安
./iscsiadm -m discovery -t st -p 10.100.91.57:3260
10.100.91.57:3260,1 iqn.2000-01.com.synology:Target-1
[fe80::211:32ff:fe57:6952]:3260,1 iqn.2000-01.com.synology:Target-1
/var/open-iscsi/usr/iscsiadm -m node -p 10.100.91.57:3260 -l -d8
iscsiadm: Max file limits 1024 4096
iscsiadm: exec_node_op: : node [,10.100.91.57,3260] sid 0
iscsiadm: searching iqn.2000-01.com.synology:Target-1
iscsiadm: found 10.100.91.57,3260,1
iscsiadm: iface iter found iface.example.
iscsiadm: updated 'node.name', '' => 'iqn.2000-01.com.synology:Target-1'
iscsiadm: updated 'node.tpgt', '-1' => '1'
iscsiadm: updated 'node.startup', 'manual' => 'manual'
iscsiadm: updated 'node.leading_login', 'No' => 'No'
iscsiadm: updated 'iface.iscsi_ifacename', 'default' => 'iface.example'
iscsiadm: updated 'iface.net_ifacename', '' => 'eth2'
iscsiadm: updated 'iface.transport_name', 'tcp' => 'tcp'
iscsiadm: updated 'iface.initiatorname', '' =>
'iqn.2003-04.com.fedora:test'
iscsiadm: updated 'iface.bootproto', '' => 'dhcp'
iscsiadm: updated 'iface.vlan_id', '0' => '0'
iscsiadm: updated 'iface.vlan_priority', '0' => '0'
iscsiadm: updated 'iface.iface_num', '0' => '0'
iscsiadm: updated 'iface.mtu', '0' => '0'
iscsiadm: updated 'iface.port', '0' => '0'
iscsiadm: updated 'node.discovery_address', '' => '10.100.91.57'
iscsiadm: updated 'node.discovery_port', '0' => '3260'
iscsiadm: updated 'node.discovery_type', 'static' => 'send_targets'
iscsiadm: updated 'node.session.initial_cmdsn', '0' => '0'
iscsiadm: updated 'node.session.initial_login_retry_max', '4' => '4'
iscsiadm: updated 'node.session.xmit_thread_priority', '-20' => '-20'
iscsiadm: updated 'node.session.cmds_max', '128' => '128'
iscsiadm: updated 'node.session.queue_depth', '32' => '32'
iscsiadm: updated 'node.session.nr_sessions', '1' => '1'
iscsiadm: updated 'node.session.auth.authmethod', 'None' => 'None'
iscsiadm: updated 'node.session.timeo.replacement_timeout', '120' => '120'
iscsiadm: updated 'node.session.err_timeo.abort_timeout', '15' => '15'
iscsiadm: updated 'node.session.err_timeo.lu_reset_timeout', '30' => '30'
iscsiadm: updated 'node.session.err_timeo.tgt_reset_timeout', '30' => '30'
iscsiadm: updated 'node.session.err_timeo.host_reset_timeout', '60' => '60'
iscsiadm: updated 'node.session.iscsi.FastAbort', 'Yes' => 'Yes'
iscsiadm: updated 'node.session.iscsi.InitialR2T', 'No' => 'No'
iscsiadm: updated 'node.session.iscsi.ImmediateData', 'Yes' => 'Yes'
iscsiadm: updated 'node.session.iscsi.FirstBurstLength', '262144' =>
'262144'
iscsiadm: updated 'node.session.iscsi.MaxBurstLength', '16776192' =>
'16776192'
iscsiadm: updated 'node.session.iscsi.DefaultTime2Retain', '0' => '0'
iscsiadm: updated 'node.session.iscsi.DefaultTime2Wait', '2' => '2'
iscsiadm: updated 'node.session.iscsi.MaxConnections', '1' => '1'
iscsiadm: updated 'node.session.iscsi.MaxOutstandingR2T', '1' => '1'
iscsiadm: updated 'node.session.iscsi.ERL', '0' => '0'
iscsiadm: updated 'node.conn[0].address', '' => '10.100.91.57'
iscsiadm: updated 'node.conn[0].port', '3260' => '3260'
iscsiadm: updated 'node.conn[0].startup', 'manual' => 'manual'
iscsiadm: updated 'node.conn[0].tcp.window_size', '524288' => '524288'
iscsiadm: updated 'node.conn[0].tcp.type_of_service', '0' => '0'
iscsiadm: updated 'node.conn[0].timeo.logout_timeout', '15' => '15'
iscsiadm: updated 'node.conn[0].timeo.login_timeout', '30' => '30'
iscsiadm: updated 'node.conn[0].timeo.auth_timeout', '45' => '45'
iscsiadm: updated 'node.conn[0].timeo.noop_out_interval', '5' => '5'
iscsiadm: updated 'node.conn[0].timeo.noop_out_timeout', '5' => '5'
iscsiadm: updated 'node.conn[0].iscsi.MaxXmitDataSegmentLength', '0' => '0'
iscsiadm: updated 'node.conn[0].iscsi.MaxRecvDataSegmentLength', '262144'
=> '262144'
iscsiadm: updated 'node.conn[0].iscsi.HeaderDigest', 'None' => 'None'
iscsiadm: updated 'node.conn[0].iscsi.DataDigest', 'None' => 'None'
iscsiadm: updated 'node.conn[0].iscsi.IFMarker', 'No' => 'No'
iscsiadm: updated 'node.conn[0].iscsi.OFMarker', 'No' => 'No'
iscsiadm: match session [,10.100.91.57,3260][ ,,]:0
iscsiadm: to
[iqn.2000-01.com.synology:Target-1,10.100.91.57,3260][iface.example tcp,,]:0
iscsiadm: iface.example: Creating session 1/1
iqn.2000-01.com.synology:Target-1, portal: 10.100.91.57,3260] (multiple)
iqn.2000-01.com.synology:Target-1, portal: 10.100.91.57,3260].
iscsiadm: initiator reported error (13 - daemon access denied)
iscsiadm: Could not log into all portals
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Chris Leech
2016-06-23 16:52:36 UTC
Permalink
Post by Kevin Chen
I modify the permissions, but output is same...
Are you running iscsiadm as root?

There's an additional check in iscsid (which may not be the best choice,
it's been there a long time) for the peer user name on the IPC socket
which is compared against "root".

So it looks like whatever the permissions or capabilities are, iscsid
insists that the username associated with the uid that is running
iscsiadm be "root".

- Chris
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Kevin Chen
2016-06-23 03:25:22 UTC
Permalink
I using the platform of arm and modify the permissions, but output is
same...
--
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+***@googlegroups.com.
To post to this group, send email to open-***@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.
Loading...