From owner-freebsd-questions@FreeBSD.ORG Sun Jan 29 10:35:32 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D8B5016A420 for ; Sun, 29 Jan 2006 10:35:32 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 454A643D62 for ; Sun, 29 Jan 2006 10:35:28 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.4/8.13.4) with ESMTP id k0TAZHQn083000; Sun, 29 Jan 2006 10:35:17 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <43DC9A60.9060506@infracaninophile.co.uk> Date: Sun, 29 Jan 2006 10:35:12 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: Yance Kowara References: <20060129054344.24019.qmail@web30309.mail.mud.yahoo.com> In-Reply-To: <20060129054344.24019.qmail@web30309.mail.mud.yahoo.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigC2D310090E2F3CC51A4B2841" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 29 Jan 2006 10:35:18 +0000 (GMT) X-Virus-Scanned: ClamAV 0.88/1255/Sat Jan 28 09:55:09 2006 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on happy-idiot-talk.infracaninophile.co.uk Cc: vini@fugspbr.org, freebsd-questions@freebsd.org Subject: Re: GEOM - how do we replace a failing HDD? 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: Sun, 29 Jan 2006 10:35:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC2D310090E2F3CC51A4B2841 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Yance Kowara wrote: > We are trying to use GEOM to make a RAID-1 system > (using a pair of identical IDE) and it is quite simple > to setup. >=20 > Does anyone know how to replace the hard disk if any > of the two disks fails? There does not seem to be much > clear documentation, if any exists, about this. It's explained quite clearly in the gmirror(8) man page -- particularly look at the examples near the end See also this very useful article by Dru Lavigne: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html > More importantly, if the first HDD fails, can we just > stick a new HDD and it would boot from the second HDD > and GEOM will synchronise it? Sure. Extract the failed disk, insert the new one, and then run: # gmirror forget gm0 # gmirror insert gm0 ad1 substituting whatever values are appropriate for the name of your raid 1 instead of gm0, and whatever disk device it is you're replacing instead of ad1. Hmmm... that sequence works very well with hot-swap drives. If you need to power down to extract the failed disk, then I think you should wait until you've got the new drive in and the system back running before trying any of those commands. You'll get lots of nasty looking error messages on boot-up, but it should work. If you have to reboot to change disks, and depending on which disk it is that fails, you may need to swap drives -- make your good disk the primary master, and put the new disk in as secondary and/or slave. Or you may need to fiddle around in the bios to tell your system which disk to boot from. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigC2D310090E2F3CC51A4B2841 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD3Jpl8Mjk52CukIwRAzEdAJ0avd89ODQouNjraG3zyAe5vYcdsgCePu8e 3T5nGfAx1M6cUkQvwg7NNag= =nRkP -----END PGP SIGNATURE----- --------------enigC2D310090E2F3CC51A4B2841--