linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: mdadm: question about tests/07autoassemble
       [not found] <b10c5be1-0b85-320f-9ded-dd8ad533d31c@suse.com>
@ 2017-11-21 18:24 ` Jes Sorensen
  0 siblings, 0 replies; only message in thread
From: Jes Sorensen @ 2017-11-21 18:24 UTC (permalink / raw)
  To: Zhilong Liu, NeilBrown; +Cc: Linux Raid

On 11/08/2017 04:43 AM, Zhilong Liu wrote:
> Hi, Neil and Jes;
>   I have a question that which name is mdadm expected, md0 or md127 here?
> 
> the case is:
> 
> ./mdadm --quiet -CR /dev/md1 -l1 -n2 /dev/loop0 /dev/loop1
> --homehost=testing --auto=yes
> ./mdadm --quiet -CR /dev/md2 -l1 -n2 /dev/loop2 /dev/loop3
> --homehost=testing --auto=yes
> ./mdadm --quiet -CR /dev/md0 -l0 -n2 /dev/md1 /dev/md2
> --homehost=testing --auto=yes
> 
> ./mdadm -Ss
> ./mdadm --quiet -As -c /dev/null --homehost=testing -vvv
> 
> */linux-apta:~/mdadm-test #/* cat /proc/mdstat
> Personalities : [raid1] [raid0]
> md127 : active raid0 md1[0] md2[1]
>       33792 blocks super 1.2 512k chunks
> 
> md2 : active raid1 loop2[0] loop3[1]
>       18944 blocks super 1.2 [2/2] [UU]
> 
> md1 : active raid1 loop0[0] loop1[1]
>       18944 blocks super 1.2 [2/2] [UU]
> 
> unused devices: <none>
> 
> And I have another question, I still don't find "when and where" got the
> name of md127,
> It didn't invoke the find_free_devnm, and I debug with udevadm, still
> confused. would
> you give me some points on it? I would continue to find which code does
> this.

Did you pause between mdadm -Ss and mdadm -As ?

It may be md0 was still in use. You aren't really guaranteed the name,
unless you specify it in /etc/mdadm.conf or on the command line?

Cheers,
Jes

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-21 18:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <b10c5be1-0b85-320f-9ded-dd8ad533d31c@suse.com>
2017-11-21 18:24 ` mdadm: question about tests/07autoassemble Jes Sorensen

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).