Re: Changing Drive letters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday April 12, mpb@hum.auc.dk wrote:
> jeff millar wrote:
> > Any limits on this, like when all the drive letter change at once?
> 
> Nope.
> You can put something like:
> DEVICE /dev/sd[abcdef][1234567]
> and
> ARRAY /dev/md0 level=raid1 num-devices=2 UUID=49d38e1a:3ae5b824:9220fe3b:5a8129f0
> in your /etc/mdadm.conf

Exactly, and it doesn't matter where your drives are as long as they
are listed in a DEVICE line.

> 
> And then do
> mdadm --assemble /dev/md0 --uuid 49d38e1a:3ae5b824:9220fe3b:5a8129f0

You don't need the uuid twice.  Given the above mdadm.conf,

  mdadm --assemble /dev/md0 --scan
will work.

> 
> > Does the command need --force?
> 
> Not as far as I remember.

That's correct.  --force is only needed if there is an inconsistancy in
the superblocks and you want mdadm to over-ride and fix things.
Normally when you use --force you will want to explicitly list the
devices to make sure mdadm doesn't do the wrong thing by mistake:
  mdadm --assemble --force /dev/md0 /dev/sda1 /dev/sdc1 ...

NeilBrown


> 
> -- 
> Mads Peter Bach
> Systemadministrator,  Det Humanistiske Fakultet, Aalborg Universitet
> Kroghstræde 3 - 5.111, DK-9220 Aalborg Øst
> # whois MPB1-DK@whois.dk-hostmaster.dk
> 
> -
> 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
-
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

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux