Skip to content

Add full metadata balancing support, v5.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest35 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/35Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/format_text/layout.h+1 -10 replies
2/35Add text format specific 'rlocn' ignore flag and access functions.include/.symlinks.in lib/format_text/format-text.c lib/format_text/format-text.h +1 more+25 -00 replies
3/35Add location independent flag and functions to ignore mdas.lib/format_text/text_label.c lib/metadata/metadata.c lib/metadata/metadata.h+20 -00 replies
4/35Move dev_open / dev_close outside _vg_read_raw_area().lib/format_text/format-text.c+30 -100 replies
5/35Move dev_open/dev_close outside vgname_from_mda().lib/format_text/format-text.c lib/format_text/text_label.c+13 -130 replies
6/35Allow raw_read_mda_header to be called from text_label.c.lib/format_text/format-text.c lib/format_text/format-text.h lib/format_text/layout.h +1 more+37 -160 replies
7/35Ensure in-memory state matches on-disk state of mda ignore bit.lib/format_text/format-text.c lib/format_text/text_label.c+5 -00 replies
8/35Add mda_locn_match() internal library function for mapping pv/device to VG mda.lib/format_text/format-text.c lib/metadata/metadata.c lib/metadata/metadata.h+52 -00 replies
9/35Add mda location specific mda_copy constructor.lib/format_text/format-text.c lib/metadata/metadata.c lib/metadata/metadata.h+42 -180 replies
10/35Use vg_mda_count() in vgdisplay.lib/display/display.c+1 -10 replies
11/35Add metadata_areas_ignored list and functions to manage ignored mdas.lib/format1/format1.c lib/format_pool/format_pool.c lib/format_text/format-text.c +4 more+31 -00 replies
12/35Define new functions and vgs/pvs fields related to mda ignore.lib/metadata/metadata-exported.h lib/metadata/metadata.c lib/report/columns.h +1 more+146 -10 replies
13/35Add --metadataignore to pvchange, allowing for ignoring of metadata areas.tools/args.h tools/commands.h tools/pvchange.c+35 -20 replies
14/35Update pvchange, pvs and vgs man pages for metadata ignore.man/pvchange.8.in man/pvs.8.in man/vgs.8.in+12 -30 replies
15/35Implement ignore of mda if bit set by skipping r/w of metadata.lib/format_text/text_label.c+6 -00 replies
16/35Add mdas_empty_or_ignored() helper function.lib/metadata/metadata.c lib/metadata/metadata.h+14 -00 replies
17/35Use mdas_empty_or_ignored() in place of checks for empty mda list.lib/cache/lvmcache.c lib/metadata/metadata.c+20 -140 replies
18/35Update _vg_read and _text_create_text_instance to use fid_add_mda[s].lib/format_text/format-text.c lib/metadata/metadata.c+12 -140 replies
19/35Refactor vg_commit() to add _vg_commit_mdas().lib/metadata/metadata.c+17 -90 replies
20/35Before committing each mda, arrange mdas so ignored mdas get committed first.lib/metadata/metadata.c+12 -10 replies
21/35Add tests for phase 1 of metadata balance - manage per-PV ignore bit.test/t-metadata-balance.sh+41 -00 replies
22/35Define vgmetadatacopies in vgchange man page.man/vgchange.8.in+20 -70 replies
23/35Add mda_copies to VG structures and initialization.lib/config/defaults.h lib/metadata/metadata-exported.h lib/metadata/metadata.c +1 more+6 -00 replies
24/35Add vg get/set methods for VG metadata copies.lib/metadata/metadata-exported.h lib/metadata/metadata.c+18 -00 replies
25/35Make vg->mda_copies persistent in on disk vg metadata.lib/format_text/export.c lib/format_text/import_vsn1.c+6 -01 reply
25/35Make vg->mda_copies persistent in on disk vg metadata.+0 -01 reply
26/35Add vg_mda_copies display field to 'vgs' command.lib/report/columns.h lib/report/report.c+13 -00 replies
27/35Update vgchange tool to accept --vgmetadatacopies.tools/args.h tools/commands.h tools/vgchange.c+51 -30 replies
28/35Implement _vg_metadata_balance and call from vg_write() path.lib/metadata/metadata.c+88 -00 replies
29/35Set vg_mda_copies when pvchange --metadataignore is given.tools/pvchange.c+12 -00 replies
30/35Add --vgmetadatacopies to vgcreate man page, command, and lvm.conf.man/lvm.conf.5.in man/vgcreate.8.in tools/commands.h +2 more+55 -80 replies
31/35Ensure fid mda lists are populated correctly during vgextend.lib/metadata/metadata.c+17 -10 replies
32/35Update check in vg_split_mdas to account for ignored mdas list.lib/metadata/metadata.c+28 -120 replies
33/35Update _vgmerge_single() to move fid->metadata_areas_ignored.tools/vgmerge.c+6 -00 replies
34/35Add --vgmetadatacopies to vgsplit man page and command.tools/commands.h tools/vgsplit.c+6 -30 replies
35/35Update tests to handle phase 2 (vg based) metadata balance.test/t-metadata-balance.sh+151 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/35] Add full metadata balancing support, v5.

This patchset is a fifth round of the metadata balancing support, makes minor revisions and builds on the fourth round of patches submitted (5/26/2010). There are still some definite warts and FIXMEs in the code but this is now a complete patchset for the metadata balance feature.

Changes from the fourth round start around patch 19 and include:
1) Sort mdas so that ignored mdas get committed to disk first. This reduces the time that we may get an inconsistent on-disk state that would require auto-repair.
2) Fixed a few bugs in pv-based metadata balance patchset.
3) Add "phase 2" (vg-based) of metadata balance. Define one function which implements the metadata balancing and call it from the vg_write() path. In most cases, this works just fine, but there are a few checks that need updated for the new 'fid' list of ignored mdas.
4) Update nightly test cases to include all "phase 2" commands such as vgcreate, vgchange, vgsplit, etc.