Skip to content

: Add infrastructure for metadata balancing.

Dave Wysochanski lvm-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12Add copy constructor for struct metadata_area.lib/format_text/format-text.c+36 -380 replies
2/12Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/format_text/layout.h+1 -10 replies
3/12Add text format specific 'rlocn' flag and access functions.include/.symlinks.in lib/format_text/format-text.c lib/format_text/format-text.h +1 more+24 -00 replies
4/12Add text format specific code to read and write 'rlocn' flags.lib/format_text/format-text.c lib/format_text/format-text.h lib/format_text/text_label.c+14 -20 replies
5/12Add flag and functions to disable mdas on a format independent basis.lib/format_text/text_label.c lib/metadata/metadata.c lib/metadata/metadata.h+20 -00 replies
6/12Make sure format independent mda disable matches format dependent.lib/format_text/format-text.c lib/format_text/text_label.c+3 -00 replies
7/12Add vg field to struct physical_volume and find_vg_by_pv().lib/format_text/import_vsn1.c lib/metadata/metadata-exported.h lib/metadata/metadata.c+8 -00 replies
8/12Add mda_locn_match() internal library function.lib/format_text/format-text.c lib/metadata/metadata.c lib/metadata/metadata.h+52 -00 replies
9/12Define new functions and vgs/pvs fields related to mda disable/enable.lib/metadata/metadata-exported.h lib/metadata/metadata.c lib/report/columns.h +1 more+109 -00 replies
10/12Add --metadatadisable to pvchange, allowing for disabling of metadata areas.tools/args.h tools/commands.h tools/pvchange.c+30 -20 replies
11/12Update pvchange, pvs and vgs man pages for metadata disable.man/pvchange.8.in man/pvs.8.in man/vgs.8.in+8 -30 replies
12/12Add tests for metadata balance - set/clear/display per-PV disable 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 0/12]: Add infrastructure for metadata balancing.

This patchset is a second round of the metadata balancing support. It adds the infrastructure to set a bit inside the mda header on a per-PV basis, control it from pvchange, and display the number of mdas with this bit set on a particular PV or VG.

The disable/enable is implemented at the low level by taking advantage of the 'filler' field in the mda_header structure on disk. Normally this is written to 0, but I propose we change this 32-bit field to a 'flags' field and then define one flag that is a MDA disable. Much of the patchset deals with propagating the disable through the various LVM layers, and attempts to do this in a way that is true to the existing abstractions.

This code should now work for non-orphan PVs as well as orphans. Note that this patchset does not actually act on the bit to ignore mdas with the bit set. This should be fairly easy and will come in future patches.

Applies cleanly on upstream:
commit 5584f2ae4621b03dc890c6e1a9028eb8add259a1

Author: Jonathan Earl Brassow <[email protected]>
Date:   Wed Jan 27 22:28:05 2010 +0000

Was using dm_list_iterate_items when I should have been using *_safe. This had the effect of segfaulting the log daemon when converting a mirror from one log type to another.