My ubuntu 16.04 bootime is consistently long (several minutes). When i run
systemd-analyze blame
the first line is
2min 687ms open-iscsi.service
The box is indeed setup with an iscsi drive (a separate NAS box) but I keep this drive off 99% of the time which could explain the long boot time.
My question is, how do I setup my system so that the unsuccessful wait for the iscsi connexion does not slow down the boot process?
Things I tried:
I tried to setup the replacement_timeout to -1 in /etc/iscsi/iscsid.conf
node.session.timeo.replacement_timeout = -1
but it did not prevent the 2 minutes wait time.
EDIT: additional infos
1/ there is no entry in /etc/fstab for that disk
2/ service status gives some info
$ service open-iscsi status
● open-iscsi.service - Login to default iSCSI targets
Loaded: loaded (/lib/systemd/system/open-iscsi.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since mer. 2017-12-20 13:35:25 CET; 5h 23min ago
Docs: man:iscsiadm(8)
man:iscsid(8)
Process: 1511 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=8)
Process: 1500 ExecStartPre=/bin/systemctl --quiet is-active iscsid.service (code=exited, status=0/SUCCESS)
Main PID: 1511 (code=exited, status=8)
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: iscsiadm: initiator reported error (8 - connection timed out)
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: iscsiadm: Could not login to [iface: default, target: whitebox.target-2, portal: 192.168.0.99,3260].
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: iscsiadm: initiator reported error (8 - connection timed out)
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: iscsiadm: Could not log into all portals
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: Logging in to [iface: default, target: whitebox.target--1, portal: 192.168.0.99,3260] (multiple)
déc. 20 13:35:25 hippo-camp iscsiadm[1511]: Logging in to [iface: default, target: whitebox.target-2, portal: 192.168.0.99,3260] (multiple)
déc. 20 13:35:25 hippo-camp systemd[1]: open-iscsi.service: Main process exited, code=exited, status=8/n/a
déc. 20 13:35:25 hippo-camp systemd[1]: Failed to start Login to default iSCSI targets.
déc. 20 13:35:25 hippo-camp systemd[1]: open-iscsi.service: Unit entered failed state.
déc. 20 13:35:25 hippo-camp systemd[1]: open-iscsi.service: Failed with result 'exit-code'.