From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Brown Date: Thu, 16 Jul 2009 10:56:27 +0000 Subject: Re: RFC: mdadm and bringing up raid sets from initrd (dracut) Message-Id: <19039.1883.943995.16962@notabene.brown> List-Id: References: <4A5C6501.3080607@redhat.com> <1247581847.1991.16.camel@localhost.localdomain> In-Reply-To: message from Dan Williams on Wednesday July 15 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Williams Cc: David Zeuthen , Hans de Goede , initramfs , linux-hotplug-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Danecki, Jacek" , Harald Hoyer , Doug Ledford On Wednesday July 15, dan.j.williams@intel.com wrote: > > mdadm-3.0 has facilities to prevent assembly of certain metadata types > [1] or arrays with certain uuids [2]. I wonder if we also need a > facility to prevent auto-assembly of arrays *not* listed in > mdadm.conf? So the mdadm.conf file installed in the initramfs would > only identify the root array and all other randomly identified md > devices would be ignored (rather than assembled with a foreign name). > > Thoughts? This is exactly the functionality that the 'AUTO' line provides. Arrays that are listed in mdadm.conf will always be assembled when they are found. Arrays that are not listed may or may not be assembled depending on their metadata type and the setting of 'AUTO'. So AUTO -all will disable all auto-assemble of arrays that are not listed in mdadm.conf. NeilBrown