In plain to drbd conversion, rename LVs back on failure
authorKlaus Aehlig <aehlig@google.com>
Tue, 23 Apr 2013 09:35:18 +0000 (11:35 +0200)
committerKlaus Aehlig <aehlig@google.com>
Fri, 26 Apr 2013 13:06:02 +0000 (15:06 +0200)
commitf38270c6da11811d432db51061a32d3b85823372
treedddc1ee0f05940b5d1e66d15fa97a673276b00af
parentd466fd8b8d91b05ea6f7be393e5ef4cd13bf97e4
In plain to drbd conversion, rename LVs back on failure

Currently, if converting an instance from plain to drbd fails after
renaming the original LVs, the instance is left in an inconsistent
state. This commit tries to undo the renaming if a failure occurs
on assembling a DRBD device, e.g., when device minor numbers are
exhausted. (Issue 229)

Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>
lib/cmdlib.py