1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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.
Return proper error codes for some failing lvconvert funtions.
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.
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.

View File

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

View File

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