From owner-freebsd-questions@FreeBSD.ORG Wed Sep 10 03:15:59 2003 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 C804C16A4BF for ; Wed, 10 Sep 2003 03:15:59 -0700 (PDT) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9698A43FAF for ; Wed, 10 Sep 2003 03:15:58 -0700 (PDT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.9/8.12.9) with ESMTP id h8AAGAKj003174 for ; Wed, 10 Sep 2003 12:16:10 +0200 (CEST) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.9/8.12.9/Submit) id h8AAG9VD003173 for freebsd-questions@freebsd.org; Wed, 10 Sep 2003 12:16:09 +0200 (CEST) Date: Wed, 10 Sep 2003 12:16:09 +0200 From: Stijn Hoop To: freebsd-questions@freebsd.org Message-ID: <20030910101609.GJ89391@pcwin002.win.tue.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SkvwRMAIpAhPCcCJ" Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! Subject: replace a working vinum drive in RAID-5 config 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: Wed, 10 Sep 2003 10:15:59 -0000 --SkvwRMAIpAhPCcCJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm trying to find out how to replace a drive in a vinum RAID-5 volume that's still working. I have the following volume (copied by hand, sorry): V local State: up Plexes: 1 Size: 167 GB P local.p0 R5 State: up Subdisks: 4 Size: 167 GB S local.p0.s0 State: up PO: 0 B Size: 55 GB S local.p0.s1 State: up PO: 512 kB Size: 55 GB S local.p0.s2 State: up PO: 1024 kB Size: 55 GB S local.p0.s3 State: up PO: 1536 kB Size: 55 GB with s0..s3 on drives locala..d. Drive localc is on device /dev/ad14s1e, and that's the IDE disk I want to replace. So far, I've thought of doing the following: - boot the system single user - enter vinum - issue 'start' to read the configuration and start all volumes - issue 'stop localc' - this sets the state of local.p0.s2 to degraded automatically - stop vinum - halt the system - physically replace the drive - boot the system single user - fdisk / disklabel the new drive to include a 55GB sized vinum partition - enter vinum - issue 'start' to read the configuration and start all volumes - issue 'start local.p0.s2' to revive the subdisk Can anyone confirm that this procedure will work? Or do I have to add a new drive to the system on the same device as the previous one? --Stijn --=20 The most reliable proof that there are extraterrestrial intelligent lifeforms out there is that nobody actually tries to get in contact with us. -- Dirk Mueller --SkvwRMAIpAhPCcCJ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/XvnpY3r/tLQmfWcRAjLiAKCfodq7i2/p+IZQi9uiGL79jFKrtACfdU8c nsFtQYqm1AbE7MFM4ru5M/E= =fy7G -----END PGP SIGNATURE----- --SkvwRMAIpAhPCcCJ--