From owner-freebsd-geom@FreeBSD.ORG Wed Feb 14 11:05:58 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 D800B16A409 for ; Wed, 14 Feb 2007 11:05:58 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from home.quip.cz (grimm.quip.cz [213.220.192.218]) by mx1.freebsd.org (Postfix) with ESMTP id 9844013C471 for ; Wed, 14 Feb 2007 11:05:58 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from [192.168.1.2] (qwork.quip.test [192.168.1.2]) by home.quip.cz (Postfix) with ESMTP id 6C06562E7 for ; Wed, 14 Feb 2007 11:45:47 +0100 (CET) Message-ID: <45D2E85B.9020507@quip.cz> Date: Wed, 14 Feb 2007 11:45:47 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: The right way to remove disk drive X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:05:58 -0000 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? System is 6.2 RELEASE with GENERIC kernel, gmirror loaded from loader.conf, but previous disk replacement was in time of 6.1 RELEASE. Is there any known 'new' problems in 6.2? Miroslav Lachman