Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2019 16:43:45 -0330
From:      Jonathan Anderson <jonathan.anderson@mun.ca>
To:        Andriy Gapon <avg@FreeBSD.org>
Cc:        "freebsd-fs@FreeBSD.org" <freebsd-fs@FreeBSD.org>
Subject:   Re: Broken ZFS boot on upgrade
Message-ID:  <20191111201345.GA79423@bagstock.jonandchrissy.ca>
In-Reply-To: <cb1a3643-b477-67bf-eddd-b7b21c08b4b9@FreeBSD.org>
References:  <CAP8WKbJWSHzhFCKijRVxydKEwgD_4NX2gmA-QVEVZPuotFCGvQ@mail.gmail.com> <1cb4895b-c84d-6204-18fa-53eac7195ad6@FreeBSD.org> <20191111131021.GC70914@bagstock.jonandchrissy.ca> <cb1a3643-b477-67bf-eddd-b7b21c08b4b9@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/11, Andriy Gapon wrote:
> You need to find out the inode number first (ls -i or stat -s).
> Then you can use zdb -ddddd <zfs dataset> <inum>

That's very helpful, thanks! I've attempted to do this, but zdb is giving
surprising errors. My root dataset is mounted at /mnt/zroot:

zroot/ROOT/default on /mnt/zroot (zfs, local, noatime, nfsv4acls)

and ls -i /mnt/zroot gives me inode numbers for things in / (including /boot),
but when I execute zdb with that dataset and inode number I get an error:

# zdb -ddddd zroot/ROOT/default 4495
failed to own dataset 'zroot/ROOT/default': No such file or directory
zdb: can't open 'zroot/ROOT/default': No such file or directory

This despite zpool status saying that everything is fine, me being able to run
`find /boot` with no errors, etc. I get the same error whether the dataset is
mounted or unmounted.

At this point I'm probably best off flattening this system and restoring my most
recent backup snapshot, but this behaviour is truly curious.

Thanks to everyone for your help,


Jon
-- 
Jonathan Anderson

jonathan@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191111201345.GA79423>