From owner-freebsd-questions@FreeBSD.ORG Wed Jul 6 18:02:22 2005 Return-Path: X-Original-To: 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 B984D16A41C for ; Wed, 6 Jul 2005 18:02:22 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 928F043D45 for ; Wed, 6 Jul 2005 18:02:22 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id 1D82A3C282E; Wed, 6 Jul 2005 11:02:22 -0700 (PDT) Message-ID: <42CC1CA0.3000809@toldme.com> Date: Wed, 06 Jul 2005 11:02:08 -0700 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050607) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Oxley References: <20050701064849.GA1159@yoafrica.com> In-Reply-To: <20050701064849.GA1159@yoafrica.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: Software RAID-1 - Swap partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 18:02:22 -0000 John Oxley wrote: >Hi, > >I followed http://people.freebsd.org/~rse/mirror/ to create a software >RAID mirror. I have two 75G drives in the machine. I allocated 74G to >the filesystem on each drive and 1 G to swap. When I blanked ad1 and >created ad1s1, I didn't notice that it had taken up the whole of the >drive. Can I shrink the mirror partition and have two swap partitions, >or if that is not possible, how would I go about creating a "mirrored" >swap partition? > > Your swap partition ought to be mirrored already. From a similar system: 0-11:01 djh@castor ~> swapinfo Device 1K-blocks Used Avail Capacity /dev/mirror/gm0s1b 4167488 0 4167488 0% 0-11:01 djh@castor ~> grep swap /etc/fstab /dev/mirror/gm0s1b none swap sw 0 0 -danny -- http://dannyman.toldme.com/