1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/lib
Dave Wysochanski a9d8bf269a Allow 'all' and 'unmanaged' values for --vgmetadatacopies.
Allowing an 'all' and 'unmanaged' value is more intuitive, and
provides a simple way for users to get back to original LVM behavior
of metadata written to all PVs in the volume group.

If the user requests "--vgmetadatacopies unmanaged", this instructs
LVM not to manage the ignore bits to achieve a specific number of
metadata copies in the volume group.  The user is free to use
"pvchange --metadataignore" to control the mdas on a per-PV basis.
If the user requests "--vgmetadatacopies all", this instructs LVM
to do 2 things: 1) clear all ignore bits, and 2) set the "unmanaged"
policy going forward.

Internally, we use the special MAX_UINT32 value to indicate 'all'.
This 'just' works since it's the largest value possible for the
field and so all 'ignore' bits on all mdas in the VG will get
cleared inside _vg_metadata_balance().  However, after we've
called the _vg_metadata_balance function, we check for the special
'all' value, and if set, we write the "unmanaged" value into the
metadata.  As such, the 'all' value is never written to disk.

Signed-off-by: Dave Wysochanski <dwysocha@redhat.com>
2010-06-28 20:40:01 +00:00
..
activate Account for mirror transient status when doing lvconvert --repair. 2010-05-24 15:32:20 +00:00
cache Use mdas_empty_or_ignored() in place of checks for empty mda list. 2010-06-28 20:34:58 +00:00
commands Revert _init_rand() to reset errno - restores original init behavior. 2010-06-01 21:47:57 +00:00
config Add mda_copies to VG structures and initialization. 2010-06-28 20:36:37 +00:00
datastruct Remove unnecessary / duplicate dm_list macros and functions. 2009-11-25 20:44:07 +00:00
device Avoid selecting names under /dev/block if there is an alternative. 2010-05-24 22:53:48 +00:00
display Use vg_mda_count() in vgdisplay. 2010-06-28 20:32:21 +00:00
error Fix last check-ins: seg can be NULL. 2009-02-28 20:04:24 +00:00
filters Don't merge unchanged persistent cache file before dumping if tool scanned. 2010-06-01 19:02:12 +00:00
format1 Add metadata_areas_ignored list and functions to manage ignored mdas. 2010-06-28 20:33:22 +00:00
format_pool Add metadata_areas_ignored list and functions to manage ignored mdas. 2010-06-28 20:33:22 +00:00
format_text Make vg->mda_copies persistent in on disk vg metadata. 2010-06-28 20:37:10 +00:00
freeseg Fix reporting of LV fields alongside unallocated PV segments. 2008-06-25 16:52:27 +00:00
label Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
locking Clean up cluster lock mode and flags definition. 2010-06-17 12:48:54 +00:00
log Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
metadata Allow 'all' and 'unmanaged' values for --vgmetadatacopies. 2010-06-28 20:40:01 +00:00
mirror Replace strncmp kernel version number checks with proper ones 2010-05-24 23:11:34 +00:00
misc Use absolute paths in commands 2010-06-03 13:50:26 +00:00
mm Preload libc locale messages. 2010-06-24 08:29:30 +00:00
replicator Right directory name for replicator files. 2010-05-21 13:17:20 +00:00
report Allow 'all' and 'unmanaged' values for --vgmetadatacopies. 2010-06-28 20:40:01 +00:00
snapshot Install plugins to subdirs 2010-05-06 10:07:46 +00:00
striped Use macro outsize() with check for error return value. 2010-01-07 14:46:51 +00:00
unknown Fix the "const discarded" warnings introduced in the unknown segment patch. 2009-10-22 10:38:07 +00:00
uuid Use log_error macro consistently throughout in place of log_err. 2009-07-15 20:02:46 +00:00
zero Attempt to load dm-zero module if zero target needed but not present. (mbroz) 2009-05-27 13:05:53 +00:00
Makefile.in Replicator: base lvm2 support 2010-05-21 12:36:30 +00:00