Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Jan 2012 05:19:15 +0100
From:      Fritz Wuehler <fritz@spamexpire-201201.rodent.frell.theremailer.net>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: How to destroy a zombie zpool
Message-ID:  <1a19ab9b1abd5ded195369aa261406dd@msgid.frell.theremailer.net>
In-Reply-To: <EF529D72AB9F6D3894DD3E1B@mac-pro.magehandbook.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
> I've got a weird problem...  I was working on installing 9.0 w/zfs on my 
> laptop, messed up, rebooted, *formatted the drives* and restarted.  Got 
> much further the next time, however...
> 
> There is a zombie copy of the old zpool sitting around interfering with 
> things.  'zpool import' lists it, but it can't import it because the disks 
> don't actually exist.  'zpool destroy' can't delete it, because it's not 
> imported.  ('No such pool')  Any ideas on how to get rid of it?

zfs is famous for fucking itself like this. the only totally safe way is to
dd the drive since nailing the label doesn't clear out stuff at the far end
of the filesystem that can really ruin your day. don't ask me how i know..

it will take a few hours dd'ing from /dev/zero to your devices but it is
well worth it when you do any major surgery on drives that had zfs at one
point and you want to use them over again with zfs




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?1a19ab9b1abd5ded195369aa261406dd>