View previous topic :: View next topic |
Author |
Message |
Moriah Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/5229545064dad0ea85f50b.gif)
Joined: 27 Mar 2004 Posts: 2384 Location: Kentucky
|
Posted: Tue Feb 18, 2025 6:26 pm Post subject: badblocks barfs -- drive too big? |
|
|
I had a drive fail in the raid 1 mirror on my backup server last night. I tried removing it with mdadm -r /dev/md0 /dev/sdb the adding it back with mdadm -a /dev/md0 /dev/sdb, but after a while, it barfed again, so I decided to run badblocks on it to find out where the problem was before returning it top the vendor for warrantee replacement. When I ran
Code: |
baruch /bu/log # badblocks -ws /dev/sdb
badblocks: Value too large for defined data type invalid end block (15625879552): must be 32-bit value
baruch /bu/log #
|
it acted like it would not work if the max block number was too big to fit in 32 bits!
What's the deal here? Is badblocks obsolete? This is a 16 TB spinner on SATA interface. Is badblocks still stuck in the 1990's thinking a 2 gb drive is big?
What can I use to diagnose this 16 tb drive? _________________ The MyWord KJV Bible tool is at http://www.elilabs.com/~myword
Foghorn Leghorn is a Warner Bros. cartoon character. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lagalopex Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/547843818468ac9730a74e.gif)
Joined: 16 Oct 2004 Posts: 566
|
Posted: Tue Feb 18, 2025 6:59 pm Post subject: |
|
|
Have you tried increasing the block size? (-b 4096) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54875 Location: 56N 3W
|
Posted: Tue Feb 18, 2025 7:15 pm Post subject: |
|
|
Moriah,
badblocks has been obsolete since back sector remapping became the norm for HDD.
That's almost every drive from 4GB upwards. Its required to make PRML reliable.
Yes, your drive 'guesses' your data. :)
Code: | smartctl -x /dev/... | will tell you all the gory detail about your drive heath.
If it says SMART PASS at the top, its probably wrong.
If you are curious as to where the first bad sector is use smartctl to run the long self test.
The may even be some errors in the smartctl -x output.
That output is usually enough to get a warranty replacement. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|