From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RjxYg-0008Fv-D7 for garchives@archives.gentoo.org; Sun, 08 Jan 2012 18:33:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE4BC21C059; Sun, 8 Jan 2012 18:33:09 +0000 (UTC) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) by pigeon.gentoo.org (Postfix) with ESMTP id EEDBAE0529 for ; Sun, 8 Jan 2012 18:31:41 +0000 (UTC) Received: by iakk12 with SMTP id k12so6410806iak.40 for ; Sun, 08 Jan 2012 10:31:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=Ff149XrDbuOmVqqYoW78036utuIw8B32/hnX2KnQHew=; b=FgKn4rN6vnx8QpK8eT/DdIOk6UK0JSd19Fg1YThsHZMm5tmEpKbEIhFBPQDlGP7o9W vA6DtVQ2bKz8lzxzSo8ukImhDvCTubfnk0woTFoQa1plzXY82pXUCy7fM9f4lTZB3MP8 v2XCcJIEboUfNU1G64xMUg6HtILMp+ZU7dqDs= Received: by 10.50.189.194 with SMTP id gk2mr6594303igc.0.1326047501498; Sun, 08 Jan 2012 10:31:41 -0800 (PST) Received: from [192.168.0.100] (71-14-190-93.dhcp.stls.mo.charter.com. [71.14.190.93]) by mx.google.com with ESMTPS id i2sm11258479igq.6.2012.01.08.10.31.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jan 2012 10:31:40 -0800 (PST) Sender: Paul Hartman Message-ID: <4F09E10A.6080505@gmail.com> Date: Sun, 08 Jan 2012 12:31:38 -0600 From: Paul Hartman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20120108 Thunderbird/9.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How to get raid References: <1325645839.4553.13.camel@laptop.limeyworld> <4308091.7xnRLljmXt@localhost> <1325825050.5380.30.camel@laptop.limeyworld> <3847798.qPIUxmf7eF@localhost> <1325891080.4278.1.camel@laptop.limeyworld> <1325949066.4278.9.camel@laptop.limeyworld> <1325956808.4278.15.camel@laptop.limeyworld> In-Reply-To: <1325956808.4278.15.camel@laptop.limeyworld> X-Enigmail-Version: 1.3.4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 1306801c-8501-4ed9-a1e6-9047c3e96bc2 X-Archives-Hash: 21bc3c51be00cfdfd29ae79ef560f60c On 01/07/2012 11:20 AM, Jeff Cranmer wrote: > On Sat, 2012-01-07 at 10:11 -0500, Jeff Cranmer wrote: >>>>> >>>>> What am I missing? >>>> >>>> have you set the type to linux raid autodetect? >>>> >>>> have you tried mdadm --assemble? >>>> >>> mdadm --assemble /dev/md0 didn't make any difference. >>> Where do I set the type? >>> >> after assembling, >> results of cat/proc/mdstat >> personalities : [linear] [raid0] [raid10] [raid6] [raid5] [raid4] >> [multipath] [faulty] >> md0 : inactive sdb1[0](S) sdd1[3](S) sdc1[1](S) >> 4395409608 blocks super 1.2 >> >> unused devices: >> >> results of mdadm --detail /dev/md0 >> mdadm: md device /dev/md0 does not appear to be active. >> >> results of /etc/init.d/mdadm status >> * status: started >> >> fstab line >> /dev/md0 /data xfs noatime 0 0 >> >> Is there a raid option I need to add to the fstab entry? >> Is there another service that needs to run, other than mdam? >> >> Thanks >> >> Jeff >> >> > I tried changing the type of each array element in fdisk to fd (linux > raid autodetect. > > The array is still not being recognised at boot, with the same 'cannot > read superblock' error. > > I also tried re-running mdadm --create /dev/md0 --level=5 > --raid-devices=3 /dev/sdb1 /dev/sdc1 /dev/sdd1 > I get the error > mdadm: device /dev/sdb1 not suitable for any style of array. > > What is going on here? (I didn't read this whole thread, sorry if I'm repeating someone else's advice) kernel autodetection only works on old superblock version 0.90, you're using 1.2. Not a big deal, we use mdadm to do it. Define your arrays in /etc/mdadm.conf and start /etc/init.d/mdadm in your boot runscripts with "rc-update add mdadm boot", it will bring up the array at boot time. In my mdadm.conf i have a line like this: ARRAY /dev/md1 metadata=1.01 name=black:1 UUID=8e653e72:9d5df6ba:bb66ea8b:02f1c317 (might be word-wrapped, should be all one line) That's all that was needed to bring it up automatically at boot time. Also AFAIR there was a "gotcha" about the hostname stored in the array's metadata must match your machine's hostname or else mdadm auto-assemble won't accept it (to protect you in case you're plugging disks from another machine for recovery, you don't want it to use them as your main drives), so in that case you must specify it explicitly or set the AUTO parameter in mdadm.conf to accept this condition. If you created the array from within a LiveCD or on another machine, the hostname might not match your system. See the mdadm manpage for more info.