linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mdadm --create parameter ordering
@ 2015-07-13 10:26 Steven Reddie
  2015-07-13 10:59 ` Robin Hill
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Reddie @ 2015-07-13 10:26 UTC (permalink / raw)
  To: linux-raid

Hi,

Given the following command:

    mdadm -Cf /dev/md3 -e1.2 -n5 -l6 /dev/sdga5 /dev/sdgb5 /dev/sdgc5
/dev/sdgd5 /dev/sdge5 -u<uuid>

Is the order that the disks are specified on the command-line significant?

Somebody suggested this command to put the disks back in the correct
order (though I believe he was mistaken about the correct order). It
seems to me that if the order on the command-line is significant that
this would have caused parity to get recalculated (based on the
[incorrect] order of the disks) and the new parity to be written over
actual data blocks. I see no evidence that this has occurred, which
leads me to believe that the actual ordering within the array is
detected and everything proceeds as it should, in which case issuing
the command above likely was a very time-consuming no-op.

Also, it seems that I should be able to issue such a command without
the full scan of the disks. Is that what the "--run" option is for? If
so, does "--readonly" protect me from harm that improper use of
"--run" may cause?

Thanks,

Steven

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-18  3:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 10:26 mdadm --create parameter ordering Steven Reddie
2015-07-13 10:59 ` Robin Hill
2015-07-13 13:17   ` Phil Turmel
2015-07-18  3:08     ` Steven Reddie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).