zdb -R question

Patrick Proniewski patpro at patpro.net
Tue Aug 12 16:33:20 UTC 2014


Hello,

I've a hard drive with corrupt blocks. I would like to know if those blocks belong to a real file.

/var/log/message reads:

	smartd[1306]: Device: /dev/ada3, 3 Currently unreadable (pending) sectors

devices ada2 and ada3 are in ZRAID1 mirror. 
zpool scrub won't show any error.

smartctl full test find errors:

	SMART Self-test log structure revision number 1 
	Num Test_Description     Status                  Remaining     LifeTime(hours) LBA_of_first_error 
	../..
	# 2  Extended offline    Completed: read failure       80%     33003         460087328
	../..
	# 5  Extended offline    Completed: read failure       90%     32936         460087313

I've made some attempts with zdb -R to read faulted sectors, but I keep receiving errors like these ones: 

	Invalid block specifier: gpt/ben: 460087328:512  - offset must be a multiple of sector size
	Invalid block specifier: gpt/ben:409600000:512  - size must be a multiple of sector size

whatever offset and size I try (4096/512), I always receive one of these errors... Any idea?

thanks,
Pat


More information about the freebsd-fs mailing list