Re: ZFS Permanent error <0xffffffffffffffff>:<0x0>

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Fri, 02 Dec 2022 07:40:00 UTC
On 02/12/2022 06:58, Andrea Venturoli wrote:
> On 12/2/22 00:21, Graham Perrin wrote:
>
>> Can something like this be a valid command?
>>
>> zdb -d <0xffffffffffffffff>:<0x0>
>
> # zdb -d "<0xffffffffffffffff>:<0x0>"
> zdb: can't open '<0xffffffffffffffff>:<0x0>': No such file or directory 


For your /zroo2/ pool, try this:

zdb -d zroo2 '0xffffffffffffffff'


Again, that's guesswork, and for what it's worth, I got this (for my 
/august/ pool), trial and error:

root@mowa219-gjp4-8570p-freebsd:~ # zdb -d <0xffffffffffffffff>:<0x0>
Ambiguous input redirect.
root@mowa219-gjp4-8570p-freebsd:~ # sh
# zdb -d <0xffffffffffffffff>:<0x0>
sh: Syntax error: newline unexpected (expecting word)
# zdb -d august <0xffffffffffffffff>:<0x0>
sh: Syntax error: newline unexpected (expecting word)
# zdb -d august '<0xffffffffffffffff>:<0x0>'
zdb: Bad object or range: '<0xffffffffffffffff>:<0x0>': Invalid 
characters in start object ID

# zdb -d august '0xffffffffffffffff:0x0'
zdb: Bad object or range: '0xffffffffffffffff:0x0': Start object ID may 
not exceed end object ID

# zdb -d august '0xffffffffffffffff'
Dataset mos [META], ID 0, cr_txg 4, 924M, 1683 objects

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
zdb: dmu_object_info() failed, errno 2
# exit
root@mowa219-gjp4-8570p-freebsd:~ # zdb -d august 0xffffffffffffffff
Dataset mos [META], ID 0, cr_txg 4, 924M, 1685 objects

    Object  lvl   iblk   dblk  dsize  dnsize  lsize   %full  type
zdb: dmu_object_info() failed, errno 2
root@mowa219-gjp4-8570p-freebsd:~ #