From 1a5062c9a7136f93a00b998ff0de1a32bb347b5f Mon Sep 17 00:00:00 2001 From: Peter Rajnoha Date: Tue, 11 Feb 2014 13:48:04 +0100 Subject: [PATCH] cleanup: clarify man pages about lvchange/vgchange -aay, use -aay in lvm2-cluster-activation script --- WHATS_NEW | 2 +- man/lvchange.8.in | 5 +++-- man/vgchange.8.in | 7 ++++--- scripts/lvm2_cluster_activation_red_hat.sh.in | 4 +++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/WHATS_NEW b/WHATS_NEW index c5bb6de54..918123f1e 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,6 +1,6 @@ Version 2.02.106 - ==================================== - Add systemd native service for clvmd, cmirrord and cluster activation. + Add systemd native service for clvmd, cmirrord and clustered LV activation. Remove ExecReload from lvmetad systemd unit: lvmetad -R undefined. (2.02.98) Do not fork lvmetad if running under systemd. Wipe DM_snapshot_cow signature without prompt in new LVs with blkid wiping. diff --git a/man/lvchange.8.in b/man/lvchange.8.in index 49337e4d1..64231c8e3 100644 --- a/man/lvchange.8.in +++ b/man/lvchange.8.in @@ -74,8 +74,9 @@ logical volumes. If autoactivation option is used (\-aay), the logical volume is activated only if it matches an item in the activation/auto_activation_volume_list set in lvm.conf. If this list is not set, then all volumes are considered for -autoactivation. The autoactivation is not yet supported for -logical volumes that are part of partial or clustered volume groups. +activation. The \-aay option should be also used during system +boot so it's possible to select which volumes to activate using +the activation/auto_activation_volume_list setting. .IP If clustered locking is enabled, -aey will activate exclusively on one node and -aly will activate only on the local node. diff --git a/man/vgchange.8.in b/man/vgchange.8.in index 823d1347c..16adf4df8 100644 --- a/man/vgchange.8.in +++ b/man/vgchange.8.in @@ -76,9 +76,10 @@ In other words, makes the logical volumes known/unknown to the kernel. If autoactivation option is used (\-aay), each logical volume in the volume group is activated only if it matches an item in the activation/auto_activation_volume_list set in lvm.conf. If this -list is not set, then all volumes are considered for autoactivation. -The autoactivation is not yet supported for partial or clustered -volume groups. +list is not set, then all volumes are considered for activation. +The \-aay option should be also used during system boot so it's +possible to select which volumes to activate using the +activation/auto_activation_volume_list settting. .IP If clustered locking is enabled, add 'e' to activate/deactivate exclusively on one node or 'l' to activate/deactivate only diff --git a/scripts/lvm2_cluster_activation_red_hat.sh.in b/scripts/lvm2_cluster_activation_red_hat.sh.in index 2531ef2ad..0d4676c41 100644 --- a/scripts/lvm2_cluster_activation_red_hat.sh.in +++ b/scripts/lvm2_cluster_activation_red_hat.sh.in @@ -31,7 +31,9 @@ activate() { fi echo -n "Activating ${LVM_VGS:-"all VG(s)"}: " - ${lvm_vgchange} -ayl $LVM_VGS || return 1 + # Respect activation/auto_activation_volume_list! + # Call "-aay" which is equal to "-aly" but respects this list. + ${lvm_vgchange} -aay $LVM_VGS || return 1 return 0 }