From 599613d139816749ef4da231c2b42f7ce7b6be4e Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 28 Aug 2023 17:58:08 +0200 Subject: [PATCH] Switch ceph logs to journal --- m/bay/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/m/bay/configuration.nix b/m/bay/configuration.nix index 847e162..41d0a56 100644 --- a/m/bay/configuration.nix +++ b/m/bay/configuration.nix @@ -36,6 +36,14 @@ monInitialMembers = "bay"; clusterNetwork = "10.0.40.40/24"; # Use Ethernet only }; + extraConfig = { + # Only log to stderr so it appears in the journal + "log_file" = "/dev/null"; + "mon_cluster_log_file" = "/dev/null"; + "log_to_stderr" = "true"; + "err_to_stderr" = "true"; + "log_to_file" = "false"; + }; mds = { enable = true; daemons = [ "mds0" "mds1" ];