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
ceph-osd-device-activation: a systemd service to trigger underlying LVM device activation #281924
base: master
Are you sure you want to change the base?
Conversation
…VM device activation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
other than the formatting cleanup I can't contribute much here.
@astro can you maybe?
Before going into detail about formatting, I'd first like to understand why this is necessary, and whether that approach is the right one. We call a low-level plumbing command, in a systemd unit, with a --no-systemd cmdline argument. This sounds wrong. I wonder if LVM or ceph are supposed to provide some udev rules that normally take care of that? |
I cannot review this PR, as I'm not using the NixOS Ceph service; we use our own NixOS service which does not use |
@deepfire Our custom NixOS Ceph service modules: https://gist.github.com/nh2/13425a1f18b4c1ce82edb63c10b163c9 |
From: https://docs.ceph.com/en/mimic/ceph-volume/lvm/activate/#summary tldr;
|
Looks very interesting, thank you @nh2! I'd need to get my long-planned playground Ceph cluster with |
fe2a7bd
to
9404e9e
Compare
Thank you @SuperSandro2000! Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
9404e9e
to
68746be
Compare
@SuperSandro2000, done, thanks! @flokli, what are your considerations now, after @johanot 's clarification? |
I tried to dig deeper into this, but apparently ceph is broken on nixos-unstable and master. The first point in #242152 also mentions:
I'm wondering how this plays together with this approach, just want to make sure we don't put ourselves into one corner where it's harder to navigate out of. Spelunking around in (a successful) build, there's ceph-volume-systemd, which normally seems to get be called by a It seems it takes care of all the necessary activation bits mentioned under the hood as well, so moving to template units should would the necessity for the unit file introduced here alltogether. |
@flokli, oh, so we have a better startup point -- so that's great news! I'd like to play with that, once I get a staging setup with So, I guess, it'd be wise to deprecate this PR in favor of the better future implementation. |
Yeah, I don't think there's a certain urgency to land this right now, especially considering even ceph itself doesn't build on the current channel ;-) I'd prefer to stay more in line with how it looks like on other distros, so yeah, let's try that approach first. |
Description of changes
This addresses point #2 of #242152, by creating a service to activate the LVM devices underlying the OSDs.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.