From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 17:22:48 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A53816A4BF for ; Mon, 1 Sep 2003 17:22:48 -0700 (PDT) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 1A20A43FF9 for ; Mon, 1 Sep 2003 17:22:47 -0700 (PDT) (envelope-from scottl@freebsd.org) Received: (qmail 63782 invoked by uid 1002); 2 Sep 2003 00:22:46 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 2 Sep 2003 00:22:46 -0000 Message-ID: <3F53E2CA.9020101@freebsd.org> Date: Mon, 01 Sep 2003 18:22:34 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030425 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Doug White References: <20030901165035.D58395@carver.gumbysoft.com> In-Reply-To: <20030901165035.D58395@carver.gumbysoft.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org Subject: Re: swapon vs savecore dilemma X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2003 00:22:48 -0000 Doug White wrote: > Hey folks, > > It looks like we may need to rethink the way swap is mounted at boot time > if we want crashdumps to work. > > Recently(?), a change was made so you can no longer open a swap partition > read/write after it is activated with swapon(8). In the current boot > sequence, swap is mounted before the root fsck starts so additional space > is available if the root fsck needs it. But at that point no partitions > are available for writing a core to, so we can't run savecore then. > > Without crashdumps debugging gets kind of interesting. > > Suggestions, other than have separate dump and swap partitions? > I question the wizdom of what you're describing. If swap space needs to be made available for fsck to run, then what happens to the crashdump data that used to be on the swap partition? Doing a swapon(8) means that nothing in the swap partition is reliable or consistent anymore. Scott