From owner-freebsd-questions@FreeBSD.ORG Tue Jun 3 21:55:55 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5EB93789 for ; Tue, 3 Jun 2014 21:55:55 +0000 (UTC) Received: from mail.magehandbook.com (173-8-4-45-WashingtonDC.hfc.comcastbusiness.net [173.8.4.45]) by mx1.freebsd.org (Postfix) with ESMTP id 3625F2F20 for ; Tue, 3 Jun 2014 21:55:54 +0000 (UTC) Received: from [192.168.1.50] (Mac-Pro.magehandbook.com [192.168.1.50]) by mail.magehandbook.com (Postfix) with ESMTP id 3gjnBB5PzZz1Nl for ; Tue, 3 Jun 2014 17:55:46 -0400 (EDT) Date: Tue, 03 Jun 2014 17:55:46 -0400 From: Daniel Staal To: FreeBSD Questions Subject: Re: zpool offline - no such device Message-ID: <9D00B0534C785E4CE751D6F7@[192.168.1.50]> In-Reply-To: <20140603104416.a13299f4a2bbdbdb36782dee@3dresearch.com> References: <20140603104416.a13299f4a2bbdbdb36782dee@3dresearch.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Jun 2014 21:55:55 -0000 --As of June 3, 2014 10:44:16 AM -0400, Janos Dohanics is alleged to have said: > NAME STATE READ WRITE > CKSUM vol1 DEGRADED 0 > 0 0 raidz1-0 DEGRADED 0 > 0 0 gptid/e433f9c3-0545-11e1-812d-8c89a53220c1 ONLINE 0 > 0 0 gptid/e485eeba-0545-11e1-812d-8c89a53220c1 FAULTED 49 > 260 0 too many errors > gptid/e4d8ee9d-0545-11e1-812d-8c89a53220c1 ONLINE 0 0 0 > > errors: No known data errors > > From the output of "gpart list", > gptid/e485eeba-0545-11e1-812d-8c89a53220c1 corresponds to ada1p2. > > So, using the example from the handbook, I tried: > ># zpool offline vol1 ada1 > cannot offline ada1: no such device in pool > > Why is it that zpool doesn't know about the ada1 device? Because ada1 isn't in your pool - 'gptid/e485eeba-0545-11e1-812d-8c89a53220c1' aka 'ada1p2' is. That is only one of the partitions of ada1 - there may be more. (It's entirely possible that *all* of the devices in the zpool are on ada1...) In fact there is likely at least one more: ada1p1. Before you do anything else, it's probably a good idea to figure out exactly what is on that disk and how many partitions it has. Pulling it out may not affect the zpool - but it may break other things in your system, depending on what's on there. > For the failing drive, "zdb" gives: > > guid: 16455153587833556178 > > Should I try "zpool offline vol1 [guid]"? I would try `zpool offline gptid/e485eeba-0545-11e1-812d-8c89a53220c1` - that's what zfs calls the disk. But I'm not entirely sure about it either - it would be a lot easier if these partitions had gpt lables, which I know work well with ZFS. > When I'm replacing the failing drive with a new one (in the same USB > slot), can I expect "zpool replace vol1 ada1" to work? That should probably work - but remember the mention above of working out what *else* is on that drive. This command would take the whole disk for ZFS, and you may want to replace the other partitions of the bad disk with something. Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------