linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Patrick H." <linux-raid@feystorm.net>
Cc: linux-raid@vger.kernel.org
Subject: Re: md device renaming
Date: Sun, 12 Dec 2010 19:54:08 -0700	[thread overview]
Message-ID: <4D058AD0.7030704@feystorm.net> (raw)
In-Reply-To: <20101213134920.70512086@notabene.brown>

Sent: Sun Dec 12 2010 19:49:20 GMT-0700 (Mountain Standard Time)
From: Neil Brown <neilb@suse.de>
To: Patrick H. <linux-raid@feystorm.net> linux-raid@vger.kernel.org
Subject: Re: md device renaming
> On Sun, 12 Dec 2010 19:37:05 -0700 "Patrick H." <linux-raid@feystorm.net>
> wrote:
>
>   
>> So, every time I start up this md device with a specified name, it 
>> renames itself to something else.
>>
>> When I first created the array, I typo'd the name as 'nas01:isci-sdb1' 
>> (should be nas01:iscsi-sdb1). And now every time I assemble it with the 
>> correct name, it renames itself:
>>
>> # /sbin/mdadm -A /dev/md/nas01:iscsi-sdb1 --uuid 
>> abddf4ea:06524e68:8e2b8f4e:1b24c56d -R -U name
>> mdadm: /dev/md/nas01:iscsi-sdb1 has been started with 2 drives (out of 3)
>> # ls /dev/md/nas*
>> /dev/md/nas01:isci-sdb1
>> # ls /dev/disk/by-id/md-name*
>> /dev/disk/by-id/md-name-nas01:iscsi-sdb1
>> # mdadm -D /dev/md/nas01:isci-sdb1|grep Name
>>            Name : nas01:iscsi-sdb1  (local to host nas01)
>>
>>
>> So, notice how it says it started it as "nas01:iscsi-sdb1", however once 
>> its up and I do the `ls`, it has the original name on it. I've tried -U 
>> name to update the name on it when its assembled, but doesnt do a thing.
>>
>> Am I missing something here. Shouldnt it be assembling itself with the 
>> specified name I gave it, not the original name? And then how do I 
>> update it so the name in the metadata is correct?
>> (and yes I know its missing a drive, I'm testing some stuff out)
>>     
>
> It is assembling it with the name you give it, but the name stored in the
> metadata is still the old name.
> Try adding --update=name to the --assemble command.
>
> NeilBrown
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>   
How is it assembling with the name I gave it? It says 
"/dev/md/nas01:iscsi-sdb1 has been started", but it really is using 
"nas01:isci-sdb1". Even if it is going to use the name I created it 
with, it should say that instead of the name I provided on the assemble 
command.
And I did add the update argument, see the '-U name' option on the end 
of the command above.

  reply	other threads:[~2010-12-13  2:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-13  2:37 md device renaming Patrick H.
2010-12-13  2:49 ` Neil Brown
2010-12-13  2:54   ` Patrick H. [this message]
     [not found]   ` <4D058AA2.8090401@feystorm.net>
2010-12-13  3:13     ` Neil Brown
2010-12-13  3:37       ` Patrick H.
2010-12-13  4:01         ` Patrick H.
2010-12-13  4:12         ` Neil Brown

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=4D058AD0.7030704@feystorm.net \
    --to=linux-raid@feystorm.net \
    --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).