reassign 415441 mdadm
thanks

Hi Martin,

We spoke a bit about this on IRC. I agreed to ask upstream. In the log
of this bug you'll find some comments from both suspend and raid people.

To summarize the problem, on the initramfs the mdadm script should (in some
cases) be run before uswsusp. This is problematic if mdadm starts syncing
the array, nothing should _write_ to the raid before resume happens.
Fortunately one of the raid people found the solution, namely:

> The trick is to use the 'start_ro' module parameter.
>   echo 1 > /sys/module/md_mod/parameters/start_ro
> 
> Then md will start arrays assuming read-only.  No resync will be
> started, no superblock will be written.  They stay this way until the
> first write at which point they become normal read-write and any
> required resync starts.
> 
> So you can start arrays 'readonly', and resume off a raid1 without any
> risk of the the resync starting when it shouldn't.
> 
> It is probably best to 'echo 0 > ....' once you have committed to a
> normal boot, but it isn't really critical.

This was tested by the OP, and it works. Could you please apply the
(trivial) patch, found in the log?

Thanks,

Tim

Attachment: signature.asc
Description: PGP signature

Reply via email to