From owner-freebsd-questions@FreeBSD.ORG Mon Dec 6 02:31:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75F9316A4CE for ; Mon, 6 Dec 2004 02:31:30 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6C1843D53 for ; Mon, 6 Dec 2004 02:31:28 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 85DD585640; Mon, 6 Dec 2004 13:01:25 +1030 (CST) Date: Mon, 6 Dec 2004 13:01:25 +1030 From: Greg 'groggy' Lehey To: Markus Hoenicka Message-ID: <20041206023125.GU92212@wantadilla.lemis.com> References: <16819.48747.223694.368063@tipi.mininet> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="doUn1Hmx68n+7ij2" Content-Disposition: inline In-Reply-To: <16819.48747.223694.368063@tipi.mininet> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-questions Subject: Re: vinum raid5: newfs throws an error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 02:31:30 -0000 --doUn1Hmx68n+7ij2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 6 December 2004 at 3:05:31 +0100, Markus Hoenicka wrote: > Hi all, > > now that I can use the full capacity of my disks, I'm stuck again. I'm > trying to set up a raid5 from three SCSI disks (I know that a serious > raid5 should use five disks or more, but I have to make do with three at > the moment). The configuration is as follows: > > drive ibma device /dev/da1s1e > drive ibmb device /dev/da2s1e > drive ibmc device /dev/da3s1e > volume raid5 setupstate > plex org raid5 512k > sd length 0m drive ibma > sd length 0m drive ibmb > sd length 0m drive ibmc > > This works ok. Then I run vinum init to initialize the drives. Trying > to create a filesystem on this construct results in the error message: > > newfs: wtfs: 65536 bytes at sector 71130688: Input/output error > > Is that trying to tell me that my calculation of the group size is > incorrect? Does it have to do anything with the fact that the three > disks have slightly different capacities? There was once an error in the stripe size calculations that meant that there were holes in the plexes. Maybe it's still there (old Vinum is not being maintained). But you should have seen that in the console messages at create time. > Vinum reports the disk sizes as 17500MB (da1) and 17359MB (da2, > da3). The raid5 volume and plex have a size of 33GB. This looks like the kind of scenario where that could happen. Try this: 1. First, find a better stripe size. It shouldn't be a power of 2, but it should be a multiple of 16 kB. I'd recommend 496 kB. This won't fix the problem, but it's something you should do anyway 2. Calculate the length of an exact number of stripes, and create the subdisks in that length. Try again and see what happens. 3. Use gvinum instead of vinum and try both ways. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --doUn1Hmx68n+7ij2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBs8R9IubykFB6QiMRAuDaAKClgefdQupgErKj6atNviC/mU0zNACgm7vd 6QZlyLr6K7gab0a/LJdD2l0= =rbvl -----END PGP SIGNATURE----- --doUn1Hmx68n+7ij2--