I have open-iscsi/initiator installed on Kubuntu 19.04, to access shared storage on a QNAP TS-473 NAS server. The setup works, but open-iscsi slows boot on the Kubuntu initiator:
$ systemd-analyze blame
2min 6.105s open-iscsi.service
10.076s rtslib-fb-targetctl.service
6.042s NetworkMan.....
Postings/interactions on the developer open-iscsi forum in google groups haven't uncovered any errors in my initiator config, but the output of systemctl status open-iscsi.service on the initiator shows:
# systemctl status open-iscsi.service
● open-iscsi.service - Login to default iSCSI targets
Loaded: loaded (/lib/systemd/system/open-iscsi.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-06-27 07:23:51 PDT; 48min ago
Docs: man:iscsiadm(8)
man:iscsid(8)
Process: 4231 ExecStartPre=/bin/systemctl --quiet is-active iscsid.service (code=exited, status=0/SUCCESS)
Process: 4240 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
Main PID: 4240 (code=exited, status=8)
Jun 27 07:21:45 Jboat17 systemd[1]: Starting Login to default iSCSI targets...
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: iscsiadm: Could not login to [iface: default, target: iqn.2004-04.com.qnap:ts-473:iscsi.qnapiscsilu.2356fd, portal: 192.168.1.31,3260].
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: iscsiadm: initiator reported error (8 - connection timed out)
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: iscsiadm: Could not log into all portals
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: Logging in to [iface: default, target: iqn.2004-04.com.qnap:ts-473:iscsi.qnapiscsilu.2356fd, portal: 192.168.1.31,3260] (multiple)
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: Logging in to [iface: default, target: iqn.2004-04.com.qnap:ts-473:iscsi.qnapiscsilu.2356fd, portal: 192.168.1.30,3260] (multiple)
Jun 27 07:23:51 Jboat17 iscsiadm[4240]: Login to [iface: default, target: iqn.2004-04.com.qnap:ts-473:iscsi.qnapiscsilu.2356fd, portal: 192.168.1.30,3260] successful.
Jun 27 07:23:51 Jboat17 systemd[1]: open-iscsi.service: Main process exited, code=exited, status=8/n/a
Jun 27 07:23:51 Jboat17 systemd[1]: open-iscsi.service: Failed with result 'exit-code'.
Jun 27 07:23:51 Jboat17 systemd[1]: Failed to start Login to default iSCSI targets.
shows timeouts and failure to login for just about the same 2+ minutes elapsed time that systemd-analyze blame shows for open-iscsi on the initiator. I note that the initiator does connect to QNAP eventually and I have access to my data on the QNAP Volume/LUN. If I disable the open-iscsi service on the initiator the boot on the initiator is much faster and the QNAP is ping-able as soon as boot completes.
I'm reasonably proficient in Linux, much less so on iscsi and QNAP. If there's any information needed on the QNAP/targets I can obtain same thru browser interface or ssh login and post here, maybe with a little coaching on necessary QNAP specific commands.
Thx, Gus
Ubuntu ICSI Initiator slow boot
-
- Starting out
- Posts: 19
- Joined: Thu Mar 07, 2019 11:21 am
- storageman
- Ask me anything
- Posts: 5507
- Joined: Thu Sep 22, 2011 10:57 pm
Re: Ubuntu ICSI Initiator slow boot
Why not use shares then?
Could be a Ubuntu issue?
Why you sure it's Qnap issue?
Have you a Windows box there you could run same boot test on?
Could be a Ubuntu issue?
Why you sure it's Qnap issue?
Have you a Windows box there you could run same boot test on?