]> 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)
commit980d2d86834f00371afacf1c4dd60f0c4bcb0c5c
tree2f87c832ee70418a11b7c6ebcd5cef5be1603b07
parentec8a4dac468a3b7b04b6e8b922667ef8dd3cc47e
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.030458 seconds and 5 git commands to generate.