From owner-freebsd-questions Sun Apr 29 16:35:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 0BBB337B424 for ; Sun, 29 Apr 2001 16:35:26 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 3DF1E6ACBC; Mon, 30 Apr 2001 09:05:24 +0930 (CST) Date: Mon, 30 Apr 2001 09:05:24 +0930 From: Greg Lehey To: "Orville R. Weyrich.Jr" Cc: Vallo Kallaste , questions@FreeBSD.ORG Subject: Re: RAID Message-ID: <20010430090524.B47188@wantadilla.lemis.com> References: <20010403142812.A80970@myhakas.matti.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from orville@weyrich.com on Sun, Apr 29, 2001 at 03:55:51PM -0700 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sunday, 29 April 2001 at 15:55:51 -0700, Orville R. Weyrich.Jr wrote: > On Tue, 3 Apr 2001, Vallo Kallaste wrote: > >> On Tue, Apr 03, 2001 at 01:16:10AM -0700, "Orville R. Weyrich, JR." wrote: >> >>> I happen to have come by six identical 4.3 GB SCSI hard drives, and was >>> wondering about an inexpensive way to make a FreeBSD server that uses >>> them. My manual on FreeBSD covers version 3.2 -- I realize there are >>> newer versions, but my search of the FreeBSD web site doesn't turn up my >>> answer. >>> >>> Is there a way to implement RAID-5 with a couple standard SCSI >>> controllers (the kind at eBay for under $100) or do I need to buy a >>> specialized RAID-5 controller card? >>> >>> Am I asking for too much? :-) If it isn't too much, where do I go from >>> here? >> >> You can use vinum volume manager, look at >> http://www.vinumvm.org/ >> >> Use recent -stable for implementing vinum and beware that RAID-5 is >> considered somewhat buggy, at least that's what I gather from >> postings in the lists. Use two controllers, three disks each. > > Thanks for the pointer, but I have a new problem: The man pages say: > > vinum drives are UNIX disk partitions and must have the > partition type vinum. This is different from ccd, which expects > partitions of type 4.2BSD. > > How do I create a partition type vinum? FreeBSD fdisk seems to want > a number not a name (e.g FreeBSD = 165). What number do I use for > vinum? You use fdisk to create slices. You use disklabel to create partitions. This is all described in the man page you quote: vinum drives are currently BSD disk partitions. They must be of type vinum in order to avoid overwriting data used for other purposes. Use disklabel -e to edit a partition type definition. The following display shows a typical partition layout as shown by disklabel: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 81920 344064 4.2BSD 0 0 0 # (Cyl. 240*- 297*) b: 262144 81920 swap # (Cyl. 57*- 240*) c: 4226725 0 unused 0 0 # (Cyl. 0 - 2955*) e: 81920 0 4.2BSD 0 0 0 # (Cyl. 0 - 57*) f: 1900000 425984 4.2BSD 0 0 0 # (Cyl. 297*- 1626*) g: 1900741 2325984 vinum 0 0 0 # (Cyl. 1626*- 2955*) In this example, partition g may be used as a vinum partition. Parti- tions a, e and f may be used as UFS file systems or ccd partitions. Par- tition b is a swap partition, and partition c represents the whole disk and should not be used for any other purpose. People, I'm getting a *lot* of questions which indicate that you haven't read the documentation. There's a lot of stuff in the man pages, but if you're confused and you haven't read the entire man page, it's really your own problem. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message