very useful
If you have redundancy, one or two bad sectors can be fixed even without any downtime.
The error message might look something like this:
10-06-2014 16:25:20 Daemon.Critical storage2 Oct 6 16:25:21 smartd[1560]: Device: /dev/ada2, 2 Currently unreadable (pending) sectors
You can see that the faulty device is /dev/ada2. Now, login to console and run long SMART test:
smartctl -t long /dev/ada2
It should tell you that the test is started and when it will finish. After it finishes, check test results:
smartctl -a /dev/ada2
The output will tell you two important things. In information section there is sector size:
Sector Size: 512 bytes logical/physical
Near the end there is SMART Self-test log which tells you whether it failed and what’s the faulty sector number (LBA_of_first_error column)
# 1 Extended offline Completed: read failure 90% 25166 892134344
Now we have all the…
View original post 104 more words