1 Aug 2006 03:19
Re: let md auto-detect 128+ raid members, fix potential race condition
Neil Brown <neilb <at> suse.de>
2006-08-01 01:19:21 GMT
2006-08-01 01:19:21 GMT
On Monday July 31, aoliva <at> redhat.com wrote: > On Jul 30, 2006, Neil Brown <neilb <at> suse.de> wrote: > > > 1/ > > It just isn't "right". We don't mount filesystems from partitions > > just because they have type 'Linux'. We don't enable swap on > > partitions just because they have type 'Linux swap'. So why do we > > assemble md/raid from partitions that have type 'Linux raid > > autodetect'? > > Similar reason to why vgscan finds and attempts to use any partitions > that have the appropriate type/signature (difference being that raid > auto-detect looks at the actual partition type, whereas vgscan looks > at the actual data, just like mdadm, IIRC): when you have to bootstrap > from an initrd, you don't want to be forced to have the correct data > in the initrd image, since then any reconfiguration requires the info > to be introduced in the initrd image before the machine goes down. > Sometimes, especially in case of disk failures, you just can't do > that. The initrd need to 'know' how to find the root filesystem, whether by devnum or uuid or whatever. In exactly the same way it needs to know how to find the components for the root md array - uuid is the best. There is no need to reconfigure this in the case of a disk failure. Current mdadm will assemble arrays for you given only a hostname. You still need to get the hostname into the initrd, but that is no different from a root device number.(Continue reading)

>> I wouldn't have a problem with that, since then distros would probably
>> switch to a more recommended mechanism that works just as well, i.e.,
>> ideally without requiring initrd-regeneration after reconfigurations
>> such as adding one more raid device to the logical volume group
>> containing the root filesystem.
> That's supported in today's mdadm.
> look at --uuid and --name
--uuid and --name won't help at all. I'm talking about adding raid


RSS Feed