From owner-freebsd-questions@FreeBSD.ORG Tue Jun 3 14:48:19 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3B495987 for ; Tue, 3 Jun 2014 14:48:19 +0000 (UTC) Received: from smtpb.telissant.net (smtpb.telissant.net [199.233.230.156]) by mx1.freebsd.org (Postfix) with ESMTP id 0E7A022D8 for ; Tue, 3 Jun 2014 14:48:18 +0000 (UTC) Received: from barrida.3dresearch.com (localhost [127.0.0.1]) by smtpb.telissant.net (Postfix) with ESMTP id 35F2F2738A for ; Tue, 3 Jun 2014 10:48:11 -0400 (EDT) X-Virus-Scanned: amavisd-new at telissant.net Received: from smtpb.telissant.net ([127.0.0.1]) by barrida.3dresearch.com (barrida.3dresearch.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0a3TkumOwMyS for ; Tue, 3 Jun 2014 10:47:47 -0400 (EDT) Received: from doncurzio.3dresearch.com (pool-108-3-85-202.pitbpa.east.verizon.net [108.3.85.202]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtpb.telissant.net (Postfix) with ESMTPSA id 9FD9F27372 for ; Tue, 3 Jun 2014 10:47:47 -0400 (EDT) Received: from doncurzio.3dresearch.com (localhost [127.0.0.1]) by doncurzio.3dresearch.com (Postfix) with SMTP id 07B68A1E2C for ; Tue, 3 Jun 2014 10:47:47 -0400 (EDT) Date: Tue, 3 Jun 2014 10:44:16 -0400 From: Janos Dohanics To: FreeBSD Questions Subject: zpool offline - no such device Message-Id: <20140603104416.a13299f4a2bbdbdb36782dee@3dresearch.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 14:48:19 -0000 Hello List, I have a failing/failed drive: # zpool status -x pool: vol1 state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the faulted device, or use 'zpool clear' to mark the device repaired. scan: scrub repaired 64K in 2h39m with 0 errors on Sun Jun 1 02:39:08 2014 config: 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? For the failing drive, "zdb" gives: guid: 16455153587833556178 Should I try "zpool offline vol1 [guid]"? 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? -- Janos Dohanics