master - systemd: Use --ignoreskippedcluster in generated activation systemd units
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4210219a8bba1aee6a16d16f4c158fa46395b9dd Commit: 4210219a8bba1aee6a16d16f4c158fa46395b9dd Parent: 94d8779ae241a2742ed43acc7bb0f98b7b2da25c Author: Peter Rajnoha <[email protected]> AuthorDate: Fri Feb 14 11:59:12 2014 +0100 Committer: Peter Rajnoha <[email protected]> CommitterDate: Fri Feb 14 11:59:12 2014 +0100
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 + .../lvm2_activation_generator_systemd_red_hat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletions(-)
WHATS_NEW +1 -0
@@ -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.
scripts/lvm2_activation_generator_systemd_red_hat.c +1 -1
@@ -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 ) {