1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 03:27:58 +03:00
lvm2/lib/cache
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
..
lvmcache.c cache: Set correct vgid when changing PV header. 2015-04-09 21:13:55 +01:00
lvmcache.h cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
lvmetad.c cache: Store metadata size and checksum. 2015-03-18 23:43:02 +00:00
lvmetad.h reporting: should not fail with foreign option if lvm1 pvs exist 2015-03-10 13:56:25 -05:00