From owner-freebsd-questions@FreeBSD.ORG Mon Aug 7 13:39:05 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 D48A516A4DD for ; Mon, 7 Aug 2006 13:39:05 +0000 (UTC) (envelope-from backyard1454-bsd@yahoo.com) Received: from web83103.mail.mud.yahoo.com (web83103.mail.mud.yahoo.com [216.252.101.32]) by mx1.FreeBSD.org (Postfix) with SMTP id 7FE8A43D69 for ; Mon, 7 Aug 2006 13:38:59 +0000 (GMT) (envelope-from backyard1454-bsd@yahoo.com) Received: (qmail 66761 invoked by uid 60001); 7 Aug 2006 13:38:44 -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=EUFsEtUvHKnObG6RFpZ5tZ/4h5VgXkeNEmK+fH8+Fa39y/xx1F5JJN93kuM+MQmLxKrTvVq/vFEidtSPbahnQoD30BSmSxUEEu0eSEafGLGyI7K5ItT0vfyqAkbecSqMUCsAyoJqjMc7kBg4MSAV2GwyQeBrAm5Glhu3SlsUEy4= ; Message-ID: <20060807133844.66759.qmail@web83103.mail.mud.yahoo.com> Received: from [63.240.228.37] by web83103.mail.mud.yahoo.com via HTTP; Mon, 07 Aug 2006 06:38:44 PDT Date: Mon, 7 Aug 2006 06:38:44 -0700 (PDT) From: backyard To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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-bsd@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:39:05 -0000 sorry if you get this twice I forgot which address was my list address and the moderator mayget to my other post... 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