From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 03:54:28 2005 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 4BC2E16A4CE for ; Tue, 18 Jan 2005 03:54:28 +0000 (GMT) Received: from galilee.polands.org (CPE-24-208-53-189.new.rr.com [24.208.53.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BC9F43D1F for ; Tue, 18 Jan 2005 03:54:27 +0000 (GMT) (envelope-from djp@polands.org) Received: from jericho.polands.org (jericho.polands.org [172.16.1.35]) by galilee.polands.org (8.12.9/8.12.9) with ESMTP id j0I3sNRZ039076; Mon, 17 Jan 2005 21:54:24 -0600 (CST) (envelope-from djp@polands.org) Received: from jericho.polands.org (localhost [127.0.0.1]) by jericho.polands.org (8.13.1/8.13.1) with ESMTP id j0I3sN5I041535; Mon, 17 Jan 2005 21:54:23 -0600 (CST) (envelope-from djp@jericho.polands.org) Received: (from djp@localhost) by jericho.polands.org (8.13.1/8.13.1/Submit) id j0I3sNQQ041534; Mon, 17 Jan 2005 21:54:23 -0600 (CST) (envelope-from djp) Date: Mon, 17 Jan 2005 21:54:23 -0600 From: Doug Poland To: Christian Hiris <4711@chello.at> Message-ID: <20050118035422.GA41480@polands.org> References: <20050116201414.GA76014@polands.org> <200501162315.01954.4711@chello.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200501162315.01954.4711@chello.at> User-Agent: Mutt/1.5.6i cc: freebsd-questions@freebsd.org Subject: Re: gmirror: replacing failed disks 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, 18 Jan 2005 03:54:28 -0000 On Sun, Jan 16, 2005 at 11:14:48PM +0100, Christian Hiris wrote: > On Sunday 16 January 2005 21:14, Doug Poland wrote: > > > > (My system has a provider gm0s1 with ad4 and ad6 as consumers, so > > I'll use those device names) > > > > Simulate ad4 failing: > > > > pull the drive > > put the drive back in, reboot if necessary to detect drive > > After you put the drive in, you can try to attach or reinit the > controller channel where it's connected to with the command > 'atacontrol'. > did that, atacontrol reinit 2, and the drive shows up, yee haw! > If you put the same drive in, and you haven't zeroed the bootblocks > and the slicetable (on ad4) geom will recognice that the missing disk > has been re-attached and will start rebuilding. > That's not happening, gmirror says: GEOM_MIRROR: Component ad4 (device gm0s1) broken, skipping. GEOM_MIRROR: Cannot add disk ad4 to gm0s1 (error=22). > If you want to simulate insertion of a blank disk, run the 'gmirror > forget' > I'll try this after I've got the above working :) Hey, thanks for all your help so far, I really appreciate it. -- Regards, Doug