Glenn Lagasse
2008-Sep-18 20:12 UTC
[zfs-discuss] How to remove any references to a zpool that''s gone
I had a disk that contained a zpool. For reasons that we won''t go in to, that disk had zero''s written all over it (at least enough to cover the entirety of the zpool space). Now when I run zpool status the command hangs when it tries to display information about the now non-existent pool. Similarly, trying to destroy the pool hangs as well. Is there some way to remove the pool from zfs''s pool of knowledge? Also, is it a bug that the failure mode for this situation isn''t more graceful? Surely zfs should figure out that ''something really bad happened'' and give up the ghost gracefully? Thanks! -- Glenn
Mark J Musante
2008-Sep-18 23:20 UTC
[zfs-discuss] How to remove any references to a zpool that''s gone
Hi Glenn, Where is it hanging? Could you provide a stack trace? It''s possible that it''s just a bug and not a configuration issue. On 18 Sep, 2008, at 16.12, Glenn Lagasse wrote:> I had a disk that contained a zpool. For reasons that we won''t go in > to, that disk had zero''s written all over it (at least enough to cover > the entirety of the zpool space). Now when I run zpool status the > command hangs when it tries to display information about the now > non-existent pool. Similarly, trying to destroy the pool hangs as > well. > > Is there some way to remove the pool from zfs''s pool of knowledge? > Also, is it a bug that the failure mode for this situation isn''t more > graceful? Surely zfs should figure out that ''something really bad > happened'' and give up the ghost gracefully? > > Thanks! > > -- > Glenn > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussRegards, markm -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080918/6237790d/attachment.html>
Glenn Lagasse
2008-Sep-18 23:36 UTC
[zfs-discuss] How to remove any references to a zpool that''s gone
Hey Mark, * Mark J Musante (Mark.Musante at Sun.COM) wrote:> Hi Glenn, > > Where is it hanging? Could you provide a stack trace? It''s possible > that it''s just a bug and not a configuration issue.I''ll have to recreate the situation (won''t be able to do so until next week). I had a zpool status (and subsequently a zpool destroy) command that was hung, subsequent zfs commands also would hang. I couldn''t even do a zpool export (which someone privately told me should work). What worked was to reboot (which I actually had to power the machine off physically, init and reboot did nothing) and then I could export the ''broken'' pool. So I''m not sure where the bug is, but this shouldn''t be too hard to replicate and I believe running zpool status with this type of setup will cause a hang and then you''re stuck until you power off the machine and reboot to do the export. I''ll report back next week once I replicate this. Thanks, Glenn
Richard Elling
2008-Sep-19 00:01 UTC
[zfs-discuss] How to remove any references to a zpool that''s gone
Glenn Lagasse wrote:> Hey Mark, > > * Mark J Musante (Mark.Musante at Sun.COM) wrote: > >> Hi Glenn, >> >> Where is it hanging? Could you provide a stack trace? It''s possible >> that it''s just a bug and not a configuration issue. >> > > I''ll have to recreate the situation (won''t be able to do so until next > week). I had a zpool status (and subsequently a zpool destroy) command > that was hung, subsequent zfs commands also would hang. I couldn''t even > do a zpool export (which someone privately told me should work). What > worked was to reboot (which I actually had to power the machine off > physically, init and reboot did nothing) and then I could export the > ''broken'' pool. So I''m not sure where the bug is, but this shouldn''t be > too hard to replicate and I believe running zpool status with this type > of setup will cause a hang and then you''re stuck until you power off the > machine and reboot to do the export. I''ll report back next week once I > replicate this. >Probably a bug like: http://bugs.opensolaris.org/view_bug.do?bug_id=6667208 Your workaround works. -- richard