1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
Alasdair G Kergon a9d48bae2f cache: Set correct vgid when changing PV header.
pv_write is called both to write orphans and to rewrite PV headers
of PVs in VGs.  It needs to select the correct VG id so that the
internal cache state gets updated correctly.

It only affected commands that involved further steps after
the pv_write and was often masked because the metadata would
be re-read off disk and correct itself.

"Incorrect metadata area header checksum" warnings appeared.

Example:
  Create vg1 containing dev1, dev2 and dev3.
  Hide dev1 and dev2 from the system.
  Fix up vg1 with vgreduce --removemissing.
  Bring back dev1 and dev2.
  In a single operation reinstate dev1 and dev2 into vg1 (vgextend).
Done as separate operations (automatically fix-up dev1 and dev2 as orphans,
then vgextend) it worked, but done all in one go the internal cache got
corrupted and warnings about checksum errors appeared.
2015-04-09 21:13:55 +01:00
..
archive.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
archiver.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
archiver.h vgconvert: Do not call lvmetad_vg_remove (path shared with vgcfgbackup). 2013-09-18 12:53:11 +02:00
export.c comments: Use full flag names. 2015-03-09 18:53:22 +00:00
flags.c metadata: process_each_lv_in_vg: get the list of LVs to process first, then do the processing 2015-03-24 08:43:07 +01:00
format-text.c cache: Set correct vgid when changing PV header. 2015-04-09 21:13:55 +01:00
format-text.h report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
import_vsn1.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
import-export.h cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
import.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
layout.h cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
tags.c report: select: refactor: move str_list to libdm 2014-06-17 16:27:20 +02:00
text_export.h Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
text_import.h cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
text_label.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00