Thread (2 messages) 2 messages, 2 authors, 2020-02-24

Re: [PATCH v2 1/1] mdadm.8: add note information for raid0 growing operation

From: Jes Sorensen <hidden>
Date: 2020-02-24 21:03:39

On 2/24/20 6:34 AM, Petr Vorel wrote:
From: Coly Li <redacted>

When growing a raid0 device, if the new component disk size is not
big enough, the grow operation may fail due to lack of backup space.

The minimum backup space should be larger than:
 LCM(old, new) * chunk-size * 2

where LCM() is the least common multiple of the old and new count of
component disks, and "* 2" comes from the fact that mdadm refuses to
use more than half of a spare device for backup space.

There are users reporting such failure when they grew a raid0 array
with small component disk. Neil Brown points out this is not a bug
and how the failure comes. This patch adds note information into
mdadm(8) man page in the Notes part of GROW MODE section to explain
the minimum size requirement of new component disk size or external
backup size.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Cc: NeilBrown <redacted>
Cc: Jes Sorensen <redacted>
Cc: Paul Menzel <redacted>
Cc: Wols Lists <redacted>
Cc: Nix <redacted>
Signed-off-by: Coly Li <redacted>
---
Hi,

Coly haven't sent v2, but it's already prepared in openSUSE package [1],
therefore sending it on his behalf.

Kind regards,
Petr
Applied!

Thanks,
Jes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help