From: Kay Sievers Date: Sat, 13 Jan 2007 10:58:33 +0000 Subject: Re: udev-104 change in example rules Message-Id: <1168685913.14924.12.camel@pim.off.vrfy.org> List-Id: References: <1168682001.4419.6.camel@juerg-pd.bitron.ch> In-Reply-To: <1168682001.4419.6.camel@juerg-pd.bitron.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, 2007-01-13 at 10:53 +0100, J=C3=BCrg Billeter wrote: > you've changed the example persistent storage rules to ignore md* > devices. Why have you changed that? I'm happily using /dev/disk/by-label > (and by-uuid) symlinks with a RAID device which wouldn't work anymore > with the new rules. It is unreliable in its current form, so we should not enable it this way by default. We had similar issues with device-mapper devices, where udev opens the devices on uevents, which come in the way of the raid admin-tools. Md had broken lifetime-rules (should be fixed now) where /sys/block/md* devices could be changed to have complete different content, without updating any of the persistent links. /dev/md0 was created on open(), even when there was no content behind, and no setup or change of the array lead to updated links. So you are just lucky, that it worked for you. :) MD will have its own rules file, just like dm has. With kernel 2.6.19, something like this could work, but I didn't try it until now: # md links hook into "change" events, when the array becomes available KERNEL=3D"md[0-9]*", ACTION=3D"add|change", GOTO=3D"md_do" GOTO=3D"md_end" LABEL=3D"md_do" ATTR{md/array_state}=3D"|clear|inactive", GOTO=3D"md_end" IMPORT{program}=3D"vol_id --export $tempnode" ENV{ID_FS_USAGE}=3D"filesystem|other|crypto", ENV{ID_FS_UUID}=3D"?*", SYM= LINK+=3D"disk/by-uuid/$env{ID_FS_UUID}" ENV{ID_FS_USAGE}=3D"filesystem|other", ENV{ID_FS_LABEL_SAFE}=3D"?*", SYML= INK+=3D"disk/by-label/$env{ID_FS_LABEL_SAFE}" LABEL=3D"md_end" Therea are also upcoming changes to the mdadm tool, which allow auto-assemb= ly of md-devices, completely driven by kernel events and no by an init-script.= This will also go into the md rule-file. Kay ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel