From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 8 17:52:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7615616A4DD for ; Fri, 8 Sep 2006 17:52:03 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2B0D43D6E for ; Fri, 8 Sep 2006 17:51:58 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr11.xs4all.nl (8.13.6/8.13.6) with ESMTP id k88Hpt3J012545; Fri, 8 Sep 2006 19:51:55 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.6/8.13.3) with ESMTP id k88HptIv097775; Fri, 8 Sep 2006 19:51:55 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.6/8.13.6/Submit) id k88Hpsah097774; Fri, 8 Sep 2006 19:51:54 +0200 (CEST) (envelope-from wb) Date: Fri, 8 Sep 2006 19:51:54 +0200 From: Wilko Bulte To: Mike Meyer Message-ID: <20060908175154.GB97648@freebie.xs4all.nl> References: <20060908100337.73c0c88d.vlady@gbservices.biz> <17665.28700.948624.425733@bhuda.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17665.28700.948624.425733@bhuda.mired.org> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Vladimir Terziev , freebsd-hackers@freebsd.org Subject: Re: Mirroring the root disk of already installed machine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 17:52:03 -0000 On Fri, Sep 08, 2006 at 09:29:00AM -0400, Mike Meyer wrote.. > In <20060908100337.73c0c88d.vlady@gbservices.biz>, Vladimir Terziev typed: > > i have a machine running FreeBSD 5.4 . It has 2 HDDs. Recently the non-root HDD failed and lost all the data on it. Since the machine is working 24/7 i want to mirror its root disk (this one with the OS on it) in order to prevent a severe downtime and data loss. > > > > Is there a safe way to do the above using gmirror ? > > Yes. I started doing it on FreeBSD 5.5. It's pretty simple: shut down > to single user. Create a mirror with your root disk in it. Edit > /etc/hosts to change the device name from ad* to /etc/fstab > mirror/*. Reboot. Once you're back up, add the second disk to the > mirror. If you want exact instructions, consult google. The tricky > part is creating the initial mirror on a mounted file system - you > have to toggle a sysctl (I think that's what it was) to do that. Some > directions include that; others recommend you boot on a recovery CD to > create the mirror initially. > > BTW, this probably should have gone to -questions. > > -- > Mike Meyer http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --- end of quoted text --- -- Wilko Bulte wilko@FreeBSD.org