From owner-freebsd-stable@FreeBSD.ORG Thu Jan 19 12:14:44 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A84C16A420 for ; Thu, 19 Jan 2006 12:14:44 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw1.york.ac.uk (mail-gw1.york.ac.uk [144.32.128.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26C1043D49 for ; Thu, 19 Jan 2006 12:14:42 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from buffy.york.ac.uk (buffy-128.york.ac.uk [144.32.128.160]) by mail-gw1.york.ac.uk (8.12.10/8.12.10) with ESMTP id k0JCEceu003870; Thu, 19 Jan 2006 12:14:38 GMT Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.13.4/8.13.4) with ESMTP id k0JCEcll093023; Thu, 19 Jan 2006 12:14:38 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.13.4/8.13.4/Submit) id k0JCEc2Z093022; Thu, 19 Jan 2006 12:14:38 GMT (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: Larry Rosenman In-Reply-To: <006001c61cee$6d792d50$68c8a8c0@lerctr.org> References: <006001c61cee$6d792d50$68c8a8c0@lerctr.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 19 Jan 2006 12:14:37 +0000 Message-Id: <1137672877.89997.8.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Cc: freebsd-stable@freebsd.org Subject: RE: Gmirror'd SWAP: no dump? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jan 2006 12:14:44 -0000 On Thu, 2006-01-19 at 05:49 -0600, Larry Rosenman wrote: > Igor Robul wrote: > > On Wed, Jan 18, 2006 at 12:44:27PM -0600, Larry Rosenman wrote: > >> Are there any plans to support dumping to a gmirror'd swapfile? > > Dumping occurs when kernel is in "bad condition", so GEOM can not be > > safe used (for example panic in GEOM code). > > > > Check archives for last month of 2005 for longer explanation. > > I was afraid of that. What's the recommendation for how to > Set up a 2-disk system with mirroring then? > > All the HOWTO's I've seen have the entire disk mirrored, including > all the pieces. > > My current setup is 3 BSD partitions in 1 FDISK slice. With the entire > disk (da0/da1) mirrored. > > How can I set it up to allow dumps? If you look at the mirror status, you'll see each disk is assigned a priority. In theory, "The component with the biggest priority is used [...] as a master component when resynchronization is needed, e.g. after a power failure when the device was open for writing." (gmirror(8)). Therefore, if you set dumps to /dev/da0s1b (or whichever swap partition is on the disk with the biggest priority), the machine can dump to the disk directly, and will end up resyncing to the other disk on reboot (which it would have had to do anyway due to the panic), and your dump will be doubly safe. I say "in theory", because on the one machine I have that uses gmirror, both disks have a priority of zero (which i get the feeling is invalid, from the gmirror man page). Gavin