From owner-freebsd-questions@FreeBSD.ORG Mon Aug 7 13:27:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E269D16A4DA for ; Mon, 7 Aug 2006 13:27:02 +0000 (UTC) (envelope-from backyard1454-nospam@yahoo.com) Received: from web83106.mail.mud.yahoo.com (web83106.mail.mud.yahoo.com [216.252.101.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 88CFA43D6A for ; Mon, 7 Aug 2006 13:27:02 +0000 (GMT) (envelope-from backyard1454-nospam@yahoo.com) Received: (qmail 87454 invoked by uid 60001); 7 Aug 2006 13:26:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=O8oZ4zUj7RZ+er0QpHSxHFrDqexng8gTc5zGvxaBFroSVUgJ8E/UNrbWvFy5z3HRP3+DOdGQSvH53if3crO32EqEz8jc+DtBqKcJqXSdqpeNDNR7GixsVoyiZeJGWqRwoqAnhdUjzpbV1FXl+7nuuuEvSTcJzxLFuKr2ol1wMiU= ; Message-ID: <20060807132643.87452.qmail@web83106.mail.mud.yahoo.com> Received: from [63.240.228.37] by web83106.mail.mud.yahoo.com via HTTP; Mon, 07 Aug 2006 06:26:43 PDT Date: Mon, 7 Aug 2006 06:26:43 -0700 (PDT) From: To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Mon, 07 Aug 2006 13:37:27 +0000 Subject: GVINUM Configuration file Quickie -- Swap and Var on Raid-0 striped X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: backyard1454-nospam@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2006 13:27:03 -0000 I have a simple quick little question for somemore more familiar with gvinum then myself. I've read through examples and what not and have come up with the following config file. I basically want 3g of swap space on a striped RAID-0 for swap space, tmp will use some of the swap space through an md device. Var will get the remaining space for its thing. I have set the stripe size for swap at 4096 to match the block size of swap memory and mazimize output across devices. I've set the stripe size of var at 64k so it can handle small logs and what not. I don't know if those values are the optimal though. I selected the subdisk size for my swap partition and left as 0 for var, as my reading suggests this should take whatever is left. # gvinum.conf.RAW drive foo device /dev/da0s1a drive bar device /dev/da1s1a volume mem plex org striped 4096 sd length 1534m drive foo sd length 1534m drive bar volume variable plex org striped 64k sd length 0 drive foo sd length 0 drive bar # EOF gvinum.conf.RAW after creating the partitions I need with: fdisk -I /dev/da0; fdisk -I /dev/da1 bsdlabel -we /dev/da0s1; bsdlabel -we /dev/da1s1 I should be able to gvinum -f gvinum.conf.RAW to make the volumes I want correct? also I know the fdisk command uses the whole drive but does that command switch dangerouly dedicate the drives? these drives will not be used for booting so I don't care about anything but capacity and output speed. I can handle the rest of the configuration but I want the raid building experience to be relatively painless. thanks -brian