]> sourceware.org Git - lvm2.git/commit
lvconvert: prevent non-synced raid1 primary leg repair
authorHeinz Mauelshagen <heinzm@redhat.com>
Fri, 28 Oct 2016 13:54:27 +0000 (15:54 +0200)
committerHeinz Mauelshagen <heinzm@redhat.com>
Fri, 28 Oct 2016 13:55:10 +0000 (15:55 +0200)
commit8270ff5702e0fa846714ac7366aade84b3e85209
tree0b98ed732a5d497672e1f08e6a8d9fd6630f73b6
parente118b65d651d921390d3e8bbcac7170c3894d048
lvconvert: prevent non-synced raid1 primary leg repair

(Automatic) repair may not be allowed during the initial sync of an upconverted
linear LV, because the data on the failing, primary leg hasn't been completely
synchronized to the N-1 other legs of the raid1 LV (replacing failed legs during
repair involves discontinuing access to any replaced legs data, thus preventing
data recovery on the primary leg e.g. via dd_rescue).

Even though repair would not cause data loss when adding legs to a fully synced
raid1 LV, we don't have information yet defining this state yet (e.g. a raid1
LV flag telling the fully synchronized status before any legs were added),
hence can't automatically decide to allow to repair.

If nonetheless a repair on a non-synced raid1 LVs is intended, the "--force"
option has to be provided.

Resolves: rhbz1311765
WHATS_NEW
lib/metadata/metadata-exported.h
lib/metadata/raid_manip.c
tools/lvconvert.c
This page took 0.037277 seconds and 5 git commands to generate.