Am Dienstag, 1. Mai 2018, 20:28:43 CEST schrieb Per Jessen:
Jan Ritzerfeld wrote:
Am Dienstag, 1. Mai 2018, 17:45:11 CEST schrieb Per Jessen:
Jan Ritzerfeld wrote:
Am Dienstag, 1. Mai 2018, 11:04:22 CEST schrieb Per Jessen:
[...] It looks like iscsid is being shut down before the mounts have completed unmount.
But mysqld is already stopped?
Most of the time, but not always.
And stopping mysqld doesn't help shutting down the system?
No, only if I also unmounted /srv/mysql.
Good. Just to make sure it's not caused by the mysqld preventing earlier unmounting.
[...] At this point, srv-www has not yet completed unmount.
That's interesting. You've already added the _netdev mount option. Does "systemctl show -p Before -p After" on your systemd-fstab-generated mount unit show Before=remote-fs.target?
(this is with my extra drop-ins) [...]
Well, your drop-ins are effective! Now srv-www.mount and srv-mysql.mount have After=...iscsi.service iscsid.service... and thus iscsi.service is stopped after unmounting your iSCSI mounts. It would be interesting to see if the output without your drop-ins will be only missing After=...iscsi.service iscsid.service....
I was really close to posting them earlier :-)
Documenting working examples by posting them here is always a good idea, too!
Having edited my drop-ins, commented out After=, and systemctl daemon-reload: [...]
Okay. Besides some ordering within Before and After, the are only missing After=...iscsi.service iscsid.service....
But your iscsi.service could be stopped and your iSCSI mounts unmounted in parallel because they both are Before=remote-fs.target.
That would be a problem.
If we don't find an answer why iscsi.service's Before is as it is, you should file an opensuse bug report. AFAICS the iscsi.service file is not upstream.
Yeah, I already have :-)
Perfect.
http://bugzilla.opensuse.org/show_bug.cgi?id=1091517 [...]
Since both mounts have After=...remote-fs-pre.target..., overriding iscsi.service to Before=remote-fs-pre.target instead of remote-fs.target could help with this issue.
I'll try that.
Regardless whether Andrei's Before=remote-fs-pre.target works or not, adding this outcome to your bug report would be helpful.
iscsi.service should be still stopped before iscsid.service because of its After=...iscsi.service... However, this may break other dependencies I didn't think about yet.
That one does not have multipath yet, and the iscsi file systems are mounted by-id, not by UUID.
I hope the multipath problems I found using Google were already solved.
AFAICT, multipath isn't causing any problems here.
Yes, otherwise your After=iscsi.service iscsid.service wouldn't help much.
My gut feeling says it's a race condition - this machine is not the latest and greatest, but has more cores and is faster than the other webhosts. (with similar iscsi configs).
Ah, okay. Maybe this is the cause no one else reported this problem before.
Thanks for your help Jan, an extra pair of eyes is always useful!
You're welcome! I'm happy to have learned more about systemd dependencies. Gruß Jan -- If it can't be expressed in figures, it is not science; it's opinion. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org