From owner-freebsd-stable@FreeBSD.ORG Wed Dec 14 08:41:08 2011 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 34E78106566B for ; Wed, 14 Dec 2011 08:41:08 +0000 (UTC) (envelope-from hausen@punkt.de) Received: from kagate.punkt.de (kagate.punkt.de [217.29.33.131]) by mx1.freebsd.org (Postfix) with ESMTP id B58D98FC08 for ; Wed, 14 Dec 2011 08:41:07 +0000 (UTC) Received: from hugo10.ka.punkt.de ([217.29.45.10]) by gate1.intern.punkt.de with ESMTP id pBE8TrpY064701 for ; Wed, 14 Dec 2011 09:29:53 +0100 (CET) Received: from [217.29.45.158] ([217.29.45.158]) by hugo10.ka.punkt.de (8.14.2/8.14.2) with ESMTP id pBE8Tr38036655 for ; Wed, 14 Dec 2011 09:29:53 +0100 (CET) (envelope-from hausen@punkt.de) From: "Patrick M. Hausen" Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 14 Dec 2011 09:29:52 +0100 Message-Id: To: FreeBSD Stable Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Subject: Hot-changing a failed HDD with ahci.ko 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: Wed, 14 Dec 2011 08:41:08 -0000 Hi, all, while most cheap servers with SATA disks are not really hot-plug capable, changing a failed disk (either gmirror or zfs) was possible without a reboot by executing e.g. if ad4 failed: atacontrol detach ata2 atacontrol attach ata2 What is the proper equivalent for ahci, ada0 and camcontrol? Stop unit commands seem not to work with SATA disks, so I tried: -> system logs about lost device, so far so good camcontrol reset 1 camcontrol devlist -> disk still not there camcontrol rescan 1 -> command hangs shutdown -r now -> system panics, eventually reboots I can provide details about the panic if someone is interested, but maybe there is a proper procedure already, which I simply missed. System is RELENG_8_2 amd64. ahci0: port = 0xf090-0xf097,0xf080-0xf083,0xf070-0xf077,0xf060-0xf063,0xf020-0xf03f = mem 0xfb921000-0xfb9217ff irq 19 at device 31.2 on pci0 ada0 at ahcich0 bus 0 scbus1 target 0 lun 0 ada0: ATA-8 SATA 1.x device ada0: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) ada1 at ahcich1 bus 0 scbus2 target 0 lun 0 ada1: ATA-8 SATA 1.x device ada1: 150.000MB/s transfers (SATA 1.x, UDMA6, PIO 8192bytes) ada1: Command Queueing enabled ada1: 953869MB (1953525168 512 byte sectors: 16H 63S/T 16383C) Thanks, Patrick --=20 punkt.de GmbH * Kaiserallee 13a * 76133 Karlsruhe Tel. 0721 9109 0 * Fax 0721 9109 100 info@punkt.de http://www.punkt.de Gf: J=FCrgen Egeling AG Mannheim 108285