From owner-freebsd-current@FreeBSD.ORG Wed Oct 20 09:42:41 2004 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 0BB1B16A4CE; Wed, 20 Oct 2004 09:42:41 +0000 (GMT) Received: from mail06.syd.optusnet.com.au (mail06.syd.optusnet.com.au [211.29.132.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61C7843D58; Wed, 20 Oct 2004 09:42:40 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) i9K9gX14000420 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 20 Oct 2004 19:42:34 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])i9K9gXxP082700; Wed, 20 Oct 2004 19:42:33 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost)i9K9gXRK082699; Wed, 20 Oct 2004 19:42:33 +1000 (EST) (envelope-from pjeremy) Date: Wed, 20 Oct 2004 19:42:33 +1000 From: Peter Jeremy To: Pawel Jakub Dawidek Message-ID: <20041020094233.GC79646@cirb503493.alcatel.com.au> References: <7m7jqjhojv.wl@black.imgsrc.co.jp> <20040924122508.GG9550@darkness.comp.waw.pl> <20040924143224.GG47816@dan.emsphone.com> <20040925095549.GH9550@darkness.comp.waw.pl> <20040925200747.GE83620@cirb503493.alcatel.com.au> <20041018085337.GG73767@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041018085337.GG73767@darkness.comp.waw.pl> User-Agent: Mutt/1.4.2i cc: Current Subject: Re: panic: swap_pager_isswapped: failed to locate all swap meta blocks 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: Wed, 20 Oct 2004 09:42:41 -0000 On Mon, 2004-Oct-18 10:53:37 +0200, Pawel Jakub Dawidek wrote: >+> As an alternative approach, rather than marking swap clean on a >+> shutdown, why not have a flag in the object's metadata that says "this >+> object doesn't need synchronising on a reboot". If the flag is set, >+> then gmirror just sets both sides as synchronised and active on boot. >+> This is the approach taken by HP Tru64 LSM. (Though one improvement >+> you could make over LSM would be to document the flag). > >Such a flag only makes sense for the whole mirror, not selected components, >right? The flag would be at the volume level. >This doesn't fix the case when one has file systems and swap on the same >mirror, but could be helpful in some cases. This depends on how you build your filesystems. If you create a single vinum volume and use disklabel to partition it, then I agree that marking the whole volume as "no recovery needed" doesn't help. If you have multiple vinum volumes with each filesystem/swap on a distinct volume then a per-volume flag will work. LSM does not support mixing filesystems and swap on a single volume. Vinum allows either approach and it's not particularly clear which is preferable, though there appear to be advantages in avoiding disklabel (and its limitations). -- Peter Jeremy