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?
[...] 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....
And "systemctl status remote-fs.target remote- fs-pre.target" shows those targets as active?
Yep, both are good.
Okay.
The iscsi.service has Before=remote-fs.target, too. I don't understand these dependencies because how could this work? Since your iSCSI mounts are automount, booting will be fine.
I have reverted to regular fixed mounts, to remove that variable.
Perfect.
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.
This somehow remembers me of https://lists.opensuse.org/opensuse/2014-03/msg00447.html Maybe Andrey can help again? :)
What a memory :-) Certainly sounds the same. I think I know which system it must have been - most likely it is openSUSE 12.3. It's still the same, and I don't know of any shutdown problems.
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. 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. Gruß Jan -- I can understand that the Universe is unfair, but why isn't ever unfair in my favor? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org