Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932608Ab0BPEMs (ORCPT ); Mon, 15 Feb 2010 23:12:48 -0500 Received: from nessie.weebeastie.net ([220.233.7.36]:60082 "EHLO bunyip.billabong.weebeastie.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932547Ab0BPEMr (ORCPT ); Mon, 15 Feb 2010 23:12:47 -0500 X-Greylist: delayed 1950 seconds by postgrey-1.27 at vger.kernel.org; Mon, 15 Feb 2010 23:12:46 EST Date: Tue, 16 Feb 2010 14:40:06 +1100 From: CaT To: Michael Evans Cc: Justin Piszcz , linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Linux mdadm superblock question. Message-ID: <20100216034005.GE4143@zip.com.au> References: <4877c76c1002111752h23e14f7aibe58a89181e6f493@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4877c76c1002111752h23e14f7aibe58a89181e6f493@mail.gmail.com> Organisation: Furball Inc. User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1797 Lines: 55 On Thu, Feb 11, 2010 at 05:52:41PM -0800, Michael Evans wrote: > You need the superblock at the end of the partition: If you read the > manual that is clearly either version 0.90 OR 1.0 (NOT 1.1 and also For lilo, at least, this is not so: http://www.sfr-fresh.com/linux/misc/lilo-22.8.src.tar.gz:a/lilo-22.8/raid.c Line 145: if (ioctl(md_fd,RAID_VERSION,&md_version_info) < 0) Line 155: if (ioctl(md_fd,GET_ARRAY_INFO,&md_array_info) < 0) Lines 160-168: if ((md_array_info.major_version != md_version_info.major) && (md_array_info.minor_version != md_version_info.minor)) { die("Inconsistent Raid version information on %s (RV=%d.%d GAI=%d.%d)", boot, (int)md_version_info.major, (int)md_version_info.minor, (int)md_array_info.major_version, (int)md_array_info.minor_version); } It's 0.90 or nothing as md_version_info gives 0.90 due to: /linux/drivers/md/md.c: Line 4599: ver.major = MD_MAJOR_VERSION; ver.minor = MD_MINOR_VERSION; linux/include/linux/raid/md_u.h: Line 23: #define MD_MAJOR_VERSION 0 #define MD_MINOR_VERSION 90 I got bitten by this as I was testing different raid superblocks on a new setup. Wound up hand-making my own initramfs, which was a pain (right pain to debug). Would prefer not to have one tbh. -- "A search of his car uncovered pornography, a homemade sex aid, women's stockings and a Jack Russell terrier." - http://www.news.com.au/story/0%2C27574%2C24675808-421%2C00.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/