zdb queries give error on healthy zpools

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

zdb queries give error on healthy zpools

Beeblebrox
I have 3 pools and all zdb queries for these pools or child datasets return with an error message. All 3 pools are healthy and functioning correctly.
# zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ASHIFT
bsds   48.8G  16.0G  32.8G    32%  1.29x  ONLINE  12
mylib   266G   740M   265G     0%  1.00x  ONLINE  9
tank0  49.8G  19.1G  30.7G    38%  1.00x  ONLINE  12

'# zdb -C' works, but that command without any poolname reads data from zpool.cache. Pool or on child dataset-specific queries (while using any of -b -d -D -C -i -h ) give this:
# zdb -vvv -h bsds
zdb: can't open 'bsds': Device not configured
zdb: can't open 'bsds/usr': Device not configured
zdb: can't open 'mylib': Invalid argument
zdb: can't open 'tank0': Invalid argument

I also have a faulted zpool in the list:
bsdr       -      -      -      -      -  FAULTED  -
But I do not think that this faulted status will cause such zdb problems.

Regards.
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
Reply | Threaded
Open this post in threaded view
|

zdb queries give error on healthy zpools

Beeblebrox
SOLVED
I apparently already had an answer from a previous question of mine.
http://freebsd.1045724.n5.nabble.com/ZFS-How-to-fix-corrupt-ZDB-td5758864.html

# zpool reguid <pool>

Corrects the problem. With thanks to Steve Hartland for that tip.
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS