From owner-freebsd-fs@FreeBSD.ORG Wed Aug 27 20:52:47 2003 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDFD016A4BF for ; Wed, 27 Aug 2003 20:52:47 -0700 (PDT) Received: from irc.dagupan.com (irc.dagupan.com [202.91.161.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DEEB43FE5 for ; Wed, 27 Aug 2003 20:52:46 -0700 (PDT) (envelope-from francisv-sender-8914b8@irc.dagupan.com) Received: by irc.dagupan.com (Postfix, from userid 1022) id C6B52B3; Thu, 28 Aug 2003 11:52:43 +0800 (PHT) Received: from irc.dagupan.com (localhost [127.0.0.1]) by irc.dagupan.com (Postfix) with ESMTP id 44510AC for ; Thu, 28 Aug 2003 11:52:42 +0800 (PHT) Received: from hopper (hopper.dagupan.com [202.91.161.143]) by irc.dagupan.com (tmda-ofmipd) with ESMTP; Thu, 28 Aug 2003 11:52:41 +0800 (PHT) To: Date: Thu, 28 Aug 2003 11:52:44 +0800 X-Mailer: Microsoft Office Outlook, Build 11.0.5329 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcNtF9YRjwS6s3H3TG2BEVzVlmR/gw== From: "Francis A. Vidal" Message-ID: <1062042762.4511.TMDA@irc.dagupan.com> X-Delivery-Agent: TMDA/0.80 (Determine) X-Spam-Status: No, hits=-0.3 required=5.5 tests=BAYES_20,FORGED_MUA_OUTLOOK,FROM_HAS_MIXED_NUMS, MISSING_OUTLOOK_NAME version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Sanitizer: Secured by Bitstop Network Services MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: Problem with Vinum RAID-5 configuration X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Francis A. Vidal" List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2003 03:52:48 -0000 Hi all, I'm configuring a RAID-5 filesystem on a Pentium III 1Ghz machine (FreeBSD 4.9-PRERELEASE). The disks are "dangerously dedidcated." I created the filesystem using this: hostname# vinum create -v -f /etc/vinum.conf 1: drive d1 device /dev/ad2s1e 2: drive d2 device /dev/ad4s1e 3: drive d3 device /dev/ad6s1e 4: drive d4 device /dev/ad8s1e 5: drive d5 device /dev/ad10s1e 6: volume raid5 7: plex org raid5 512k 8: sd length 78167m drive d1 9: sd length 78167m drive d2 10: sd length 78167m drive d3 11: sd length 78167m drive d4 12: sd length 78167m drive d5 5 drives: Drive d1: Device /dev/ad2s1e Created on hostname.dagupan.com at Thu Aug 28 11:38:56 2003 Config last updated Thu Aug 28 11:38:56 2003 Size: 81964302336 bytes (78167 MB) Used: 81964175872 bytes (78167 MB) Available: 126464 bytes (0 MB) State: up Last error: none Active requests: 0 Maximum active: 0 Drive d2: Device /dev/ad4s1e Created on hostname.dagupan.com at Thu Aug 28 11:38:56 2003 Config last updated Thu Aug 28 11:38:56 2003 Size: 81964302336 bytes (78167 MB) Used: 81964175872 bytes (78167 MB) Available: 126464 bytes (0 MB) State: up Last error: none Active requests: 0 Maximum active: 0 Drive d3: Device /dev/ad6s1e Created on hostname.dagupan.com at Thu Aug 28 11:38:56 2003 Config last updated Thu Aug 28 11:38:56 2003 Size: 81964302336 bytes (78167 MB) Used: 81964175872 bytes (78167 MB) Available: 126464 bytes (0 MB) State: up Last error: none Active requests: 0 Maximum active: 0 Drive d4: Device /dev/ad8s1e Created on hostname.dagupan.com at Thu Aug 28 11:38:56 2003 Config last updated Thu Aug 28 11:38:56 2003 Size: 81964302336 bytes (78167 MB) Used: 81964175872 bytes (78167 MB) Available: 126464 bytes (0 MB) State: up Last error: none Active requests: 0 Maximum active: 0 Drive d5: Device /dev/ad10s1e Created on hostname.dagupan.com at Thu Jun 12 19:37:43 2003 Config last updated Thu Aug 28 11:38:56 2003 Size: 81964302336 bytes (78167 MB) Used: 81964175872 bytes (78167 MB) Available: 126464 bytes (0 MB) State: up Last error: none Active requests: 0 Maximum active: 0 1 volumes: Volume raid5: Size: 327856160768 bytes (312668 MB) State: down Flags: 1 plexes Read policy: round robin 1 plexes: Plex raid5.p0: Size: 327856160768 bytes (312668 MB) Subdisks: 5 State: init Organization: raid5 Stripe size: 512 kB Part of volume raid5 5 subdisks: Subdisk raid5.p0.s0: Size: 81964040192 bytes (78167 MB) State: empty Plex raid5.p0 at offset 0 (0 B) Drive d1 (/dev/ad2s1e) at offset 135680 (132 kB) Subdisk raid5.p0.s1: Size: 81964040192 bytes (78167 MB) State: empty Plex raid5.p0 at offset 524288 (512 kB) Drive d2 (/dev/ad4s1e) at offset 135680 (132 kB) Subdisk raid5.p0.s2: Size: 81964040192 bytes (78167 MB) State: empty Plex raid5.p0 at offset 1048576 (1024 kB) Drive d3 (/dev/ad6s1e) at offset 135680 (132 kB) Subdisk raid5.p0.s3: Size: 81964040192 bytes (78167 MB) State: empty Plex raid5.p0 at offset 1572864 (1536 kB) Drive d4 (/dev/ad8s1e) at offset 135680 (132 kB) Subdisk raid5.p0.s4: Size: 81964040192 bytes (78167 MB) State: empty Plex raid5.p0 at offset 2097152 (2048 kB) Drive d5 (/dev/ad10s1e) at offset 135680 (132 kB) Inspecting the output of the create command, I noticed that the reported available space on each drive is 0 MB! Available: 126464 bytes (0 MB) Disklabel reveals this: # /dev/ad2s1e: type: ESDI disk: ad2s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 9964 sectors/unit: 160086528 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 160086528 0 unused 0 0 # (Cyl. 0 - 9964*) e: 160086528 0 vinum # (Cyl. 0 - 9964*) Fdisk output: ******* Working on device /dev/ad2s1e ******* parameters extracted from in-core disklabel are: cylinders=9964 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=9964 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 0, size 160086528 (78167 Meg), flag 80 (active) beg: cyl 0/ head 0/ sector 1; end: cyl 1023/ head 235/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: --- francis a. vidal [bitstop network services] | http://www.bnshosting.net streaming media + web hosting | http://www.bitstop.ph v(02)330-2871,(02)330-2872; f(02)330-2873 | http://www.kuro.ph