Okay, I'm no systemd expert, though I play one at work. :) You might try adding this to your mysql unit file:
[Unit] Description=MySQL Server -After=nss-lookup.target network.target remote-fs.target time-sync.target -Wants=nss-lookup.target network.target remote-fs.target time-sync.target +After=nss-lookup.target network.target remote-fs.target time-sync.target iscsi-disk.mount +Wants=nss-lookup.target network.target remote-fs.target time-sync.target iscsi-disk.mount And, of course, run "systemctl daemon-reload" after the change. This is probably an issue for the mysql package maintainers, but this might get you working. On Tuesday, December 9, 2014 10:29:09 AM UTC-8, awidde...@hotmail.com wrote: > > I have tried this same process without any services running on the iSCSI > drive and it seems to unmount without issue. Probably because nothing is > trying to write to it so no I/O issues would arise. > > I agree with your log analysis that it doesn't seem like the order > requested by the iscsi, iscsid, MySQL and iscsi-disk.mount files is being > enforced or things are not stopping when they say they are. The ordering > requested in those unit files seems sane to me though. > > The order should be as follows: > > Stop MySQL > Unmount remote-fs (/iscsi-disk) > Stop iscsi (logout of targets) > Stop iscsid > > Again, I'm not sure why it seems like iscsi, iscsid services are stopping > before MySQL is stopped or more importantly, before /iscsi-disk is > unmounted. > > I find debugging systemd and ordering particularly difficult because it > starts/stops multiple things at once so when looking at the log files I'm > not sure if the order in which things are logged is the order in which > things actually happened. > -- 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 open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.