785220f1ca
- Add lvm2-activation-generator systemd generator to automatically systemd units to activate LVM2 volumes even if lvmetad is not This replaces lvm activation part of the former fedora-storage-init script that was included in the initscripts package before. - Enable lvmetad - the LVM metadata daemon by default. - Don't use lvmetad in lvm2-monitor.service ExecStop to avoid a systemd issue. - Remove dependency on fedora-storage-init.service in lvm2 systemd units. - Depend on lvm2-lvmetad.socket in lvm2-monitor.service systemd unit. - Init lvmetad lazily to avoid early socket access on config overrides. - Hardcode use_lvmetad=0 if cluster locking used and issue a warning msg. - Fix dm_task_set_cookie to properly process udev flags if udev_sync disabled.
31 lines
1.1 KiB
Diff
31 lines
1.1 KiB
Diff
doc/example.conf.in | 2 +-
|
|
lib/commands/toolcontext.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/doc/example.conf.in b/doc/example.conf.in
|
|
index 10cfe16..442ad64 100644
|
|
--- a/doc/example.conf.in
|
|
+++ b/doc/example.conf.in
|
|
@@ -491,7 +491,7 @@ global {
|
|
#
|
|
# If lvmetad has been running while use_lvmetad was 0, it MUST be stopped
|
|
# before changing use_lvmetad to 1 and started again afterwards.
|
|
- use_lvmetad = 0
|
|
+ use_lvmetad = 1
|
|
|
|
# Full path of the utility called to check that a thin metadata device
|
|
# is in a state that allows it to be used.
|
|
diff --git a/lib/commands/toolcontext.c b/lib/commands/toolcontext.c
|
|
index d72b0c0..d7f8ece 100644
|
|
--- a/lib/commands/toolcontext.c
|
|
+++ b/lib/commands/toolcontext.c
|
|
@@ -413,7 +413,7 @@ static int _process_config(struct cmd_context *cmd)
|
|
lvmetad_set_socket(lvmetad_socket);
|
|
cn = find_config_tree_node(cmd, "devices/global_filter");
|
|
lvmetad_set_token(cn ? cn->v : NULL);
|
|
- lvmetad_set_active(find_config_tree_int(cmd, "global/use_lvmetad", 0));
|
|
+ lvmetad_set_active(find_config_tree_int(cmd, "global/use_lvmetad", 1));
|
|
lvmetad_init(cmd);
|
|
|
|
return 1;
|