From owner-freebsd-questions@FreeBSD.ORG Sat Nov 6 10:03:01 2010 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 633C3106564A for ; Sat, 6 Nov 2010 10:03:01 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3fd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id B544C8FC17 for ; Sat, 6 Nov 2010 10:03:00 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id oA6A2u7K042833 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Sat, 6 Nov 2010 10:02:56 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk oA6A2u7K042833 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1289037776; bh=hAuArsWqEmXeo6wvXt9YOHDWzh7oWAY3B2mIPY7hoEk=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4CD527C9.7010901@infracaninophile.co.uk>|Date:=20S at,=2006=20Nov=202010=2010:02:49=20+0000|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Mozilla/5.0=20(Macintosh=3B=20U=3B=20Intel=20Mac= 20OS=20X=2010.6=3B=20en-GB=3B=20rv:1.9.2.12)=20Gecko/20101027=20Th underbird/3.1.6|MIME-Version:=201.0|To:=20freebsd-questions@freebs d.org|Subject:=20Re:=20dying=20disk|References:=20<4CD52176.103090 3@nagual.nl>|In-Reply-To:=20<4CD52176.1030903@nagual.nl>|X-Enigmai l-Version:=201.1.1|OpenPGP:=20id=3D60AE908C|Content-Type:=20multip art/signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"applicati on/pgp-signature"=3B=0D=0A=20boundary=3D"------------enig6055700A9 49A755F5FF559FA"; b=rCKO6Qm03p01i4KMwPFMXS8lW5kARBiNX+OpG8K3xOyOloM4WLf57m15cxLGqFjX0 pdC84r+Wim7eniMgSz1LlL0NE9Dm8lQPP5sDDvzcCpU1PGu8MDQVc9XMVi4BsRMK1j e0Xxt+1OIhXql8KplmIPOHCqwKYM5qZgHYD4GIY4= Message-ID: <4CD527C9.7010901@infracaninophile.co.uk> Date: Sat, 06 Nov 2010 10:02:49 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4CD52176.1030903@nagual.nl> In-Reply-To: <4CD52176.1030903@nagual.nl> X-Enigmail-Version: 1.1.1 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6055700A949A755F5FF559FA" X-Virus-Scanned: clamav-milter 0.96.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_FAIL autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lucid-nonsense.infracaninophile.co.uk Subject: Re: dying disk 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: Sat, 06 Nov 2010 10:03:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig6055700A949A755F5FF559FA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/11/2010 09:35, Dick Hoogendijk wrote: > My system disk is dying. No problem here. I know how to move a FreeBSD > system to new hardware. I have a question though about my GEOM mirror. > The system now had one geom mirror consisting of two 1Tb drives. How ca= n > I move that mirror over to the Fbsd system on the new hardware. I guess= > I don't know the right steps to take on a new fbsd system for an > existing geom mirror. Any help is welcome. Do you mean physically moving over the disk hardware behind the gmirror from one machine to another? Well, assuming that the processors on the old and new machines are binary compatible, it's just a matter of hooking up both drives to the new system[*]. It doesn't matter if they end up with different underlying device names -- so long as the kernel can taste the geom metadata on both drives it can reconstruct your gmirror. If the gmirror contains the root FS, it's actually easier than moving a traditionally configured system on a single drive, since you won't have to fiddle about rewriting /etc/fstab and teaching the bootloader the new place to mount the root directory from. It's much the same effect when moving ZFS RAID sets between systems -- as you might hope, since this is basic functionality required when setting up hot-swap and high-availability disk systems. Similarly, using glabel helps make moving single drives between systems (eg. USB memory sticks) much more pleasurable. Cheers, Matthew [*] Or you could just move one drive from your gmirror plus install a blank drive which you could later add to the mirror and resynch. --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig6055700A949A755F5FF559FA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzVJ9AACgkQ8Mjk52CukIwUVACfSPAw+omC6UiQHL64qvxr1pIZ 7ycAnicPlfBOF3PLSeLNBVrcpi7l4g8o =adL1 -----END PGP SIGNATURE----- --------------enig6055700A949A755F5FF559FA--