[ZFS] How to fix corrupt ZDB

Beeblebrox zaphod at berentweb.com
Thu Nov 8 06:34:58 UTC 2012


Hi everyone, thanks for the help / suggestions. Starting with Steve's
suggestion:

*# zpool reguid bsdr*
Did not change the original ashift output for ZDB but resulted in all labels
being erased:

*# zdb -l **
--------------------------------------------
LABEL 0
--------------------------------------------
failed to read label 0
--------------------------------------------
LABEL 1
--------------------------------------------
failed to read label 1
--------------------------------------------
LABEL 2
--------------------------------------------
failed to read label 2
--------------------------------------------
LABEL 3
--------------------------------------------
failed to read label 3
(I suppose ZDB has multiple labels because I had re-created the root pool
bsdr several times in the past year on the same HDD). This command also did
not change the corrupt entry for an old pool:

*# zdb -c **
zdb: can't open 'asp': No such file or directory

Finally, *# zpool status*
pool: bsdr
state: ONLINE
scan: scrub repaired 0 in 0h25m with 0 errors
config:
	NAME        STATE     READ WRITE CKSUM
	bsdr        ONLINE       0     0     0
	  ada0      ONLINE       0     0     0
	logs
	  ada1p9    ONLINE       0     0     0
errors: No known data errors





--
View this message in context: http://freebsd.1045724.n5.nabble.com/ZFS-How-to-fix-corrupt-ZDB-tp5758864p5759081.html
Sent from the freebsd-fs mailing list archive at Nabble.com.


More information about the freebsd-fs mailing list