Linux RAID subsystem development
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: "Michał Mirosław" <mirq-linux@rere.qmqm.pl>
Cc: Shaohua Li <shli@kernel.org>, linux-raid@vger.kernel.org
Subject: Re: [PATCH] md: allow changing set_name of running array
Date: Mon, 04 Sep 2017 12:22:33 +1000	[thread overview]
Message-ID: <874lsjdwye.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <20170901164110.y3op7umpgh4jvkr5@qmqm.qmqm.pl>

[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]

On Fri, Sep 01 2017, Michał Mirosław wrote:

> On Fri, Sep 01, 2017 at 10:07:29AM +1000, NeilBrown wrote:
>> On Wed, Aug 30 2017, Michał Mirosław wrote:
>> > Allow changing active array's set_name. This is the only way to
>> > safely update superblock on an array which carries a mounted fs.
>> 
>> Do you really need to change the set_name of an active array?
>> 
>> The name is only used when the array is actived, so wait until the next
>> time the array is stopped, and change the name then.
>> 
>> You can boot with a rescue CD or similar and use "--assemble
>> --update=name", or with a bit of effort you could get the normal boot
>> sequence to change the name.
>> 
>> I wouldn't object to adding something to mdadm so that it would read
>> something from mdadm.conf, and update the set name at boot time.
>> 
>> What is the underlying problem that you are trying to solve here?
>
> I had to fix /dev/md* naming on a system with no physical access.
>
> The problem was that despite matching mdadm.conf entries, arrays started
> with random 127-i indexes (because superblocks' set_names didn't match
> hostname, I guess).

That's odd.  If an array is listed in mdadm.conf, that is enough to tell
mdadm that it is "local" so that it doesn't need the hostname to match.
Can you show me exactly what was in your mdadm.conf?

Thanks,
NeilBrown

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  reply	other threads:[~2017-09-04  2:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-29 22:02 [PATCH] md: allow changing set_name of running array Michał Mirosław
2017-09-01  0:07 ` NeilBrown
2017-09-01 16:41   ` Michał Mirosław
2017-09-04  2:22     ` NeilBrown [this message]
2017-09-04 19:36       ` Michał Mirosław
2017-09-05  1:00         ` NeilBrown
2017-09-05  3:06           ` Phil Turmel

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=874lsjdwye.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=mirq-linux@rere.qmqm.pl \
    --cc=shli@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