linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* md device renaming
@ 2010-12-13  2:37 Patrick H.
  2010-12-13  2:49 ` Neil Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick H. @ 2010-12-13  2:37 UTC (permalink / raw)
  To: linux-raid

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)

-Patrick

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-13  4:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-13  2:37 md device renaming Patrick H.
2010-12-13  2:49 ` Neil Brown
2010-12-13  2:54   ` Patrick H.
     [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

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).