From c98d894a7b597ae0782ffff1439c7d6251ce2d4f41af1f4b57eca98427a012cc Mon Sep 17 00:00:00 2001 From: Eric ren Date: Wed, 26 Apr 2017 05:48:16 +0000 Subject: [PATCH] Accepting request 491173 from home:ZRen:branches:Base:System MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add check_pv_device_sizes option to check PV and disk sizes bsc#999878 - Add check_pv_device_sizes option to check PV and disk sizes bsc#999878 - Add check_pv_device_sizes option to check PV and disk sizes bsc#999878 OBS-URL: https://build.opensuse.org/request/show/491173 OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=181 --- device-mapper.changes | 6 ++++++ lvm.conf | 25 +++++++++++++++++++++---- lvm2-clvm.changes | 6 ++++++ lvm2.changes | 6 ++++++ 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/device-mapper.changes b/device-mapper.changes index 884ee8d..67ed3eb 100644 --- a/device-mapper.changes +++ b/device-mapper.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 25 12:00:23 UTC 2017 - zren@suse.com + +- Add check_pv_device_sizes option to check PV and disk sizes + bsc#999878 + ------------------------------------------------------------------- Mon Apr 24 17:08:34 UTC 2017 - arvidjaar@gmail.com diff --git a/lvm.conf b/lvm.conf index bae87e0..d88fe23 100644 --- a/lvm.conf +++ b/lvm.conf @@ -1205,11 +1205,28 @@ activation { # Metadata settings # # metadata { - # Default number of copies of metadata to hold on each PV. 0, 1 or 2. - # You might want to override it from the command line with 0 - # when running pvcreate on new PVs which are to be added to large VGs. + # Configuration option metadata/check_pv_device_sizes. + # Check device sizes are not smaller than corresponding PV sizes. + # If device size is less than corresponding PV size found in metadata, + # there is always a risk of data loss. If this option is set, then LVM + # issues a warning message each time it finds that the device size is + # less than corresponding PV size. You should not disable this unless + # you are absolutely sure about what you are doing! + # This configuration option is advanced. + # This configuration option has an automatic default value. + # check_pv_device_sizes = 1 - # pvmetadatacopies = 1 + # Configuration option metadata/pvmetadatacopies. + # Number of copies of metadata to store on each PV. + # Possible options are: 0, 1, 2. + # If set to 2, two copies of the VG metadata are stored on + # the PV, one at the front of the PV, and one at the end. + # If set to 1, one copy is stored at the front of the PV. + # If set to 0, no copies are stored on the PV. This may + # be useful with VGs containing large numbers of PVs. + # The '--pvmetadatacopies' option overrides this setting. + # This configuration option is advanced. + # pvmetadatacopies = 1 # Default number of copies of metadata to maintain for each VG. # If set to a non-zero value, LVM automatically chooses which of diff --git a/lvm2-clvm.changes b/lvm2-clvm.changes index 884ee8d..67ed3eb 100644 --- a/lvm2-clvm.changes +++ b/lvm2-clvm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 25 12:00:23 UTC 2017 - zren@suse.com + +- Add check_pv_device_sizes option to check PV and disk sizes + bsc#999878 + ------------------------------------------------------------------- Mon Apr 24 17:08:34 UTC 2017 - arvidjaar@gmail.com diff --git a/lvm2.changes b/lvm2.changes index 884ee8d..67ed3eb 100644 --- a/lvm2.changes +++ b/lvm2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Apr 25 12:00:23 UTC 2017 - zren@suse.com + +- Add check_pv_device_sizes option to check PV and disk sizes + bsc#999878 + ------------------------------------------------------------------- Mon Apr 24 17:08:34 UTC 2017 - arvidjaar@gmail.com