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.
[...] 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 :-) Having edited my drop-ins, commented out After=, and systemctl daemon-reload: # systemctl show -p Before -p After srv-mysql.mount Before=mariadb.service remote-fs.target umount.target After=system.slice network-online.target dev-disk-by\x2duuid-cd525bc6\x2d82b2\x2d4f8e\x2daf76\x2dd321d1757e6c.device -.mount systemd-fsck@dev-disk-by\x2duuid-cd525bc6\x2d82b2\x2d4f8e\x2daf76\x2dd321d1757e6c.service dev-mapper-1494554000000000064617461686f7374322e300000000000.device network.target remote-fs-pre.target # systemctl show -p Before -p After srv-www.mount Before=apache2.service remote-fs.target umount.target After=-.mount dev-mapper-14945540000000000776562686f7374322e30000000000000.device systemd-fsck@dev-disk-by\x2duuid-1cc82c3d\x2d1b32\x2d4632\x2dbdd4\x2d8b56d30fff1e.service remote-fs-pre.target dev-disk-by\x2duuid-1cc82c3d\x2d1b32\x2d4632\x2dbdd4\x2d8b56d30fff1e.device network.target system.slice network-online.target
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 :-) http://bugzilla.opensuse.org/show_bug.cgi?id=1091517
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.
I'll try that.
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. 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). Thanks for your help Jan, an extra pair of eyes is always useful! -- Per Jessen, Zürich (11.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org