Re: softraid and multiple distros

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

 



On Monday May 15, Dexter.Filmore@xxxxxx wrote:
> > I always use entire disks if I want the entire disks raided (sounds
> > obvious, doesn't it...)  I only use partitions when I want to vary the
> > raid layout for different parts of the disk (e.g. mirrored root, mirrored
> > swap, raid6 for the rest).   But that certainly doesn't mean it is
> > wrong to use partitions for the whole disk.
> 
> The idea behind this is: let's say a disk fails, and you get a replacement, 
> but it has a different geometry or a few blocks less - won't work. 
> Even the same disk model might vary after a while.
> So I made 0xfd partitions of the size (whole disk minus few megs).
> 

An alternative is to use the --size option of mdadm to make the array
slightly smaller than the smallest drive.  So you don't need
partitions for this (though it is perfectly alright to use them if you
like). 

> > You can tell mdadm where to look.  If you want to be sure that it
> > won't look at entire drives, only partitions, then a line like
> >    DEVICES /dev/[hs]d*[0-1]
> > in /etc/mdadm.conf might be what you want.
> > However as you should be listing the uuids in /etc/mdadm.conf, any
> 
> Umm... yeah, should I?

What else would you use to uniquely identify the arrays?  Not device
names I hope.

> 
> > superblock with an unknown uuid will easily be ignored.
> >
> > If you are relying nf 0xfd autodetect to assemble your arrays, then
> > obviously the entire-disk superblock will be ignored (because they
> > wont be in the right place in any partition).
> 
> So mdadm --assemble --scan is fine for my scenario even with those orphaned 
> superblocks.

I cannot say for sure without seeing your mdadm.conf, but probably.

> 
> Should get me some sedatives for the day when this all explodes :P

Just make sure it happens on your day off, then someone else will
need the sedatives :-)

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
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