From owner-freebsd-questions@FreeBSD.ORG Mon Mar 10 14:37:03 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 68BE0EA4 for ; Mon, 10 Mar 2014 14:37:03 +0000 (UTC) Received: from mail-wg0-x22d.google.com (mail-wg0-x22d.google.com [IPv6:2a00:1450:400c:c00::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 00B6EFE9 for ; Mon, 10 Mar 2014 14:37:02 +0000 (UTC) Received: by mail-wg0-f45.google.com with SMTP id l18so8233805wgh.28 for ; Mon, 10 Mar 2014 07:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:date:mime-version:subject:message-id:priority:in-reply-to :references:content-type:content-transfer-encoding :content-description; bh=erVrt+ovJ0LOzNMyKM+o5grWsmWP3fkgHhqeD0GBnY4=; b=pTXjIUbGTMgQY2UidNe10UYePbLHKnjEvI3np+LZoMCOnQ5Gn5MresxL7+CiLO+yKO OiVvTovzYvsdeIceoPEu7d51yD5nVlFQrNvhuCHgVcjW+btNKAEP5u92ewwiswlvcrqb iVnOLfrzmYULZsNXLIihq7HWpTzsFRiDq6XDTeYVvPZiANtsEQkamLBc3CEFZuqq4iM2 jwh3ga8K8eGeKdPUAmhTMEGrs2ZQsO8K/7xPnJSRt3XS9iUMe9eEplT3ri5Gg92C84tM Za0t/rU1IEyFaEd2Ia57aLYatpfhXpqhBWfnpGXG8IbgsdIshIdlYGO58Q50X3L9K4Zw xb4A== X-Received: by 10.194.24.35 with SMTP id r3mr1452201wjf.68.1394462221492; Mon, 10 Mar 2014 07:37:01 -0700 (PDT) Received: from [192.168.16.70] ([217.41.35.220]) by mx.google.com with ESMTPSA id fm3sm14344776wib.8.2014.03.10.07.36.59 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Mar 2014 07:37:00 -0700 (PDT) From: Dave B To: freebsd-questions@freebsd.org Date: Mon, 10 Mar 2014 14:36:51 -0000 MIME-Version: 1.0 Subject: Re: How to destroy a zpool that can no longer be imported? Message-ID: <531DCE03.30432.E0C4CA2@g8kbvdave.gmail.com> Priority: normal In-reply-to: References: X-mailer: Pegasus Mail for Windows (4.62) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body 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 14:37:03 -0000 If you don't mind loosing everthing on the physical disk(s)... "DBAN" Darik's Boot and Nuke. http://sourceforge.net/projects/dban/ Unlike Gpart (and GParted) this will truly errase the disk. What you end up with a truly clean, and able to be used for whatever you want afterwards, with no odd problems. I found GParted in particular, though it destroys the partition tables OK, it does not remove the data on disk that was in the partition. As a result, I had terrible troubles a while ago, getting FBSD 9.2 to reload, after I seriously screwed something up. GParted didn't do the job, I kept getting strange lib errors during the reinstall (from CD.) DBAN did the job, but it does take time, as it writes random noise to the entire physical disk, sector by sector. The re-install after that, just worked, no errors. The price is right, but take care, once let loose, that's it, there is no turning back. > 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? > -- > Jonathan Chen > >