: Add infrastructure for metadata balancing.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | Add copy constructor for struct metadata_area.lib/ | +36 | 0 replies | |
| 2/12 | Change 'filler' to 'flags' in on-disk 'raw_locn' structure.lib/ | +1 | 0 replies | |
| 3/12 | Add text format specific 'rlocn' flag and access functions.include/ lib/ lib/ +1 more | +24 | 0 replies | |
| 4/12 | Add text format specific code to read and write 'rlocn' flags.lib/ lib/ lib/ | +14 | 0 replies | |
| 5/12 | Add flag and functions to disable mdas on a format independent basis.lib/ lib/ lib/ | +20 | 0 replies | |
| 6/12 | Make sure format independent mda disable matches format dependent.lib/ lib/ | +3 | 0 replies | |
| 7/12 | Add vg field to struct physical_volume and find_vg_by_pv().lib/ lib/ lib/ | +8 | 0 replies | |
| 8/12 | Add mda_locn_match() internal library function.lib/ lib/ lib/ | +52 | 0 replies | |
| 9/12 | Define new functions and vgs/pvs fields related to mda disable/enable.lib/ lib/ lib/ +1 more | +109 | 0 replies | |
| 10/12 | Add --metadatadisable to pvchange, allowing for disabling of metadata areas.tools/ tools/ tools/ | +30 | 0 replies | |
| 11/12 | Update pvchange, pvs and vgs man pages for metadata disable.man/ man/ man/ | +8 | 0 replies | |
| 12/12 | Add tests for metadata balance - set/clear/display per-PV disable bit.test/ | +41 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.