From: "Kay Sievers" Date: Fri, 03 Oct 2008 08:17:37 +0000 Subject: Re: udev doesn't detect ddf-format raid array Message-Id: List-Id: References: <200810022309.49346.ple@upcmail.hu> In-Reply-To: <200810022309.49346.ple@upcmail.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Fri, Oct 3, 2008 at 9:59 AM, Peter Leipold wrote: > On Friday 03 October 2008 00.47.23 Kay Sievers wrote: >> Likely, that volume_id needs a fix. I never really tested with a real >> ddf volume. >> >> What udev version are you running? > > 0.125-7 That's fine, there have been no changes to ddf after udev 111 > But I downloaded 0.129 yesterday and compiled it (I cannot install it > system-wide, as I'm not that expert to know what stuff needs to be copied > where, and I don't want to break this system). I tried to run udevadm and > vol_id from the place of the compilation, the former didn't work, the lat= ter > gave the same result as in the 0.125 version: > > # ./udev-129/udev/udevadm info --query=3Dall --name=3Dsda > device node not found I guess it's because configure uses the default --prefix=3D/usr anf therefore /usr/local/dev/ to look for device nodes. But 125 sounds fine anyway. > # ./udev-129/extras/volume_id/vol_id /dev/sda2 > ID_FS_USAGE=3Dfilesystem > ID_FS_TYPE=3Dext3 > ID_FS_VERSION=3D1.0 > ID_FS_UUID=DB631065-7ca8-45fc-bf60-a9259a732dec > ID_FS_UUID_ENC=DB631065-7ca8-45fc-bf60-a9259a732dec > ID_FS_LABEL> ID_FS_LABEL_ENC> ID_FS_LABEL_SAFE> >> Is this an Adaptec controller? > > Yes, it's their simplest 2-port card, model name 1220SA I think. It has a > Silicon Image chip on it, the kernel use the sata_sil24 driver to reach t= he > drives. Ah, they don't conform to the ddf standard and put their signatures not exactly to the end of the volume, I'll add that to vol_id. >> Can you send me a copy of the sectors containing the ddf header? Along >> with the exact dd commandline you used to extract it, so can copy it >> to a drive and test it. > > Attached. I hope I did the right thing. I got the offset and size with > dmraid's help (dumping raid metadata). So these dd commands resulted the = same > files as dmraid -rD: > > dd if=3D/dev/sda of=3Dsda_ddf1.dat bs=3D1 counta44 skip 0048559616 > dd if=3D/dev/sdb of=3Dsdb_ddf1.dat bs=3D1 counta44 skip 0049641472 Looks good: hexdump -C sda_ddf1.dat | head -1 00000000 11 de 11 de e2 e6 4c ae 38 5a b0 49 95 10 42 02 |......L.8Z.I= ..B.| 0xDE11DE11 is the signature we are looking for. I'll see if I can make that work. Kay