Skip to content
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

services.zfs.autoScrub.enable renders system unbootable #53583

Closed
pbogdan opened this issue Jan 7, 2019 · 3 comments
Closed

services.zfs.autoScrub.enable renders system unbootable #53583

pbogdan opened this issue Jan 7, 2019 · 3 comments

Comments

@pbogdan
Copy link
Member

pbogdan commented Jan 7, 2019

Issue description

System hangs during boot when the timer configured via services.zfs.autoScrub.enable fires during the boot sequence.

Steps to reproduce

  1. Enable services.zfs.autoScrub.enable option.
  2. Configure services.zfs.autoScrub.interval option such that the timer will be due to run immediately upon the next reboot of the system.
  3. nixos-rebuild boot
  4. Shutdown; allow sufficient amount of time to pass. Boot the system, observe the system to hang during the boot sequence.

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.19.13, NixOS, 19.03.git.d1fff1e (Koi)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.1.3
  • channels(pbogdan): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos
@lheckemann
Copy link
Member

Does setting systemd.timer.zfs-scrub.after = ["multi-user.target"]; help?

@pbogdan
Copy link
Member Author

pbogdan commented Jan 14, 2019

s/timer/timers but otherwise yes, it does help, thank you.

@mlen
Copy link

mlen commented Jun 24, 2019

Hi,

I reproduced this on 19.03 yesterday. The unit already contained After=multi-user.target, so it seems it is not sufficient to fix this. Some data about my system:

$ nixos-version 
19.03.172883.1601f559e89 (Koi)
$ uname -a
Linux crow 4.19.50 #1-NixOS SMP Tue Jun 11 10:20:57 UTC 2019 x86_64 GNU/Linux
$ readlink $(which zfs)
/nix/store/q4jv6p15j4mh2d9slahhak2b2znbfix4-zfs-user-0.7.13/bin/zfs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants