From: Neil Brown <neilb@suse.de>
To: Ben DJ <bendj095124367913213465@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Clarify /etc/mdadm.conf format and content?
Date: Mon, 9 Nov 2009 15:57:22 +1100 [thread overview]
Message-ID: <19191.41266.193710.349961@notabene.brown> (raw)
In-Reply-To: message from Ben DJ on Thursday November 5
On Thursday November 5, bendj095124367913213465@gmail.com wrote:
> Neil,
>
> Reading your blog post,
>
> "Auto-assembly mode for mdadm"
> http://neil.brown.name/blog/20060521092609
>
> Section "Bootstrapping" says
>
> -------------
> On problem with introducing this functionality is that people have
> pre-existing array that aren't tagged with the host name. To help we
> this we will have a new 'update' option of --assemble:
> --update=homehost which will update the host information in the
> superblock prior to assembly. This is usable fairly easily for
> everything except an array holding a root filesystem. In order to
> avoid needing to boot from different media, there will be an option
> that can safely be used from an initramfs which will do the right
> thing.
>
> This will probably be called --auto-update-home-host.
>
> This option is only meaningful when doing a hostname based auto
> assembly. If the autoassembly process finds anything to assemble, the
> option is ignored. However if nothing is found with the right host
> name, then a second pass is made. On this pass, any md array that is
> found is updated to belong to the current host, and is automatically
> assembled.
>
> Thus it should be safe to always run mdadm with
> --auto-update-home-host in initramfs. It will only do its magic once,
> and after that the arrays should always assemble properly.
> -------------
>
> That describes the situation I have -- an array holding the root file
> system, that's not tagged with the hostname.
>
> Can you please explain HOW one runs "with --auto-update-home-host in
> initramfs" "to avoid needing to boot from different media"? My
> existing arrays are tagged with the wrong name, and I'm simply trying
> to correct it.
You would need to modify the initramfs ... or get it to give you a
shell prompt so you can run the commands by hand.
The details of doing this depend very much on the distro and the
content of the initramfs it creates.
If you want to change the name in an array that hold your root
filesystem, your best approach would be to boot from a CDROM and
then use e.g.
mdadm --assemble /dev/md --update=name --name=foo:bar /dev/list-of-devices
NeilBrown
next prev parent reply other threads:[~2009-11-09 4:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-05 5:53 Clarify /etc/mdadm.conf format and content? Ben DJ
2009-11-05 6:17 ` Michael Evans
2009-11-05 7:21 ` Ben DJ
2009-11-05 7:31 ` Michael Evans
2009-11-05 16:24 ` Ben DJ
2009-11-05 17:03 ` Ben DJ
2009-11-09 4:57 ` Neil Brown [this message]
2009-11-10 0:11 ` Michael Evans
2009-11-12 1:05 ` Ben DJ
2009-11-07 17:06 ` Doug Ledford
2009-11-12 0:48 ` Ben DJ
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=19191.41266.193710.349961@notabene.brown \
--to=neilb@suse.de \
--cc=bendj095124367913213465@gmail.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).