From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 17:10:42 2004 Return-Path: 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 F030916A4CE for ; Mon, 5 Apr 2004 17:10:42 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74AE943D48 for ; Mon, 5 Apr 2004 17:10:42 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id 520192BD7F for ; Tue, 6 Apr 2004 10:10:11 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 9644D51215; Tue, 6 Apr 2004 09:40:09 +0930 (CST) Date: Tue, 6 Apr 2004 09:40:09 +0930 From: Greg 'groggy' Lehey To: Rob Ellis , freebsd-questions@freebsd.org Message-ID: <20040406001009.GA99363@wantadilla.lemis.com> References: <20040405164212.GB58790@web.ca> <20040405224249.GX99363@wantadilla.lemis.com> <20040405230945.GB8080@web.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IuAdKFTdh+dbsMH3" Content-Disposition: inline In-Reply-To: <20040405230945.GB8080@web.ca> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Subject: Re: Vinum + new disk for mirror X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2004 00:10:43 -0000 --IuAdKFTdh+dbsMH3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 5 April 2004 at 19:09:46 -0400, Rob Ellis wrote: > On Tue, Apr 06, 2004 at 08:12:49AM +0930, Greg 'groggy' Lehey wrote: >> On Monday, 5 April 2004 at 12:42:12 -0400, Rob Ellis wrote: >>> We have a machine with a vinum mirror, all the partitions except >>> the root partition mirrored between two disks. The second >>> disk has died and I want to replace it. I can't find a disk exactly >>> the same, so I have a disk that's bigger (80GB, old one was 60GB). >> >> That's not a problem. Vinum doesn't use disks. >> >>> Can I... >>> >>> - shutdown, replace the bad disk with the bigger new disk >>> - boot single user, mount / >>> - copy the good disk to the new disk with: >>> dd bs=128k if=/dev/ad0 of=/dev/ad2 >>> - vinum start >>> - restart any stale subdisks (?) >>> - ... >> >> You can, though you'll need a couple more steps. But why don't you >> follow the instructions? >> http://www.vinumvm.org/vinum/replacing-drive.html or >> http://www.vinumvm.org/cfbsd/vinum.pdf. > > Oops. > > I guess what I was wondering about / wanted to be clear about is > whether the 'dd' of /dev/ad0 to /dev/ad2 is ok between disks that > aren't the same. I was hoping that it would copy the partition table > and boot blocks (I don't care about the extra space at the end of > the bigger disk)... You should do. > I was also hoping (blindly) that the vinum config would get copied > and that the dd of the data would speed up the rebuilding of the > mirror... The Vinum config would, indeed, get copied. But that's not the way to do it. > But it sounds like what I should do is manually configure the > partition table on the new disk to match the old one and then follow > the instructions? :-) No, make the partition table to cover the entire disk. Why throw away space? Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --IuAdKFTdh+dbsMH3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFAcfVhIubykFB6QiMRAlO3AKChVcmfO4j8Y+km9P8mKNjkYvYwbACeNyTn JRuPaVBMobGS/pEKeG1dGVA= =MA/L -----END PGP SIGNATURE----- --IuAdKFTdh+dbsMH3--