Re: [zfs-discuss] Need Help Invalidating Uberblock

2009-11-16 Thread Martin Vool
You might want to check out this thread: http://opensolaris.org/jive/thread.jspa?messageID=435420 -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discu

Re: [zfs-discuss] Need Help Invalidating Uberblock

2009-08-02 Thread Stephen Pflaum
Does anyone know the correct syntax to use the zdb command on a /dev/dsk/c6t0d0s2 I'm trying to determine the active uberblock on an attached USB drive. > To identify the active uberblock I used zdb. > > r...@kestrel:/opt$ zdb -U -uuuv zones > Uberblock > magic = 00bab10c > v

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread A Darren Dunham
On Tue, Dec 16, 2008 at 12:07:52PM +, Ross Smith wrote: > It sounds to me like there are several potentially valid filesystem > uberblocks available, am I understanding this right? > > 1. There are four copies of the current uberblock. Any one of these > should be enough to load your pool wit

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Nils Goroll
Well done, Nathan, thank you taking on the additional effort to write it all up. ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Ross Smith
It sounds to me like there are several potentially valid filesystem uberblocks available, am I understanding this right? 1. There are four copies of the current uberblock. Any one of these should be enough to load your pool with no data loss. 2. There are also a few (would love to know how many)

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Johan Hartzenberg
On Tue, Dec 16, 2008 at 1:43 PM, wrote: > > > >When current uber-block A is detected to point to a corrupted on-disk > data, > >how would "zpool import" (or any other tool for that matter) quickly and > >safely know that, once it found an older uber-block "B" that it points to > a > >set of block

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Casper . Dik
>When current uber-block A is detected to point to a corrupted on-disk data, >how would "zpool import" (or any other tool for that matter) quickly and >safely know that, once it found an older uber-block "B" that it points to a >set of blocks which does not include any blocks that has since been

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Johan Hartzenberg
On Tue, Dec 16, 2008 at 11:39 AM, Ross wrote: > I know Eric mentioned the possibility of zpool import doing more of this > kind of thing, and he said that it's current inability to do this will be > fixed, but I don't know if it's an official project, RFE or bug. Can > anybody shed some light on

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-16 Thread Ross
I know Eric mentioned the possibility of zpool import doing more of this kind of thing, and he said that it's current inability to do this will be fixed, but I don't know if it's an official project, RFE or bug. Can anybody shed some light on this? See Jeff's post on Oct 10, and Eric's follow

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-15 Thread Kees Nuyt
On Mon, 15 Dec 2008 14:23:37 PST, Nathan Hand wrote: [snip] > Initial inspection of the filesystems are promising. > I can read from files, there are no panics, > everything seems to be intact. Good work, congratulations, and thanks for the clear description of the process. I hope I never need

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-15 Thread Nathan Hand
I've had some success. I started with the ZFS on-disk format PDF. http://opensolaris.org/os/community/zfs/docs/ondiskformat0822.pdf The uberblocks all have magic value 0x00bab10c. Used od -x to find that value in the vdev. r...@opensolaris:~# od -A x -x /mnt/zpool.zones | grep "b10c 00ba" 0200

Re: [zfs-discuss] Need Help Invalidating Uberblock

2008-12-15 Thread Nathan Hand
I don't know if this is relevant or merely a coincidence but the zdb command fails an assertion in the same txg_wait_synced function. r...@opensolaris:~# zdb -p /mnt -e zones Assertion failed: tx->tx_threads == 2, file ../../../uts/common/fs/zfs/txg.c, line 423, function txg_wait_synced Abort (

[zfs-discuss] Need Help Invalidating Uberblock

2008-12-14 Thread Nathan Hand
I have a ZFS pool that has been corrupted. The pool contains a single device which was actually a file on UFS. The machine was accidentally halted and now the pool is corrupt. There are (of course) no backups and I've been asked to recover the pool. The system panics when trying to do anything w