]> sourceware.org Git - lvm2.git/commit
vgsplit: Fix intermediate metadata corruption.
authorAlasdair G Kergon <agk@redhat.com>
Fri, 22 Sep 2017 17:02:58 +0000 (18:02 +0100)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 22 Sep 2017 17:34:34 +0000 (18:34 +0100)
commit8146548d25e9104f0d530d943290d448c1994c0a
treedc3cc78a8d16b778db0d5f8ec62e4649d622fcce
parentb0f4e0fcec1a50b73fbc4f05bfd2d385895bc3bc
vgsplit: Fix intermediate metadata corruption.

Changing the VG of a PV uses the same on-disk mechanism as vgrename.
This relies on recognising both the old and new VG names.  Prior to this
patch the vgsplit code incorrectly provided the new VG name twice
instead of the old and new ones.  This lead the low-level mechanism not
to recognise the device as already belonging to a VG and so paying no
attention to the location of its existing metadata, sometimes partly
overwriting it and then later trying to read the corrupt metadata and
issuing a checksum error.
WHATS_NEW
lib/format_text/format-text.c
tools/vgsplit.c
This page took 0.030925 seconds and 5 git commands to generate.