From owner-freebsd-questions@FreeBSD.ORG Mon Aug 25 17:11:38 2008 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 DDF60106564A for ; Mon, 25 Aug 2008 17:11:38 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: from hal.rescomp.berkeley.edu (hal.Rescomp.Berkeley.EDU [169.229.70.150]) by mx1.freebsd.org (Postfix) with ESMTP id C11EB8FC0A for ; Mon, 25 Aug 2008 17:11:38 +0000 (UTC) (envelope-from ccowart@rescomp.berkeley.edu) Received: by hal.rescomp.berkeley.edu (Postfix, from userid 1225) id B3B873C04C2; Mon, 25 Aug 2008 10:11:38 -0700 (PDT) Date: Mon, 25 Aug 2008 10:11:38 -0700 From: Christopher Cowart To: Sasa Stupar Message-ID: <20080825171138.GF25990@hal.rescomp.berkeley.edu> Mail-Followup-To: Sasa Stupar , freebsd-questions@freebsd.org References: <48B186B3.4030803@stupar.homelinux.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="cpvLTH7QU4gwfq3S" Content-Disposition: inline In-Reply-To: <48B186B3.4030803@stupar.homelinux.net> Organization: RSSP-IT, UC Berkeley User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-questions@freebsd.org Subject: Re: Cloning a gmirrored hard drive 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: Mon, 25 Aug 2008 17:11:39 -0000 --cpvLTH7QU4gwfq3S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sasa Stupar wrote: > My situation: I have a server with FBSD 7 installed with two 40 GB disks > in RAID 1 (gmirror) config. > Now I have noticed the lack of space on the drive so I am thinking to > change these disks for two 160 GB. > What is the best way to clone the main hard disk in raid 1 config? Is > this possible or is it better to switch back from RAID 1 to single disk > system and then do cloning with dump/restore (or dd) and then make RAID > 1 again? I use a variation of this guide[1] when I'm setting up gmirror. The last time I increased the size of the array, I removed one drive =66rom the array (gmirror remove). I rebooted with the bigger drive. I created /dev/mirror/gm1 with the new drive. I followed the dump/restore steps from the guide, switching up the logic a little bit. I then booted the system from the new, larger mirror (gm1) with the other large disk inserted, and did a `gmirror insert'. In the process of building the new mirror on gm1, I made bigger labels in the labeling step for the ones that were filling up. [1] http://people.freebsd.org/~rse/mirror/=20 --=20 Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley --cpvLTH7QU4gwfq3S Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iQIcBAEBAwAGBQJIsufKAAoJEIGh6j3cHUNPPHsQALQAZ8Q8skuFxJAOlWoC0q5s GLNxsQ2dVlfqzexD8tuZzx6d3uA9sGUyQ3TpcYYngVPy4nGArFtAF7JYVjnopzZj tbjJJ90hmOQMTXyA+KMC5/wSCrmOWcTrHalusb2hlUGuHWjqXkj18shCe5W5HEj8 KEkiGmNFrmDbCCXxkGXHhA+5NnhK257FGPUV+qyggnWQ3fNYlkg/KtzMBzDsQJxu d4Eli7kvVDmW+KE4fE1oOTINYuoSN9BwV6Wdk0nQLP/7OZ3KMhxIf7LL0clrWSOq bfLWZEGt0OlkByB1WMUYiiBdiFrcJ5npaYUK2HjYRrh1SSW4jvjQKKKIEh1KNidH 8RXWliyCjUSXwWPNbcCdEMrW42c6OM5/UHaoCGXcEyhA9NOZTrj4+JwO5jEtu3fz HoGOM1PmJXyxSu1TcKnIJlp8iqooqUaBF5icicf2z6Gs4pOoS9fvbyL1w0Z6b1h+ mt/28ttyBZo39Ghu16a3uwIDWzxPpLsGs1/LeYS0AE/R1WkNA5+PsOcWXVMsIfEk pimC6yUBenSbMd1t9IbWaUu0CgBs4n0M7eowxyqEyZRzsuAL1g6+1bRZjWgs8TcM C+kf6LdSTn+FJHdBM19AvtKSEcDobA1Xkmw/8Ur2c9U/35OYpH7uPRjUFImmTS3a 6iCIdEiNTGVBXI5z5Vsc =W7Rk -----END PGP SIGNATURE----- --cpvLTH7QU4gwfq3S--