mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
Allow 'lvconvert --repair' to operate on RAID 4/5/6.
The higher level RAIDs should be allowed for repair along with 'mirror' and 'raid1' segment types.
This commit is contained in:
parent
0e92b70f71
commit
e8eb64c878
@ -1,5 +1,6 @@
|
||||
Version 2.02.93 -
|
||||
====================================
|
||||
Allow 'lvconvert --repair' to operate on RAID 4/5/6
|
||||
Fix 'build_parallel_areas_from_lv' to work properly with RAID 4/5/6
|
||||
|
||||
Version 2.02.92 - 20th February 2012
|
||||
|
@ -1736,7 +1736,8 @@ static int _lvconvert_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
if (arg_count(cmd, repair_ARG) && !(lv->status & MIRRORED)) {
|
||||
if (arg_count(cmd, repair_ARG) &&
|
||||
!(lv->status & MIRRORED) && !(lv->status & RAID)) {
|
||||
if (arg_count(cmd, use_policies_ARG))
|
||||
return ECMD_PROCESSED; /* nothing to be done here */
|
||||
log_error("Can't repair non-mirrored LV \"%s\".", lv->name);
|
||||
|
Loading…
Reference in New Issue
Block a user