linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Change preferred minor number of an md device?
@ 2005-01-31 17:13 Niccolo Rigacci
  2005-01-31 22:00 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Niccolo Rigacci @ 2005-01-31 17:13 UTC (permalink / raw)
  To: linux-raid

Hi to all, md gurus!

Is there a way to edit the preferred minor of a stopped device?

Alternatively, is there a way to create a raid1 device specifying the 
preferred minor number md0, but activating it provisionally as a different 
minor, say md5? An md0 is already running, so "mdadm --create /dev/md0" 
fails...

I have to dump my /dev/md0 to a different disk (/dev/md5), but when I boot 
from the new disk, I want the kernel to autmatically detect the device 
as /dev/md0.

Many thanks

-- 
Niccolo Rigacci
http://www.texnet.it/

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

* Re: Change preferred minor number of an md device?
  2005-01-31 17:13 Change preferred minor number of an md device? Niccolo Rigacci
@ 2005-01-31 22:00 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2005-01-31 22:00 UTC (permalink / raw)
  To: Niccolo Rigacci; +Cc: linux-raid

On Monday January 31, niccolo@texnet.it wrote:
> Hi to all, md gurus!
> 
> Is there a way to edit the preferred minor of a stopped device?

mdadm --assemble /dev/md0 --update=super-minor /dev/....

will assemble the array and update the preferred minor to 0 (from
/dev/md0).

However this won't work for you as you already have a /dev/md0
running...

> 
> Alternatively, is there a way to create a raid1 device specifying the 
> preferred minor number md0, but activating it provisionally as a different 
> minor, say md5? An md0 is already running, so "mdadm --create /dev/md0" 
> fails...
> 
> I have to dump my /dev/md0 to a different disk (/dev/md5), but when I boot 
> from the new disk, I want the kernel to autmatically detect the device 
> as /dev/md0.

If you are running 2.6, then you just need to assemble it as /dev/md0
once and that will automatically update the superblock.  You could do
this with kernel parameters of 
   raid=noautodetect md=0,/dev/firstdrive,/dev/seconddrive

NeilBrown

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

end of thread, other threads:[~2005-01-31 22:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 17:13 Change preferred minor number of an md device? Niccolo Rigacci
2005-01-31 22:00 ` 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).