linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Raid array name by mdadm
@ 2015-10-28 18:43 Sheng Yang
  2015-10-28 19:56 ` Dragan Milivojević
  0 siblings, 1 reply; 5+ messages in thread
From: Sheng Yang @ 2015-10-28 18:43 UTC (permalink / raw)
  To: linux-raid

Hi guys,

I am trying to find a way to make mdadm create /dev/md/<devicename>
instead of /dev/mdnn only. I found it seems possible from the manual
of mdadm(http://linux.die.net/man/8/mdadm). It said:

If the md device name is in a 'standard' format as described in DEVICE
NAMES, then it will be created, if necessary, with the appropriate
device number based on that name. If the device name is not in one of
these formats, then a unused device number will be allocated. The
device number will be considered unused if there is no active array
for that number, and there is no entry in /dev for that number and
with a non-standard name. Names that are not in 'standard' format are
only allowed in "/dev/md/".

I tried to create a raid using:

# mdadm --create device-123 --verbose --level=mirror --raid-devices=2
--name=device-123 /dev/sda /dev/sdb
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md/device-123 started.

But what I got in the end is only /dev/md127. The directory of
/dev/md/ doesn't exist.

Though the detail showed the correct name

# mdadm --detail --scan
ARRAY /dev/md127 metadata=1.2 name=98abb2346b83:device-123
UUID=6a31df29:adec4bff:e8867610:c0e10723

It's much more convenient if I could use the name of
/dev/md/device-123 instead of /dev/md127. I've tried google for hours
without success.

# mdadm --version
mdadm - v3.3 - 3rd September 2013

If anyone can shed some light on it, I would be appreciate!

Thanks!

--Sheng

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

end of thread, other threads:[~2015-10-30 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-28 18:43 Raid array name by mdadm Sheng Yang
2015-10-28 19:56 ` Dragan Milivojević
2015-10-28 21:40   ` Sheng Yang
2015-10-28 22:01     ` Sheng Yang
2015-10-30 12:32       ` Anugraha Sinha

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