Date: Tue, 12 Nov 2019 18:45:10 GMT From: Martin Simmons <martin@lispworks.com> To: Jonathan Anderson <jonathan.anderson@mun.ca> Cc: avg@FreeBSD.org, freebsd-fs@FreeBSD.org Subject: Re: Broken ZFS boot on upgrade Message-ID: <201911121845.xACIjAVo008447@higson.cam.lispworks.com> In-Reply-To: <20191111201345.GA79423@bagstock.jonandchrissy.ca> (message from Jonathan Anderson on Mon, 11 Nov 2019 16:43:45 -0330) 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> <20191111201345.GA79423@bagstock.jonandchrissy.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Mon, 11 Nov 2019 16:43:45 -0330, Jonathan Anderson said: > > 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. Try adding the -e option as well. It might also be useful to check the zdb output for inum 1. __Martin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911121845.xACIjAVo008447>