Skip to content

nixos/zfs: don't prevent a degraded pool machine from booting#497025

Open
SuperSandro2000 wants to merge 1 commit intoNixOS:masterfrom
SuperSandro2000:zfs-degraded
Open

nixos/zfs: don't prevent a degraded pool machine from booting#497025
SuperSandro2000 wants to merge 1 commit intoNixOS:masterfrom
SuperSandro2000:zfs-degraded

Conversation

@SuperSandro2000
Copy link
Member

@SuperSandro2000 SuperSandro2000 commented Mar 5, 2026

If eg: a mirror is missing one disk then we still want to boot up.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

If eg: a mirror is missing one disk then we still want to boot up.
@nixpkgs-ci nixpkgs-ci bot requested a review from adamcstephens March 5, 2026 23:49
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Mar 5, 2026
@adamcstephens
Copy link
Contributor

Should we add a log entry for the degraded state?

@SuperSandro2000
Copy link
Member Author

Why? It will be in the same state when booted and that can then be observed with zpool status.

@adamcstephens
Copy link
Contributor

adamcstephens commented Mar 6, 2026

Right, but it’s one more clue for users that something is wrong. How would users know it’s degraded besides manually running a pool status command? I can’t say I check my pools manually every boot.

You’re proposing a change which could increase likelihood of data loss, as users may be unaware of being in a degraded state. I’m only suggesting we log if that’s the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants