]> sourceware.org Git - lvm2.git/commit
Fix handling of partial VG for lvm1 format metadata
authorMilan Broz <mbroz@redhat.com>
Wed, 22 Sep 2010 13:45:21 +0000 (13:45 +0000)
committerMilan Broz <mbroz@redhat.com>
Wed, 22 Sep 2010 13:45:21 +0000 (13:45 +0000)
commit8eaef39b3373936954a96f61222ee35883123141
tree2f87c832ee70418a11b7c6ebcd5cef5be1603b07
parent15883340932708467d20a813030a2f133407a9f0
Fix handling of partial VG for lvm1 format metadata

If some lvm1 device is missing, lvm fails on all operations
# vgcfgbackup -f bck -P vg_test
  Partial mode. Incomplete volume groups will be activated read-only.
  3 PV(s) found for VG vg_test: expected 4
  PV segment VG free_count mismatch: 152599 != 228909
  PV segment VG extent_count mismatch: 152600 != 228910
  Internal error: PV segments corrupted in vg_test.
  Volume group "vg_test" not found

Allow loading of lvm1 partial VG by allocating "new" missing PV,
which covers lost space. Also this fake mising PV inform code
that it is partial VG.

https://bugzilla.redhat.com/show_bug.cgi?id=501390
WHATS_NEW
lib/format1/format1.c
test/t-vgcfgbackup-usage.sh
This page took 0.037746 seconds and 5 git commands to generate.