Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Sep 2006 19:51:54 +0200
From:      Wilko Bulte <wb@freebie.xs4all.nl>
To:        Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org>
Cc:        Vladimir Terziev <vlady@gbservices.biz>, freebsd-hackers@freebsd.org
Subject:   Re: Mirroring the root disk of already installed machine
Message-ID:  <20060908175154.GB97648@freebie.xs4all.nl>
In-Reply-To: <17665.28700.948624.425733@bhuda.mired.org>
References:  <20060908100337.73c0c88d.vlady@gbservices.biz> <17665.28700.948624.425733@bhuda.mired.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 08, 2006 at 09:29:00AM -0400, Mike Meyer wrote..
> In <20060908100337.73c0c88d.vlady@gbservices.biz>, Vladimir Terziev <vlady@gbservices.biz> 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
> -- 
> Mike Meyer <mwm@mired.org>		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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060908175154.GB97648>