All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Nielsen <anielsen@diku.dk>
To: Linux-raid <linux-raid@vger.kernel.org>
Subject: Re: How to change the preferred minor
Date: 11 Apr 2002 17:07:58 +0200	[thread overview]
Message-ID: <1018537678.1902.88.camel@localhost> (raw)
In-Reply-To: <15540.57161.433718.491297@notabene.cse.unsw.edu.au>

tor, 2002-04-11 kl. 02:56 skrev Neil Brown:
> On  April 10, anielsen@diku.dk wrote:
> > When I try to boot my box with disks which previously was configured in
> > other machines md tries to autodetect which array should have a given
> > minor number.
> > 
> > I use the wonderful :-) mdadm -E and I can see a preferred minor value
> > which is very nice, but since more than one array is competing for the
> > same minor number it is kind of difficult for me to figure out what to
> > put in my /etc/fstab.
> > 
> > Therefore my question is: how do I change the preferred minor value on a
> > array so I can prevent conflicts? I would of course like to be able to
> > use mdadm for this job :-)
> 
> This would be one of the reasons that I neither use nor recommend RAID
> autostart.  It is too dependant on the preferred-minor which is hard
> to change.
> I guess I could add an option to mdadm to change the preferred-minor
> as it could be useful, but I'm not highly motivated.  Maybe a
> --rewrite-superblock option to --assemble...
> 
> I recommend that you enumerate the uuids of your arrays, create
> /etc/mdadm.conf to say which uuid matches which /dev/md? and use 
>  mdadm --assemble --scan
> to assemble your arrays.
> 
> NeilBrown


I see that the method you recommend is more flexible since there are
more uuids than minor numbers :-)

But I am not sure how I disable autostart and replace it with mdadm -A
--scan so I could use some help.

I am using Redhat 7.2. I guess I have to change an initscript or
something.

Thanks,
 Anders




      parent reply	other threads:[~2002-04-11 15:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-10  9:39 How to change the preferred minor Anders Nielsen
     [not found] ` <15540.57161.433718.491297@notabene.cse.unsw.edu.au>
2002-04-11 15:07   ` Anders Nielsen [this message]

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=1018537678.1902.88.camel@localhost \
    --to=anielsen@diku.dk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.