Date: Sun, 29 Jan 2006 10:35:12 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Yance Kowara <yance_kowara@yahoo.com> Cc: vini@fugspbr.org, freebsd-questions@freebsd.org Subject: Re: GEOM - how do we replace a failing HDD? Message-ID: <43DC9A60.9060506@infracaninophile.co.uk> In-Reply-To: <20060129054344.24019.qmail@web30309.mail.mud.yahoo.com> References: <20060129054344.24019.qmail@web30309.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43DC9A60.9060506>