Skip to content

Add infrastructure for metadata balancing, v4.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/format_text/layout.h+1 -10 replies
2/18Add 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/18Add 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/18Move dev_open / dev_close outside _vg_read_raw_area().lib/format_text/format-text.c+30 -100 replies
5/18Move dev_open/dev_close outside vgname_from_mda().lib/format_text/format-text.c lib/format_text/text_label.c+13 -130 replies
6/18Allow 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/18Ensure 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/18Add 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/18Add mda location specific mda_copy constructor.lib/format_text/format-text.c lib/metadata/metadata.c lib/metadata/metadata.h+42 -180 replies
10/18Add fid_add_mda() and fid_add_mdas() helpers to manage ignored mdas.lib/format_text/format-text.c lib/metadata/metadata-exported.h lib/metadata/metadata.c +2 more+28 -00 replies
11/18Define 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+139 -10 replies
12/18Add --metadataignore to pvchange, allowing for ignoring of metadata areas.tools/args.h tools/commands.h tools/pvchange.c+32 -20 replies
13/18Update pvchange, pvs and vgs man pages for metadata ignore.man/pvchange.8.in man/pvs.8.in man/vgs.8.in+8 -30 replies
14/18Implement ignore of mda if bit set by skipping r/w of metadata.lib/format_text/text_label.c+6 -00 replies
15/18Add mdas_empty_or_ignored() helper function.lib/metadata/metadata.c lib/metadata/metadata.h+14 -00 replies
16/18Use mdas_is_empty_or_ignored() in place of checks for empty mda list.lib/cache/lvmcache.c lib/metadata/metadata.c+20 -140 replies
17/18Update _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
18/18Add tests for metadata balance - set/clear/display per-PV ignore bit.test/t-metadata-balance.sh+41 -00 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/18] Add infrastructure for metadata balancing, v4.

This patchset is a fourth round of the metadata balancing support, and builds on the third round of patches already submitted (2/9/2010). It adds the infrastructure to set a bit inside the mda header on a per-PV basis, control it from pvchange, display the number of mdas with this bit set on a particular PV or VG, but skips the VG-based parameters to control the per-PV bits. The vg-based parameters and control is best dealt with in another patchset.

Changes from the third round start around patch 9 and include:
1) Renamed 'disable' to 'ignore' everywhere, per the last review, and incorporate review comments.
2) Separate 'metadata_area_ignored' list on the 'fid' structure. This seemed to simplify and isolate the ignored code from existing code and should be less risky than checking for a flag in the vg_write() path.
3) MDA ignore/unignore now implemented. If the bit is set on disk, at _text_read() time we treat it as a PV with 0 mdas. This means that when we _vg_read() and construct the VG, we will adjust the lvmcache and mda lists based on another PVs metadata.
4) Added various helper functions to refactor and simplify code. These include fid_add_mda() and fid_add_mdas(), and mdas_empty_or_ignored(), and a location specific mda copy constructor.
5) Various bugs fixed from the third round of patches.

Still TODO:
1) Submit vg-based parameters and control. For now we can control on a per-PV basis and this should be adequate for the first release.