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

nixos/swraid: enable it by default #348134

Closed
wants to merge 1 commit into from

Conversation

JohnRTitor
Copy link
Contributor

It is detected automatically now according to #343760 (comment), so enable it by default

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

it is detected automatically now according to NixOS#343760 (comment), so enable it by default
@JohnRTitor JohnRTitor requested review from ElvishJerricco and a team October 12, 2024 19:25
@github-actions github-actions bot added 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: documentation This PR adds or changes documentation 8.has: changelog 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 12, 2024
@arianvp
Copy link
Member

arianvp commented Oct 14, 2024

The swraid module was pretty broken last time I checked. It shipped with a bunch of systemd services that try to call things in /usr and /opt etc. Has this since been fixed?

@arianvp
Copy link
Member

arianvp commented Oct 14, 2024

Yes still seems to pollute the host witch a bunch of systemd units that are downright broken.

This needs to be fixed IMO.

[arian@utm:/etc/systemd/system]$ systemctl cat mdmonitor.service 
# /etc/systemd/system/mdmonitor.service
#  This file is part of mdadm.
#
#  mdadm is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.

[Unit]
Description=MD array monitor
DefaultDependencies=no
Documentation=man:mdadm(8)

[Service]
Environment=  MDADM_MONITOR_ARGS=--scan
EnvironmentFile=-/run/sysconfig/mdadm
ExecStartPre=-/usr/lib/mdadm/mdadm_env.sh
ExecStart=/nix/store/2hh5ld6cglkr59rx6h8w3z20qb0pbyvg-mdadm-4.3/sbin/mdadm --monitor $MDADM_MONITOR_ARGS

$ systemctl cat mdcheck_continue.service 
# /etc/systemd/system/mdcheck_continue.service
#  This file is part of mdadm.
#
#  mdadm is free software; you can redistribute it and/or modify it
#  under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  (at your option) any later version.

[Unit]
Description=MD array scrubbing - continuation
ConditionPathExistsGlob=/var/lib/mdcheck/MD_UUID_*
Documentation=man:mdadm(8)

[Service]
Type=oneshot
Environment="MDADM_CHECK_DURATION=6 hours"
ExecStart=/usr/share/mdadm/mdcheck --continue --duration ${MDADM_CHECK_DURATION}

@ElvishJerricco
Copy link
Contributor

@JohnRTitor Huh, I think I've made a mistake. I thought that this was only disabled by default for systemd stage 1, but in fact it's disabled across the board by default since 23.11 (scripted and systemd stage 1 and even stage 2). Given that it's already been disabled by default for two releases, I think we can just leave it as is and close this. Do you agree? I apologize for the confusion.

@arianvp Yes it seems there are a number of problems with our swraid module.

We probably need someone to go through and do some serious fixing up on the module, including the PR in that first bullet point. But that's unrelated to this PR.

@JohnRTitor JohnRTitor closed this Oct 16, 2024
@JohnRTitor JohnRTitor deleted the enable-swraid-by-default branch October 16, 2024 07:15
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: changelog 8.has: documentation This PR adds or changes documentation 8.has: module (update) This PR changes an existing module in `nixos/`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants