Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id EF0879FC669 for ; Fri, 1 Jun 2007 16:55:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 13576-05 for ; Fri, 1 Jun 2007 16:55:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from chip2og51.obsmtp.com (chip2og51.obsmtp.com [64.18.13.39]) by postgresql.org (Postfix) with SMTP id 07B979FA433 for ; Fri, 1 Jun 2007 16:55:08 -0300 (ADT) Received: from source ([63.240.6.47]) (using TLSv1) by chip2ob51.postini.com ([64.18.5.12]) with SMTP; Fri, 01 Jun 2007 12:54:54 PDT Received: from 172.16.1.110 by mail.Mi8.com with ESMTP (- Welcome to Mi8 Corporation www.Mi8.com (D1)); Fri, 01 Jun 2007 15:54:48 -0400 X-Server-Uuid: 0764DD54-627B-4C45-B37D-789FBDEDA467 Received: from MI8NYCMAIL08.Mi8.com ([172.16.1.165]) by D01SMTP01.Mi8.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 1 Jun 2007 15:54:45 -0400 Received: from 63.80.24.130 ([63.80.24.130]) by MI8NYCMAIL08.Mi8.com ( [172.16.1.190]) via Exchange Front-End Server mi8owa.mi8.com ( [172.16.1.134]) with Microsoft Exchange Server HTTP-DAV ; Fri, 1 Jun 2007 19:54:44 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 Date: Fri, 01 Jun 2007 12:54:44 -0700 Subject: Re: Autodetect of software RAID1+0 fails From: "Luke Lonergan" To: "Dimitri" , "Craig James" cc: pgsql-performance@postgresql.org Message-ID: Thread-Topic: [PERFORM] Autodetect of software RAID1+0 fails Thread-Index: AcekhrMO8WyrhBB5Edy5qQAX8s8Cag== In-Reply-To: <5482c80a0706011151y3851c68je5829a2291282b73@mail.gmail.com> MIME-Version: 1.0 X-OriginalArrivalTime: 01 Jun 2007 19:54:45.0259 (UTC) FILETIME=[B3CEB5B0:01C7A486] X-WSS-ID: 6A7EA60F3003140358-01-01 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/6 X-Sequence-Number: 25039 Dimitri, LVM is great, one thing to watch out for: it is very slow compared to pure md. That will only matter in practice if you want to exceed 1GB/s of sequential I/O bandwidth. - Luke On 6/1/07 11:51 AM, "Dimitri" wrote: > Craig, > > to make things working properly here you need to create a config file > keeping both raid1 and raid0 information (/etc/mdadm/mdadm.conf). > However if your root filesystem is corrupted, or you loose this file, > or move disks somewhere else - you are back to the same initial issue > :)) > > So, the solution I've found 100% working in any case is: use mdadm to > create raid1 devices (as you do already) and then use LVM to create > raid0 volume on it - LVM writes its own labels on every MD devices and > will find its volumes peaces automatically! Tested for crash several > times and was surprised by its robustness :)) > > Rgds, > -Dimitri > > On 6/1/07, Craig James wrote: >> Apologies for a somewhat off-topic question, but... >> >> The Linux kernel doesn't properly detect my software RAID1+0 when I boot up. >> It detects the two RAID1 arrays, the partitions of which are marked >> properly. But it can't find the RAID0 on top of that, because there's no >> corresponding device to auto-detect. The result is that it creates /dev/md0 >> and /dev/md1 and assembles the RAID1 devices on bootup, but /dev/md2 isn't >> created, so the RAID0 can't be assembled at boot time. >> >> Here's what it looks like: >> >> $ cat /proc/mdstat >> Personalities : [raid0] [raid1] >> md2 : active raid0 md0[0] md1[1] >> 234436224 blocks 64k chunks >> >> md1 : active raid1 sde1[1] sdc1[2] >> 117218176 blocks [2/2] [UU] >> >> md0 : active raid1 sdd1[1] sdb1[0] >> 117218176 blocks [2/2] [UU] >> >> $ uname -r >> 2.6.12-1.1381_FC3 >> >> After a reboot, I always have to do this: >> >> mknod /dev/md2 b 9 2 >> mdadm --assemble /dev/md2 /dev/md0 /dev/md1 >> mount /dev/md2 >> >> What am I missing here? >> >> Thanks, >> Craig >> >> ---------------------------(end of broadcast)--------------------------- >> TIP 1: if posting/reading through Usenet, please send an appropriate >> subscribe-nomail command to majordomo@postgresql.org so that your >> message can get through to the mailing list cleanly >> > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >