From 4210219a8bba1aee6a16d16f4c158fa46395b9dd Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Fri, 14 Feb 2014 11:59:12 +0100 Subject: [PATCH] systemd: Use --ignoreskippedcluster in generated activation systemd units When the activation units are generated if use_lvmetad=0 (no autoactivation), use --ignoreskippedcluster option for vgchange calls since the cluster with cLVM is set up by separate units. This avoids a situation in which the generated activation units are improperly in failed state just because of the vgchange return value when clustered VGs are encountered while the activation of non-clustered VGs does proceed normally. --- WHATS_NEW | 1 + scripts/lvm2_activation_generator_systemd_red_hat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW b/WHATS_NEW index 01fa616a3..e2a33b596 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.106 - ==================================== + Use --ignoreskippedcluster in activation systemd units if use_lvmetad=0. Allow approximate allocation when specifying size in percentage terms. Add basic LVM support for cache[pool] segment types. Use local exclusive activation for creation of raid in cluster. diff --git a/scripts/lvm2_activation_generator_systemd_red_hat.c b/scripts/lvm2_activation_generator_systemd_red_hat.c index f2e2e4919..07a2563a3 100644 --- a/scripts/lvm2_activation_generator_systemd_red_hat.c +++ b/scripts/lvm2_activation_generator_systemd_red_hat.c @@ -150,7 +150,7 @@ static int generate_unit(const char *dir, int unit) "[Service]\n", f); } - fputs("ExecStart=" LVM_PATH " vgchange -aay --sysinit\n" + fputs("ExecStart=" LVM_PATH " vgchange -aay --sysinit --ignoreskippedcluster\n" "Type=oneshot\n", f); if (fclose(f) < 0) {