From owner-freebsd-geom@FreeBSD.ORG Thu Jan 25 10:57:56 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C6EB16A400; Thu, 25 Jan 2007 10:57:56 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 0A93B13C44B; Thu, 25 Jan 2007 10:57:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (bufwdi@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l0PAvn7s092071; Thu, 25 Jan 2007 11:57:54 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l0PAvnBR092070; Thu, 25 Jan 2007 11:57:49 +0100 (CET) (envelope-from olli) From: Oliver Fromme Message-Id: <200701251057.l0PAvnBR092070@lurza.secnetix.de> To: silby@silby.com (Mike Silbersack) Date: Thu, 25 Jan 2007 11:57:49 +0100 (CET) In-Reply-To: <20070125015459.V26320@odysseus.silby.com> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 25 Jan 2007 11:57:55 +0100 (CET) Cc: vd@freebsd.org, freebsd-geom@freebsd.org, xride@x12.dk, Eric Anderson Subject: Re: Where to start? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2007 10:57:56 -0000 Mike Silbersack wrote: > Eric Anderson wrote: > > > Why not disable swap, use the swap partition as the new journaling device, > > and then enable vn-backed swap for the system? > > I wouldn't want to disable swap, Eric didn't say to disable swap permanently. Only disable the existing swap partition (use swapoff(8)) and then use it for the journal. Then create a swap file in an existing file system and use that one for swapping. > but if I could use some percentage of swap, then it would rock. That would be possible, too, of course. Disable swapping temporarily with swapoff(8), then shrink the swap partition with bsdlabel(8) and create a new partition in the free space. Then resume swapping with swapon(8) on the swap partition (which is now smaller), and use the new partition for the journal. If swap is now too small, you can still create an additional swap file in an existing file system, of course. However, note that the journal requires a certain minimum size which depends on the thoughput of data on that file system. I guess that half of the swap partition would be too small in many common cases. Unfortunately, FreeBSD doesn't have shrinkfs(8), which would be extremely useful to add space for a journal to an existing disk (among other things). Maybe this is something that should be added to the ideas web page. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "What is this talk of 'release'? We do not make software 'releases'. Our software 'escapes', leaving a bloody trail of designers and quality assurance people in its wake."