New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Root FS device times out after 90 seconds #6402
Comments
…ngTimeoutSec= too We added JobRunningTimeoutSec= late, and Dracut configured only JobTimeoutSec= to turn of root device timeouts before. With this change we'll propagate a reset of JobTimeoutSec= into JobRunningTimeoutSec=, but only if the latter wasn't set explicitly. This should restore compatibility with older systemd versions. Fixes: systemd#6402
I filed a dracut bug now in dracutdevs/dracut#289 so that their side is updated too |
…ngTimeoutSec= too We added JobRunningTimeoutSec= late, and Dracut configured only JobTimeoutSec= to turn of root device timeouts before. With this change we'll propagate a reset of JobTimeoutSec= into JobRunningTimeoutSec=, but only if the latter wasn't set explicitly. This should restore compatibility with older systemd versions. Fixes: systemd#6402
Thanks, I like this approach of propagating the value only when it wasn't explicitly set (paying with the introduced flag). One remark though -- why to propagate only the 'infinity' value? If the user configures |
ah ok I missed that. So everything is fine, thanks. |
One minor nit though: I think this behavior could have been documented somewhere. |
On Fri, Oct 06, 2017 at 06:42:14AM +0000, Franck Bui wrote:
One minor nit though: I think this behavior could have been documented somewhere.
You could still submit a NEWS entry ;)
Zbyszek
|
…ngTimeoutSec= too We added JobRunningTimeoutSec= late, and Dracut configured only JobTimeoutSec= to turn of root device timeouts before. With this change we'll propagate a reset of JobTimeoutSec= into JobRunningTimeoutSec=, but only if the latter wasn't set explicitly. This should restore compatibility with older systemd versions. Fixes: systemd#6402 (cherry picked from commit d8fdc62) [mkoutny: resolved conflicts: src/basic/time-util.c drop parse_sec_fix_0 as we store infinity as 0 src/core/load-fragment-gperf.gperf.m4 adjust context (remove aliases) src/core/load-fragment.c adjust context, use parse_sec src/core/load-fragment.h adjust context, use parse_sec src/core/unit.h adjust context]
…ngTimeoutSec= too We added JobRunningTimeoutSec= late, and Dracut configured only JobTimeoutSec= to turn of root device timeouts before. With this change we'll propagate a reset of JobTimeoutSec= into JobRunningTimeoutSec=, but only if the latter wasn't set explicitly. This should restore compatibility with older systemd versions. Fixes: systemd#6402 (cherry picked from commit eae51da) [fbui: adjust context] [fbui: fixes bsc#1004995]
Submission type
systemd version the issue has been seen with
v234 (after d9732d7), actually seen on v228 with backport of that commit
Used distribution
SLES 12 SP2
In case of bug report: Expected behaviour you didn't see
systemd waits until the device for root FS appears ready
In case of bug report: Unexpected behaviour you saw
Waiting for root FS device (on LVM) timed out after 90 seconds.
In case of bug report: Steps to reproduce the problem
(Set up a root FS on device that takes long to initialize, after reboot it can be observed.)
dracut uses
JobTimeoutSec=0
to disable timeout for root FS device. It still applies but since d9732d7, there is another timeout ofJobRunningTimeoutSec=
which defaults to 90 seconds.Some solutions I can think of:
Ensure backwards compatible interpretation of
JobTimeoutSec=
, in branch job-timeout-running-compat.Modify dracut so that it uses
JobRunningTimeoutSec=
for device units (that would leave other users affected by this though).Keep only
JobTimeoutSec=
for devices and explicitly specifyJobRunningTimeoutSec=
for fstab-generator device units, in branch job-timeout-running-explicit (not complete, would use the running timeout only when a timeout is explicitly specified in fstab, which is not desirable).I'd prefer option 1. What do you think?
The text was updated successfully, but these errors were encountered: