1 Currently Unreadable (pending) sectors

Status
Not open for further replies.

BobCochran

Contributor
Joined
Aug 5, 2011
Messages
184
I didn't see that very important word "soon" after the phrase "out of warranty". My apologies. I agree with joeschmuck that you can return your hard drive. I did this with a Seagate drive last year and they were very good about it. It was a hassle though. Be sure to follow the guidelines for packaging and shipping the hard drive that you return. Seagate had specific requirements for how the returned hard drive had to be packaged. I expect that Western Digital is the same.
 

twisted

Dabbler
Joined
Sep 12, 2012
Messages
23
Just a quick question. What are the consequences of running this command? Could it damage data in my pool? I've got a RAID10 configuration.

Code:
dd if=/dev/zero of=/dev/ada# bs=4096 count=1 seek=X conv=noerror,sync


1 drive has 1 bad sector. I ran a smartctl long test on it and found the LBA. So I was going to try the following but just wanted to understand a bit more about the consequences of doing so before I did.

Code:
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       60%      8304         2400065936


Code:
sysctl kern.geom.debugflags=16
dd if=/dev/zero of=/dev/ada3 bs=4096 count=1 seek=2400065936 conv=noerror,sync


I'm guessing this will attempt to overwrite the sector and zero it out? I'm also assuming that because the sector is considered bad by FreeNAS there will be no data there? :)
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
It absolutely could damage your pool. Assuming you have sufficient redundancy a scrub should also correct it.

I will warn you that setting the debugflags to 16 is extremely dangerous and you should be expecting to do a reboot immediately after changing the flags and doing your dd command.

... and there is NO substitute for backups.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Do not assume that the block numbering reported by SMART is equal to what you need for dd. Use dd to identify the bad block via reads too.
 

twisted

Dabbler
Joined
Sep 12, 2012
Messages
23
Thanks for the advice. I'll run a scrub and leave it as is with backups for any issues.
 
Status
Not open for further replies.
Top