Replace HDD with itself

Muzza

Dabbler
Joined
Jun 17, 2015
Messages
31
I have a 8TB drive which shows 24 pending sectors.. now for about 6 months with no change. Sectors have not been reallocated and all other parameters are fine. I would like to use badblocks to try and fix this as it shows up on my console constantly. The drive has been in service for 10 months with no apparent problems.

Can I shut down the server.. remove the drive.. run badblocks on another computer...replace drive... start server? Will ZFS freak out? What effect would offlining the disk first have? Will FreeNas allow the disk back into the array and resilver? This is a raid3 array.

Thanks in advance..
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
This is a raid3 array.
Assuming you meant RAIDZ3

Can I shut down the server.. remove the drive.. run badblocks on another computer...replace drive... start server?
I would personally cut out several of those steps...

Offline the drive, run badblocks on it in FreeNAS and then wipe it and replace it with itself. (no reboots or hardware removal needed)

Will ZFS freak out?
No.

What effect would offlining the disk first have?
Pool degraded, but safe with redundancy of 2 disks still in place.

Will FreeNas allow the disk back into the array and resilver?
Yes
 

Muzza

Dabbler
Joined
Jun 17, 2015
Messages
31
Yes thank you.. RAIDZ3
Great... Will follow your suggestions
Thanks!
 

Muzza

Dabbler
Joined
Jun 17, 2015
Messages
31
After running Badblock for several days (8TB) the pending sectors are gone. Could not simply "online" drive as it would not change from "unavail".
I wiped the drive and "replaced" it. Resilver proceeded and system health is back to 100%.
 
Top