I have open-iscsi installed on Kubuntu 19.04, to access shared storage on a 
QNAP NAS server. The setup works, but open-iscsi slows boot:

$ systemd-analyze blame
     2min 6.105s open-iscsi.service
         10.076s rtslib-fb-targetctl.service
          6.042s NetworkMan.....
          ..
          
and I don't need QNAP/open-iscsi to boot, so I'm trying to set up a timer 
to delay iscsi connection until after the boot completes and the 
Kubuntu/Plasma desktop 
loads. Here's what I have:

$ cat /lib/systemd/system/open-iscsi.timer
[Unit]
Description=open-iscsi timer

[Timer]
# Time to wait after booting before it run for first time
OnBootSec=3min
Unit=open-iscsi.service

[Install]
WantedBy=timers.target

$ ls -l /lib/systemd/system/open-iscsi.service
-rw-r--r-- 1 root root 1068 Dec 11  2018 
/lib/systemd/system/open-iscsi.service

ls -l /etc/systemd/system/timers.target.wants/open-iscsi.timer
lrwxrwxrwx 1 root root 36 Jun 21 20:59 
/etc/systemd/system/timers.target.wants/open-iscsi.timer -> 
/lib/systemd/system/open-iscsi.timer

(I ran $ sudo systemctl daemon-reload and $ sudo systemctl enable 
open-iscsi.timer after creating the timer)

What am I doing wrong, and/or what do I need to do to fix this?

Thx!

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/open-iscsi.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/open-iscsi/9d371bfb-b339-4d1c-960a-e5bcf30be292%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to