From owner-freebsd-questions@FreeBSD.ORG Mon Dec 8 15:49:08 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 126431065670; Mon, 8 Dec 2008 15:49:08 +0000 (UTC) (envelope-from djp@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.124]) by mx1.freebsd.org (Postfix) with ESMTP id ABA848FC0C; Mon, 8 Dec 2008 15:49:07 +0000 (UTC) (envelope-from djp@polands.org) Received: from haran.polands.org ([75.87.219.217]) by hrndva-omta01.mail.rr.com with ESMTP id <20081208153350.GKGI17654.hrndva-omta01.mail.rr.com@haran.polands.org>; Mon, 8 Dec 2008 15:33:50 +0000 Received: from ammon.polands.org (ammon.polands.org [172.16.1.7]) by haran.polands.org (8.14.2/8.14.2) with ESMTP id mB8FXnr5002446; Mon, 8 Dec 2008 09:33:49 -0600 (CST) (envelope-from djp@polands.org) Received: from ammon.polands.org (localhost [127.0.0.1]) by ammon.polands.org (8.14.2/8.14.2) with ESMTP id mB8FXnvE057829; Mon, 8 Dec 2008 09:33:49 -0600 (CST) (envelope-from djp@ammon.polands.org) Received: (from djp@localhost) by ammon.polands.org (8.14.2/8.14.2/Submit) id mB8FXmT9057828; Mon, 8 Dec 2008 09:33:48 -0600 (CST) (envelope-from djp) Date: Mon, 8 Dec 2008 09:33:48 -0600 From: Doug Poland To: Ivan Voras Message-ID: <20081208153348.GA57784@polands.org> References: <493AFD81.6020705@polands.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-questions@freebsd.org Subject: Re: Backup complete gmirror/gstripe/gjournal drives, how-to? 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: Mon, 08 Dec 2008 15:49:08 -0000 On Mon, Dec 08, 2008 at 10:29:36AM +0100, Ivan Voras wrote: > Doug Poland wrote: > > Hello, > > > > I've got a 7.1-PRERELEASE i386 box with 4 SATA drives configured in > > a RAID-10 using gmirror, gstripe, and gjournal. Normally, I use > > dump and rsync for periodic backups on this machine, but I suspect > > that the gmirror/gstripe/gjournal information is not being backed > > up. > > > > If my assumption is correct, how can I perform a "one-time" backup > > such that I could do a bare-metal restore? The essence of the > > question being I want to preserve not only the data, but also the > > gmirror/gstripe/gjournal meta-data as well. > > > > The only thought that comes to mind is to boot with a 7.1 live > > filesystem CD-ROM and "dd" each drive, piping the results to my > > backup machine. e.g., > > > > host# dd if=/dev/ad4 bs=2m | gzip | nc backuphost 12345 > > host# dd if=/dev/ad6 bs=2m | gzip | nc backuphost 12346 > > host# dd if=/dev/ad10 bs=2m | gzip | nc backuphost 12347 > > host# dd if=/dev/ad12 bs=2m | gzip | nc backuphost 12348 > > > > Any thoughts, suggestions, caveats? > > I hope you understand the problems with this kind of backup > procedures. > Actually, I don't, that's why I'm posting :) My intent is to have a backup that can be used to completely restore the machine, including all the GEOM metadata. My suggestion of using dd is the only thing I could come up with so far. So I'm asking, is there a better way? > Assuming that ad4,6,10,12 are the drives from which you created your > RAID-10, everything is "backed up", including GEOM metadata. > Yes, those are the names of my drives. Thank you for your time, -- Regards, Doug