1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00
Jonathan Brassow cbcbb67731 mirror: Fix overly-concerning warning on mirror up-convert failure.
Attempting to up-convert an inactive mirror when there is insufficient
space leads to the following message:
  Unable to allocate extents for mirror(s).
  ABORTING: Failed to remove temporary mirror layer inactive_mimagetmp_3.
  Manual cleanup with vgcfgrestore and dmsetup may be required.
This is caused by a failure to execute the 'deactivate_lv' function in
the error condition.  The deactivate returns an error because the LV is
already inactive.  This patch checks if the LV is activate and calls
deactivate_lv only if it is.  This allows the error cleanup code to work
properly in this condition.

It wasn't that big of a deal anyway, since there was no previous vg_commit
that needed to be reverted.  IOW, no harm was done if the allocation failed.
The message was scary and useless.
2013-04-10 16:47:04 -05:00
..
2008-01-30 14:00:02 +00:00
2013-04-02 15:16:53 +02:00
2008-01-30 14:00:02 +00:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-23 14:37:21 +02:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2013-03-13 15:13:54 +01:00
2013-03-13 15:13:54 +01:00
2013-04-02 15:16:53 +02:00
2012-08-25 20:35:48 +01:00
2010-07-27 20:05:29 +00:00
2012-10-17 15:37:26 +02:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-08-25 20:35:48 +01:00
2012-02-27 10:06:58 +00:00
2012-09-26 14:49:15 +02:00
2012-10-17 15:37:26 +02:00