mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
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.
This commit is contained in:
parent
94d8779ae2
commit
4210219a8b
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user