lib/blade: add a ceph-osd-lvm-activate to prep the OSDs
This commit is contained in:
parent
d8c29b0113
commit
2596579835
1 changed files with 13 additions and 0 deletions
|
@ -75,6 +75,19 @@ in {
|
||||||
mgr.enable = config.services.ceph.mon.enable;
|
mgr.enable = config.services.ceph.mon.enable;
|
||||||
rgw.enable = true;
|
rgw.enable = true;
|
||||||
};
|
};
|
||||||
|
systemd.services.ceph-osd-lvm-activate = lib.mkIf config.services.ceph.osd.enable {
|
||||||
|
enable = true;
|
||||||
|
description = "Ceph OSD pre-start";
|
||||||
|
before = [ "network-online.target" "ceph-osd.target" ];
|
||||||
|
wantedBy = [ "ceph-osd.target" ];
|
||||||
|
|
||||||
|
path = [ pkgs.lvm2.bin pkgs.util-linux pkgs.coreutils ];
|
||||||
|
|
||||||
|
serviceConfig = {
|
||||||
|
Type = "oneshot";
|
||||||
|
ExecStart = "${pkgs.ceph.out}/bin/ceph-volume lvm activate --all --no-systemd";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
virtualisation.libvirtd = {
|
virtualisation.libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue