From: Neil Brown <neilb@suse.de>
To: Adrian Sandor <aditsu@yahoo.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: "mdadm -Dsv" output
Date: Wed, 30 Jun 2010 10:50:56 +1000 [thread overview]
Message-ID: <20100630105056.70dbc97a@notabene.brown> (raw)
In-Reply-To: <221904.67920.qm@web32407.mail.mud.yahoo.com>
On Tue, 29 Jun 2010 16:39:47 -0700 (PDT)
Adrian Sandor <aditsu@yahoo.com> wrote:
> Well, I figured out a few things after spending some time with the mdadm man page:
> - the "_0" suffix is possibly related to the "homehost" (I guess the computer's hostname was modified) and auto-assembly; I have both "n" and "n_0" symlinks in /dev/md on those machines, pointing to the same "/dev/mdn" devices
> - I can use /proc/mdstat for info instead; it looks decent, uses "mdn" names, can be accessed as a normal user, and doesn't require mdadm
> - there's also /proc/partitions - very nifty
>
> Still, I would like the output of mdadm -Dsv to be improved (regarding formatting and consistency).
>
Thanks for your comments.
The missing space before "level" is fixed in newer versions of mdadm.
The variability in the array name (/dev/md0 vs /dev/md/0 vs /dev/md/0_0) does
appear clumsy I agree.
The name should be the name that was used to assemble the array. If mdadm
was asked to choose a name automatically it will do the best it case, which
is different depending on the style of metadata used.
With the original 0.90 metadata, the array only knows a number that can
identify it, so you get /dev/mdNN - e.g. /dev/md0
With 1.x metadata, the array knows a name, so you get /dev/md/XXXX, e.g.
/dev/md/0 or /dev/md/home
depending on what name was used to create it.
If the array appears to come from a different host, then mdadm appends a _NN
suffix to ensure the name doesn't conflict with the name of a local array.
NeilBrown
next prev parent reply other threads:[~2010-06-30 0:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 23:39 "mdadm -Dsv" output Adrian Sandor
2010-06-30 0:50 ` Neil Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-06-29 16:37 Adrian Sandor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100630105056.70dbc97a@notabene.brown \
--to=neilb@suse.de \
--cc=aditsu@yahoo.com \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).