On Wed, Oct 25, 2017 at 1:29 PM, Peter Suetterlin <P.Suetterlin@royac.iac.es> wrote:
Thanks a LOT for your detailed analysis Andrei!
Actually I was partially wrong here. .
Oct 23 07:44:13 royac6 systemd[1]: Started Timer to wait for more drives before activating degraded array..
And that is unexpected.
Well, you have two arrays, so initrd applies to root and here it *is* expected for the second array. Unfortunately normal logs do not show us which array is affected. I filed change request.
Ah. I had also assumed there's no issue with md0 because this is already handled during the initrd phase, as it contains the system. I assumed it would now start that timer for the second RAID, md1, which is /home.
Yes. This shifts the question from "why it was started" to "why it was not stopped". It was for md0 apparently.
Oct 23 07:44:43 royac6 systemd[1]: Started Activate md array even though degraded. Oct 23 07:44:43 royac6 systemd[1]: Stopped target Local File Systems. Oct 23 07:44:43 royac6 systemd[1]: Unmounting /home... Oct 23 07:44:43 royac6 systemd[1]: Stopped (with error) /dev/md1. Oct 23 07:44:43 royac6 systemd[1]: Unmounted /home.
As for Postfix I suspect it has dependency on /home.
Yes, it needs $HOME/Maildir for mail delivery. So stopping both services is 'reasonable' if you umount /home. The questions are why it's unmounted, and why the services are not started after the second mount.
it is unmounted because systemd attempts to stop md1 which forces filesystem that depends on it to be stopped too. That is how dependency logic in systemd works. Service is not started because systemd is past the point where it would start it. Initial attempt was due to dependency on default target. Now default target is already started, so nothing triggers (re-)start of services. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org