All of lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: prefered way to update mdadm/mdadm.conf
Date: Sat, 18 Apr 2009 10:18:38 +0200	[thread overview]
Message-ID: <20090418081838.GC2124@maude.comedia.it> (raw)
In-Reply-To: <001b01c9bfa1$c5bd30c0$0a00a8c0@vorg>

On Fri, Apr 17, 2009 at 02:16:22PM -0700, Timothy D. Lenz wrote:
>There seems to be 2 ways to update mdadm.conf. One puts a little more info in and both create duplicate info that msut be removed.
>Which is the better way:
>
>mdadm --examine --scan >> /etc/mdadm/mdadm.conf
>mdadm --detail --scan >> /etc/mdadm/mdadm.conf

the former will check physical devices for md superblock, and read
information from the found sb.
the latter will query active array for information

I use mdadm -Esc partition | grep ARRAY >> /etc/mdadm/mdadm.conf
to inventory all array whether they are active or not.

I still would suggest checking the content of mdadm.conf after.

L.

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

      parent reply	other threads:[~2009-04-18  8:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-17 21:16 prefered way to update mdadm/mdadm.conf Timothy D. Lenz
2009-04-17 21:30 ` Federico
2009-04-17 22:41 ` Neil Brown
2009-04-18  8:18 ` Luca Berra [this message]

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=20090418081838.GC2124@maude.comedia.it \
    --to=bluca@comedia.it \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.