From owner-freebsd-questions@FreeBSD.ORG Mon Jan 16 18:49:49 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62CA7106564A for ; Mon, 16 Jan 2012 18:49:49 +0000 (UTC) (envelope-from mokomull@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id F08878FC0A for ; Mon, 16 Jan 2012 18:49:48 +0000 (UTC) Received: by werg1 with SMTP id g1so2033939wer.13 for ; Mon, 16 Jan 2012 10:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=4vJSJ4+qWb6jXcut7sFGfVPMdQt6jY5KSLbthn1b7BY=; b=C+u9NOjDKeUR4zwCwCY2x2NEd4A+gLOF95C1abPNxWl7qCoSpOXQjEvcieTt4UMn0F pkMIKNbT6aES5gppQ3FszTDn9kPKF6VwdanoS0uX7mbgcNk6mET77+GJ9no18huOnsQ7 55NsFoOqXOlqzmrI/dS6s5H7w6egnbm9dX9ek= MIME-Version: 1.0 Received: by 10.216.131.29 with SMTP id l29mr5663422wei.5.1326739787836; Mon, 16 Jan 2012 10:49:47 -0800 (PST) Received: by 10.223.156.65 with HTTP; Mon, 16 Jan 2012 10:49:47 -0800 (PST) In-Reply-To: References: Date: Mon, 16 Jan 2012 10:49:47 -0800 Message-ID: From: Matt Mullins To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: How to destroy a zombie zpool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2012 18:49:49 -0000 On Mon, Jan 16, 2012 at 8:37 AM, Daniel Staal wrote: > There is a zombie copy of the old zpool sitting around interfering with > things. =A0'zpool import' lists it, but it can't import it because the di= sks > don't actually exist. =A0'zpool destroy' can't delete it, because it's no= t > imported. =A0('No such pool') =A0Any ideas on how to get rid of it? It sounds like your /boot/zfs/zpool.cache file still has the pool listed. I can't find definitive documentation to this end, but I think "zpool export " might remove the entry from the zpool cache. If that still doesn't work (and you haven't yet put another filesystem on those disks), you might get buy with using dd to wipe the first and last several MB of the disk/partitions that had been in the pool. Of course, if the disks have already been re-used or removed, then zfs shouldn't be finding them when it scans the device nodes. Hope this helps, Matt Mullins