Re: How to destroy a zombie zpool

2012-01-21 Thread Daniel Staal
--As of January 17, 2012 5:19:15 AM +0100, Fritz Wuehler is alleged to have 
said:



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


--As for the rest, it is mine.

Thanks; I finally had some more time to play with this box again, and that 
did the trick.  Took less than 2 hours, to do two drives.  ;) 
(Simultainously, and one's a SSD.)


(Well, I still can't figure out why I can't *boot* into ZFS, but at least 
I've eliminated one variable.)


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to destroy a zombie zpool

2012-01-16 Thread Robert Boyer
I agree if you move drives and a particular zfs has not seen them before - and 
there is a zfs label at the end things can go pear shaped - however…

if you blast just the end of the drive it should be fine.


RB

Ps. Maybe I;ll title a book fun with zfs and glabel or cheap thrills with zfs, 
glabel and gpt uuid's - how to screw up MacOS/Darwin the easy way…




On Jan 16, 2012, at 11:19 PM, Fritz Wuehler wrote:

>> 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
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



Re: How to destroy a zombie zpool

2012-01-16 Thread Fritz Wuehler
> 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to destroy a zombie zpool

2012-01-16 Thread Matt Mullins
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.  '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?

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: How to destroy a zombie zpool

2012-01-16 Thread Robert Boyer
most likely a ifs "label" on the disk from before that you need to get rid of 
before doing the install.

RB

On Jan 16, 2012, at 11:37 AM, Daniel Staal wrote:

> 
> 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?
> 
> Daniel T. Staal
> 
> ---
> This email copyright the author.  Unless otherwise noted, you
> are expressly allowed to retransmit, quote, or otherwise use
> the contents for non-commercial purposes.  This copyright will
> expire 5 years after the author's death, or in 30 years,
> whichever is longer, unless such a period is in excess of
> local copyright law.
> ---
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"



How to destroy a zombie zpool

2012-01-16 Thread Daniel Staal


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?


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"