1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

config: Adjust description of activation_mode.

This commit is contained in:
Alasdair G Kergon 2014-07-21 15:50:47 +01:00
parent 8c231a5f4d
commit 513fd029a6
3 changed files with 18 additions and 18 deletions

View File

@ -10,7 +10,8 @@ Version 2.02.108 -
Prompt for confirmation before change LV into a snapshot exception store. Prompt for confirmation before change LV into a snapshot exception store.
Return proper error codes for some failing lvconvert funtions. Return proper error codes for some failing lvconvert funtions.
Add initial code to use cache tools (cache_check|dump|repair|restore). Add initial code to use cache tools (cache_check|dump|repair|restore).
Add "degraded" activation mode and make it the default. Support lvdisplay --maps for raid.
Add --activationmode degraded to activate degraded raid volumes by default.
Add separate lv_active_{locally,remotely,exclusively} LV reporting fields. Add separate lv_active_{locally,remotely,exclusively} LV reporting fields.
Recognize "auto"/"unmanaged" values in selection for appropriate fields only. Recognize "auto"/"unmanaged" values in selection for appropriate fields only.
Add report/binary_values_as_numeric lvm.conf option for binary values as 0/1. Add report/binary_values_as_numeric lvm.conf option for binary values as 0/1.

View File

@ -1042,26 +1042,24 @@ activation {
# operation is complete. # operation is complete.
polling_interval = 15 polling_interval = 15
# 'activation_mode' determines how logical volumes are activated if # 'activation_mode' determines how Logical Volumes are activated if
# devices are missing. Possible settings are: # any devices are missing. Possible settings are:
# #
# "complete" - Only allow activation of an LV if all of the PVs # "complete" - Only allow activation of an LV if all of the Physical
# that it uses are available (i.e. the volume group # Volumes it uses are present. Other PVs in the Volume
# is complete). There may be a failed PV in the # Group may be missing.
# volume group; but if a particular LV is not on that
# PV, it is still allowed to activate in this mode.
# #
# "degraded" - Like "complete", except that RAID logical volumes of # "degraded" - Like "complete", but additionally RAID Logical Volumes of
# segment type "raid{1,4,5,6,10}" are activated if # segment type raid1, raid4, raid5, radid6 and raid10 will
# they have sufficient redundancy to present the entire # be activated if there is no data loss, i.e. they have
# addressable range of the logical volume. # sufficient redundancy to present the entire addressable
# range of the Logical Volume.
# #
# "partial" - Allow activation for any logical volume - even if # "partial" - Allows the activation of any Logical Volume even if
# a missing or failed PV would cause a portion of the # a missing or failed PV could cause data loss with a
# logical volume to be inaccessible. (E.g. a stripe # portion of the Logical Volume inaccessible.
# volume that has lost one of its members would be # This setting should not normally be used, but may
# unable to access a portion of the logical volume.) # sometimes assist with data recovery.
# This setting is not recommended for normal use.
# #
# This setting was introduced in LVM version 2.02.108. It corresponds # This setting was introduced in LVM version 2.02.108. It corresponds
# with the '--activationmode' option for lvchange and vgchange. # with the '--activationmode' option for lvchange and vgchange.

View File

@ -2203,6 +2203,7 @@ out:
return r; return r;
} }
/* FIXME Move this non-activation code elsewhere */
static int _lv_raid_is_redundant(struct logical_volume *lv) static int _lv_raid_is_redundant(struct logical_volume *lv)
{ {
struct lv_segment *raid_seg = first_seg(lv); struct lv_segment *raid_seg = first_seg(lv);