From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 08:00:24 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 1CB21BEF for ; Mon, 10 Mar 2014 08:00:24 +0000 (UTC) Received: from mail-wg0-x230.google.com (mail-wg0-x230.google.com [IPv6:2a00:1450:400c:c00::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A8EC02DD for ; Mon, 10 Mar 2014 08:00:23 +0000 (UTC) Received: by mail-wg0-f48.google.com with SMTP id l18so3809712wgh.19 for ; Mon, 10 Mar 2014 01:00:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=u/8GupoxKHubzmqzfk+oLpx1G4LdeN7BZ87YlVWWRFU=; b=dLtp/zubaLXjvdRe2S7/sSb5JOAV0U8ufdC5F9YxgLsPR1ZMvCV4GlYhQ15GidJgbi AhV1+jfPmXf0U58q8o8/5v//ozUYcVPQjhYZpUkNlzkp649xwq/cYfyKouNFfgkq4ZrB Hb4PQNeWBkanRVoiH8mSjsiL3k4XOHDJbXXJFhOnbnVlF0B2sDh94uhuS77OsUixL9KM xccj9UFunDBvLuIqaKdsvgG22LPl74XnINmRyOnEYdnjkAqHKUqT5WitdLAaxQblg8zI LwtkhN2At1R2xtOlLOZL2gQ+Blxxzem4KslWnLRGFfLEmzl66J5MQLVsOpuFzEYxkRhO chKg== X-Received: by 10.194.80.166 with SMTP id s6mr27451573wjx.22.1394438422112; Mon, 10 Mar 2014 01:00:22 -0700 (PDT) Received: from [192.168.1.129] ([193.173.55.180]) by mx.google.com with ESMTPSA id di9sm10059716wid.6.2014.03.10.01.00.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Mar 2014 01:00:21 -0700 (PDT) Message-ID: <531D7114.2030803@gmail.com> Date: Mon, 10 Mar 2014 09:00:20 +0100 From: Johan Hendriks User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Jonathan Chen Subject: Re: How to destroy a zpool that can no longer be imported? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 08:00:24 -0000 Jonathan Chen schreef: > Hi, > > While experimenting ZFS, I've ended up with a zpool that can't be imported: > > 8:41pm# zpool import > pool: lake > id: 10528535549827216272 > state: UNAVAIL > status: One or more devices are missing from the system. > action: The pool cannot be imported. Attach the missing > devices and try again. > see: http://illumos.org/msg/ZFS-8000-3C > config: > > lake UNAVAIL insufficient replicas > 12490607842175990247 UNAVAIL cannot open > > I don't care about the (non-existent) data, but I would like to remove > the pool entry. The standard way is to import the pool and then > destory it. However, this pool cannot be import (even with -f) and so > there doesn't seem to be a way to destroy it. > > How do I get rid of this bogus faulted pool? Try zpool labelclear, it will wipe the labels from the disk. Be aware that zpool labelclear clears all labels like gimmor, gpart and not only zpool labels so you will end up with a clean disk !!!! regards Johan