Discussion:
[smartmontools-support] Getting rid of pending sectors
Orsiris de Jong
2016-10-22 18:03:34 UTC
Permalink
Hello,

 
I own a small private NAS with 2x WD RE4 4TB drives.

One of the drives recently got a number of current pending sectors :

 
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       142

198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       142

 
The smart long self test suceeds.

I’ve tried to force the firmware to reallocate the sectors by reading them.

So far I’ve tried :

dd if=/dev/sdb of=/dev/null bs=4096

badblocks -b 4096 -c 8 -sv -o /root/badblocks.sdb /dev/sdb

 
Neither of both commands changed anything, and the badblocks utility reports 0 bad blocks.

Usually the self test locates at least the bad sectors so I can write to the sector and force reallocation, but nothing here.

 
I’m used to not trust a drive if it gets more than 10 bad sectors, but as it’s a private server, I’m pretty unwilling to spend 300$ into new 4TB RE4 / Gold drives.

 
Any suggestions ?

 
Regards,

Ozy.
Carlos E. R.
2016-10-22 21:29:53 UTC
Permalink
Post by Orsiris de Jong
I’ve tried to force the firmware to reallocate the sectors by reading them.
As far as I know, it only happens on write.

My brute force approach is to write to the entire partition with zeroes.
Example:

dd if=/dev/zero of=/dev/sdb7 bs=10M
--
Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)
Bob Weber
2016-10-23 17:57:20 UTC
Permalink
Try badblocks with the non destructive write mode test (-n see "man
badblocks"). That way the drive should remap the sectors after the write
process and hopefully your data will be intact afterwords.


*...Bob*
Post by Orsiris de Jong
Hello,
I own a small private NAS with 2x WD RE4 4TB drives.
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always
- 142
198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline
- 142
The smart long self test suceeds.
I’ve tried to force the firmware to reallocate the sectors by reading them.
dd if=/dev/sdb of=/dev/null bs=4096
badblocks -b 4096 -c 8 -sv -o /root/badblocks.sdb /dev/sdb
Neither of both commands changed anything, and the badblocks utility reports 0 bad blocks.
Usually the self test locates at least the bad sectors so I can write to the
sector and force reallocation, but nothing here.
I’m used to not trust a drive if it gets more than 10 bad sectors, but as it’s
a private server, I’m pretty unwilling to spend 300$ into new 4TB RE4 / Gold
drives.
Any suggestions ?
Regards,
Ozy.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
Carlos E. R.
2016-10-24 00:26:30 UTC
Permalink
Post by Bob Weber
Try badblocks with the non destructive write mode test (-n see "man
badblocks"). That way the drive should remap the sectors after the
write process and hopefully your data will be intact afterwords.
But it does not tell you what files were affected, does it? Too risky.
--
Saludos/Cheers,

Carlos E.R. (Minas-Morgul - W10)
Orsiris de Jong
2016-11-16 11:56:59 UTC
Permalink
Hello Bob,

 
Thanks for your answer.

Tried ‘badblocks -b 4096 -c 8 -svn -o /home/badblocks.n.sdb /dev/sdb’ but it takes 6 hours to achieve 1% so I stopped dit.

Any way to know where those pending sectors are so I can tell badblocks where to search ?

 
Regards,

Ozy.

 
De : Bob Weber [mailto:***@gmail.com]
Envoyé : dimanche 23 octobre 2016 19:57
À : smartmontools-***@lists.sourceforge.net
Objet : Re: [smartmontools-support] Getting rid of pending sectors

 
Try badblocks with the non destructive write mode test (-n see "man badblocks").  That way the drive should remap the sectors after the write process and hopefully your data will be intact afterwords.


...Bob

On 10/22/2016 02:03 PM, Orsiris de Jong wrote:

Hello,

 
I own a small private NAS with 2x WD RE4 4TB drives.

One of the drives recently got a number of current pending sectors :

 
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       142

198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       142

 
The smart long self test suceeds.

I’ve tried to force the firmware to reallocate the sectors by reading them.

So far I’ve tried :

dd if=/dev/sdb of=/dev/null bs=4096

badblocks -b 4096 -c 8 -sv -o /root/badblocks.sdb /dev/sdb

 
Neither of both commands changed anything, and the badblocks utility reports 0 bad blocks.

Usually the self test locates at least the bad sectors so I can write to the sector and force reallocation, but nothing here.

 
I’m used to not trust a drive if it gets more than 10 bad sectors, but as it’s a private server, I’m pretty unwilling to spend 300$ into new 4TB RE4 / Gold drives.

 
Any suggestions ?

 
Regards,

Ozy.






------------------------------------------------------------------------------


Check out the vibrant tech community on one of the world's most


engaging tech sites, SlashDot.org! http://sdm.link/slashdot <http://sdm.link/slashdot>






_______________________________________________


Smartmontools-support mailing list


Smartmontools-***@lists.sourceforge.net <mailto:Smartmontools-***@lists.sourceforge.net>


https://lists.sourceforge.net/lists/listinfo/smartmontools-support

 

------------------------------------------------------------------------------



Check out the vibrant tech community on one of the world's most



engaging tech sites, SlashDot.org! http://sdm.link/slashdot <http://sdm.link/slashdot>


_______________________________________________



Smartmontools-support mailing list



Smartmontools-***@lists.sourceforge.net <mailto:Smartmontools-***@lists.sourceforge.net>



https://lists.sourceforge.net/lists/listinfo/smartmontools-support
r***@spotswood-computer.net
2016-11-16 15:24:21 UTC
Permalink
Badblocks non-destructive write test is EXTREMELY slow. So much so I
recommend backing everything up, doing the destructive write test, and
restoring (depending on how the test went) as it is usually faster.

Beyond that, a read test, either badblocks or SMART should tell you were
at least the first pending sector is. I generally use the short SMART
test. It stops on the first pending sector it finds, but it is quick.
"Fix" that sector and re-run until it completes. If there are still
pending sectors, then you have do to the full test.
Post by Orsiris de Jong
Hello Bob,
 
Thanks for your answer.
Tried ‘badblocks -b 4096 -c 8 -svn -o /home/badblocks.n.sdb /dev/sdb’
but it takes 6 hours to achieve 1% so I stopped dit.
Any way to know where those pending sectors are so I can tell badblocks
where to search ?
 
Regards,
Ozy.
 
Envoyé : dimanche 23 octobre 2016 19:57
Objet : Re: [smartmontools-support] Getting rid of pending sectors
 
Try badblocks with the non destructive write mode test (-n see "man
badblocks").  That way the drive should remap the sectors after the write
process and hopefully your data will be intact afterwords.
...Bob
Hello,
 
I own a small private NAS with 2x WD RE4 4TB drives.
 
197 Current_Pending_Sector  0x0032   200   200   000   
Old_age   Always       -       142
198 Offline_Uncorrectable   0x0030   200   200   000   
Old_age   Offline      -       142
 
The smart long self test suceeds.
I’ve tried to force the firmware to reallocate the sectors by reading
them.
dd if=/dev/sdb of=/dev/null bs=4096
badblocks -b 4096 -c 8 -sv -o /root/badblocks.sdb /dev/sdb
 
Neither of both commands changed anything, and the badblocks utility reports 0 bad blocks.
Usually the self test locates at least the bad sectors so I can write to
the sector and force reallocation, but nothing here.
 
I’m used to not trust a drive if it gets more than 10 bad sectors, but
as it’s a private server, I’m pretty unwilling to spend 300$ into new
4TB RE4 / Gold drives.
 
Any suggestions ?
 
Regards,
Ozy.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
<http://sdm.link/slashdot>
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
 
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
<http://sdm.link/slashdot>
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
------------------------------------------------------------------------------
_______________________________________________
Smartmontools-support mailing list
https://lists.sourceforge.net/lists/listinfo/smartmontools-support
------------------------------------------------------------------------------
Loading...