LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2008, 02:36 PM   #1
geotux
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Badblocks and hardware RAID.


Hi.

I've had EIDE disks attached in RAID 1 to a 3Ware 7000-2 pci board for several years. Initially, I had 2x80GB disks. At some point the RAID boards started to alarm for bad sectors. I eventually changed the disks and replaced with 2x120GB. THese latested 18 months and then the RAID board started complaining that one disk had bad sector (sector repair). Before loosing my data, I decided to change the faulty disk with another 120GB I had in the cupboard.

I then check the 120GB disk with badbloack:

badblocks -wvs -c 10240 /dev/sdf

THe results was that there were several bad blocks so the RAID board did a good job.

I then decided to check the old 80GB disks with badblocks. They are both reported as OK by the software, which I find unusual. SO the question is:

who is likely to be making a mistake with the 80GB disks? Badblocks or the RAID board? Maybe I could have kept going with my old 80GB RAID 1 configuration and could have saved the money I spent for 2x120GB disks?

Regards
Antonio
 
Old 05-22-2008, 03:15 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by geotux View Post

who is likely to be making a mistake with the 80GB disks? Badblocks or the RAID board? Maybe I could have kept going with my old 80GB RAID 1 configuration and could have saved the money I spent for 2x120GB disks?
Both are likely to be right. It is possible to recover from bad blocks. The hard drive has spare blocks beyond the end of the drive. The hard drive firmware will assign spares to bad blocks and you can keep on running. When all of the hardware spares are used up then some file systems will work around bad blocks when you format a partition. As an experiment you could format a partition using mkfs and the -cv option and see what it tells you about bad blocks.

----------------
Steve Stites

P.S. Bad blocks are a hardware error and like any hardware error bad blocks can be intermittent. Sometimes they are good and sometimes they are bad.

Last edited by jailbait; 05-22-2008 at 03:17 PM.
 
Old 05-22-2008, 03:25 PM   #3
geotux
LQ Newbie
 
Registered: May 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Lightbulb

Quote:
Originally Posted by jailbait View Post
As an experiment you could format a partition using mkfs and the -cv option and see what it tells you about bad blocks.
NOt really following you now. Maybe I forgot to mention that the only thing I did with the harddrives before running badblocks, was to wipe out the partition table, and create one huge LInux 83 partition but without creating a file system on it.

The -c option calls badblocks doesn't it? SO what is so different from what I did?
I would have thought that running "badblocks -vsw -c 10240" would be the best test I could get with the most reliable results.

Based on what you are saying, the 120GB disk that showed huge amounts of bad blocks, had run out of spares.
Instead, the 80GB disk, even though it probably has Bad blocks (that were identified as such by the RAID board) they were remapped to spares by the drive and therefore, cause the drive still has spares, the "badblocks" software doesn't see any bad blocks?

Cheers
Antonio
 
Old 05-22-2008, 03:34 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,338

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by geotux View Post
SO what is so different from what I did?
Nothing really. But you would get an idea of how many bad blocks mkfs successfully works around.

---------------------
Steve Stites
 
  


Reply

Tags
3ware, badblocks, raid



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hardware raid 1 | Fedora 5 | 3Ware raid | boot gomanza Linux - Hardware 4 09-28-2006 11:56 AM
Is it possible to convert from using hardware RAID to software RAID? kindredstar Linux - Hardware 2 12-19-2005 09:13 AM
Software RAID, fsck and badblocks acerola Linux - Newbie 1 03-15-2005 06:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration