From owner-freebsd-stable@FreeBSD.ORG Tue Jul 20 08:41:19 2010 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 815DC1065673 for ; Tue, 20 Jul 2010 08:41:19 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id C54138FC12 for ; Tue, 20 Jul 2010 08:41:18 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id LAA27184; Tue, 20 Jul 2010 11:41:15 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4C45612A.2060502@icyb.net.ua> Date: Tue, 20 Jul 2010 11:41:14 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100517) MIME-Version: 1.0 To: Garrett Moore References: <4C44B104.2050000@libeljournal.com> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-stable Subject: Re: Problems replacing failing drive in ZFS pool 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: Tue, 20 Jul 2010 08:41:19 -0000 on 20/07/2010 01:04 Garrett Moore said the following: > Well, hotswapping worked, but now I have a totally different problem. Just > for reference: > # zpool offline tank da3 > # camcontrol stop da3 > > # camcontrol rescan all > <'da3 lost device, removing device entry'> > # camcontrol rescan all > <'da3 at mpt0 ...', so new drive was found! yay> > # zpool replace tank da3 > *cannot replace da3 with da3: device is too small* > > So I looked at the smartctl output for the old and new drive. Old: > Device Model: WDC WD15EADS-00P8B0 > Serial Number: WD-WMAVU0087717 > Firmware Version: 01.00A01 > User Capacity: 1,500,301,910,016 bytes > > New: > Device Model: WDC WD15EADS-00R6B0 > Serial Number: WD-WCAVY4770428 > Firmware Version: 01.00A01 > User Capacity: 1,500,300,828,160 bytes > > God damnit, Western Digital. What can I do now? It's such a small > difference, is there a way I can work around this? My other replacement > drive is the "00R6B0" drive model as well, with the slightly smaller > capacity. I second what others have said - crap. But there could be some hope, not sure. Can you check what is the actual size used by the pool on the disk? It should be somewhere in zdb -C output ("asize"?). If I remember correctly, that actual size should be a multiple of some rather large power of two, so it could be that it is smaller than 'User Capacity' of both old and new drives. -- Andriy Gapon