From owner-freebsd-geom@FreeBSD.ORG Wed Feb 14 11:42:15 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4E1C616A406 for ; Wed, 14 Feb 2007 11:42:15 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.freebsd.org (Postfix) with ESMTP id 0BA6C13C471 for ; Wed, 14 Feb 2007 11:42:15 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id C5F067FAF for ; Wed, 14 Feb 2007 12:12:59 +0100 (CET) Received: from twoflower.idi.ntnu.no (twoflower.idi.ntnu.no [129.241.104.169]) by fri.itea.ntnu.no (Postfix) with ESMTP for ; Wed, 14 Feb 2007 12:12:59 +0100 (CET) Received: by twoflower.idi.ntnu.no (Postfix, from userid 1002) id 75E751703F; Wed, 14 Feb 2007 12:12:59 +0100 (CET) Date: Wed, 14 Feb 2007 12:12:59 +0100 From: Ulf Lilleengen To: freebsd-geom@freebsd.org Message-ID: <20070214111259.GB60265@twoflower.idi.ntnu.no> Mail-Followup-To: freebsd-geom@freebsd.org References: <45D2E85B.9020507@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45D2E85B.9020507@quip.cz> User-Agent: Mutt/1.5.13 (2006-08-11) X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Subject: Re: The right way to remove disk drive X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "..."@twoflower.idi.ntnu.no List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Feb 2007 11:42:15 -0000 On ons, feb 14, 2007 at 11:45:47am +0100, Miroslav Lachman wrote: > Hi all, > > what is the right way to remove disk drive from running system without > reboot? > > I have Sun Fire X2100 with 2 identical drives in gmirror. One drive is > failing, so I want to replace this drive by another. Drive is no more > used by gmirror (gmirror status shows DEGRADED and running on one drive > only), atacontrol lists the drive attached to channel ata3, so I run > command `atacontrol detach ata3`. As stated in manpage "Devices on the > channel are removed from the kernel". Everything goes fine, system is > running.... but if I pull out the drive tray, system hangs and must be > power cycled. > > I had some worse problem with disk drive few month ago and if drive > disappeared completely from system (not visible by gmirror nor > atacontrol), I pulled out failed drive and system was running fine. Then > I replace the drive, system detected the new drive successfuly, then I > start gmirror synchronization... all in few minutes without reboot. > > So what is wrong with manual removing drive? > http://lists.freebsd.org/pipermail/freebsd-geom/2006-November/001701.html -- Ulf Lilleengen