Date: Mon, 25 Aug 2008 10:11:38 -0700 From: Christopher Cowart <ccowart@rescomp.berkeley.edu> To: Sasa Stupar <sasa@stupar.homelinux.net> Cc: freebsd-questions@freebsd.org Subject: Re: Cloning a gmirrored hard drive Message-ID: <20080825171138.GF25990@hal.rescomp.berkeley.edu> In-Reply-To: <48B186B3.4030803@stupar.homelinux.net> References: <48B186B3.4030803@stupar.homelinux.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080825171138.GF25990>