From owner-freebsd-stable@FreeBSD.ORG Mon Sep 29 13:42:56 2008 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 490C810656A0; Mon, 29 Sep 2008 13:42:56 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [91.103.162.4]) by mx1.freebsd.org (Postfix) with ESMTP id 016758FC19; Mon, 29 Sep 2008 13:42:55 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 7EE5C19E02D; Mon, 29 Sep 2008 15:42:54 +0200 (CEST) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 6EF5819E02A; Mon, 29 Sep 2008 15:42:52 +0200 (CEST) Message-ID: <48E0DB7E.20804@quip.cz> Date: Mon, 29 Sep 2008 15:43:26 +0200 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: Jeremy Chadwick References: <20080921213426.GA13923@0lsen.net> <20080921215203.GC9494@icarus.home.lan> <20080921215930.GA25826@0lsen.net> <20080921220720.GA9847@icarus.home.lan> <249873145.20080926213341@takeda.tk> <20080927051413.GA42700@icarus.home.lan> <765067435.20080926223557@takeda.tk> <20080927064417.GA43638@icarus.home.lan> <20080927202250.GA60980@icarus.home.lan> In-Reply-To: <20080927202250.GA60980@icarus.home.lan> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Charles Sprickman , freebsd-stable@FreeBSD.org Subject: Re: Recommendations for servers running SATA drives X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 13:42:56 -0000 Jeremy Chadwick wrote: > On Sat, Sep 27, 2008 at 03:16:11PM -0400, Charles Sprickman wrote: > >>On Fri, 26 Sep 2008, Jeremy Chadwick wrote: [...] > This also leads me a little off-topic -- when it comes to disk > replacements, administrators want to be able to do this without taking > the system down. There are problems with this, but it often depends > greatly on hardware and BIOS configuration. > > I've successfully done a hot-swap (hardware: SATA hot-swap backplane, > AHCI in use, SATA2 disks), but it required me to issue "atacontrol > detach" first (I am very curious to know what would've happened had I > just yanked the disk). Upon inserting the new disk, one has to be > *very* careful about the order of atacontrol commands given -- there > are cases where "attach" will cause the system to panic or SATA bus to > lock up, but it seems to depend upon what commands were executed > previously (such as "reinit"). > > Sorry if this is off-topic, but I wanted to mention it. Hot-swapping is totally upredictable on FreeBSD (from my experiences). I tried it many times on Asus 1U servers and on Sun Fire X2100 / X2100 M2 with FreeBSD 6.2 and 7.0 (both i386). It sometimes panics on atacontrol detach, but never panics if disk was marked as failed by gmirror and detached by system it-self, then just removed from running machine. It sometimes panics immediately after the re-insertion of disk, sometimes after atacontrol attach. Sometimes it detects and attach disk without my intervention, so I can easily insert the disk in to gmirror. Then I stopped playing with hot-swapping and now always do power off before disk swapping. Miroslav Lachman