Sunday, December 23, 2012

SMART errors and software RAID

For a while now I have been having an intermittent problem with some of my drives. They seem to be working but stop responding to SMART. If I reboot they don't show up any more but if I power off and back on they work fine.

I have two 640Gig WD Green drives in a software RAID1 and another WD Blue drive. After a suspend/resume, sometimes one of the drives is MIA. The kernel thinks it is still there but my SMART tools can't talk to it and start to complain.

The Blue drive has a bad (unreadable) sector but touch wood, that has not caused a problem yet. SMART knows about this and tells me about it frequently. This however does not appear to be the problem. There is a telling message is in dmesg:

sd 0:0:0:0: [sda] START_STOP FAILED
sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
PM: Device 0:0:0:0 failed to resume: error 262144

So for some reason, the disk is not responding when the computer resumes. I guess it is a timeout (and I wonder if I can extend it?) Anyway, now I have the situation where my disk is not working even though I know there is nothing actually wrong with it.

Luckily I am using software RAID and the other disk is working so I can continue about my business without crashing or loosing data. After poking and prodding a few different things I have worked out a solution:


  • Hot-remove the device (from the kernel)
echo 1 > /sys/block/sda/device/delete
  • Rescan for the device to hot-add it to the kernel
echo "- - -" > /sys/class/scsi_host/host0/scan
  • Add the 'failed' drive back into the RAID set
mdadm /dev/md127 --re-add /dev/sda2

You must remove the existing (sda) device first or the disk will be re-detected and added with a new name (sde in my case).

Because I have a write-intent bitmap, the RAID set knows what has changed since the drive was failed and only the changes must be re-synced which is quite fast.

There seems to be a 'vibe' that green drives are not good for RAID. I don't really think this is a problem because the drive is green, I think it is a problem because the driver is not trying hard enough to restart the disk.

So in the end this was not a SMART problem after all. Not there there are no bugs to fix there. Particularly in udisks-helper-ata-smart-collect which keeps running and locking up sending the load average into the hundreds. For a tool designed to detect error conditions it probably needs a bit more work.

My next job is to select a replacement drive for the faulty WD Blue...

44 comments:

  1. It is very nice that you share this with us. June

    ReplyDelete
    Replies
    1. There is no way to get this useful info your way. Its very fabulous and easy for me to get it from WhatsApp Aero. I am very thankful and I appreciate your intelligent work. Awesome!!

      Delete
  2. This blog is definitely entertaining additionally factual. I have picked up helluva helpful tips out of this amazing blog. I ad love to visit it again and again. Thanks!
    hotmail login

    ReplyDelete
  3. Great info. I love all the posts vidmate apkxyz, I really enjoyed, I would like more information about this, because it is very nice., Thanks for sharing.

    ReplyDelete
  4. Online gambling Maryland https://casinority.com/us/maryland/ allows lottery games in the casinos and is regulated by the state. Out of all the games, the state gets 30% of the share, while 10% goes to the retailer. The remaining 60% is returned to the players.

    ReplyDelete
  5. This is a good site to visit. Lots of valuable information to keep. Thanks!
    ------
    Madison| Shower Pan

    ReplyDelete
  6. Learned the right way to do it, finally! Thanks a million times to y'all!

    www.svggm.com

    ReplyDelete
  7. thank you for sharing http://www.pghcleaners.com/ https://www.djservicespgh.com/

    ReplyDelete
  8. brother printers are generally excellent according to their functioning effectiveness, speed, and quality printing. Be that as it may, even the best one separates after some time. How can i fix Brother printer not printing issue The equivalent goes, with Brother Printer. There is a period come when each Brother Printer user needs a Brother Printer Troubleshooting Guide. The most well-known issues Brother Printer user faces are – issue in printing, printer not printing, or paper sticking issues, and so on Here, Brother Printer Troubleshooting Guide will help you in tackling these issues – When Brother Printing isn't printing any archives. The explanation for such issues can be numerous, for example, - Lack of ink or paper sticking issues, absent or obsolete drivers, defective drivers are a portion of the normal reasons.

    ReplyDelete
  9. advance the cursor to the next tab stop. Homework Help Online you have a tab delimited file but some data is longer than and some it less. Well when you look at it, the output will be all over the place.

    ReplyDelete
  10. This blog is in reality interesting moreover factual. I've picked up helluva beneficial recommendations out of Thesis Help Uk terrific weblog. I advert love to go to it time and again.

    ReplyDelete
  11. The tire market has different sizes, styles, Best Tires Shop and brands, and understanding which tire can work for your vehicle may be confusing. We provide exceptional tire services from tire replacement, tire rotation, and everything your vehicle needs.

    ReplyDelete
  12. Dr. R greatest accomplishment in his eyes is having passed down to his children what matters most in life in business: to always do the right thing and stand by what you do. Dr. R motto is, “customer service first”. Our difference… (family owned… family operated)… makes a difference. ralph's philadelphia

    ReplyDelete
  13. Dr is committed to helping you achieve wellness xeomin near me and total health through a holistic and integrative approach to dedicated healthcare. The foundation of her health management follows the principles of Regenerative Medicine by combining both traditional and evidence-based integrative medicine. She emphasizes her focus on the whole person including all aspects of their lifestyle.

    ReplyDelete
  14. Williamson Caterers offers a variety of menus historic stonebrook farm and packages including All-Inclusive Wedding Packages, Station Menus, Cocktail Party Selections, Brunch and Buffet Menus, and Cook-Outs. Williamson Caterers welcomes the opportunity to customize a menu specific to your event budget and needs.

    ReplyDelete
  15. Stones bathroom cabinets and Cabinets City has swiftly become a market leader in kitchen and bath refurbishment because of our ethos. Our mission is to produce kitchen and bath cabinets of the highest quality and care, handmade by dedicated Stones and Cabinets City's staff.

    ReplyDelete
  16. We are a full-service trucking company established worldwide to add convenience a trucking company and pace in freight transportation for commercial purposes.

    ReplyDelete
  17. World's Smartest email List Cleaning Service, Quick, simple accutate email verifier and accurate. Bulk Mail Verifier will not only save you time but tons of money too!

    ReplyDelete
  18. “S.M.A.R.T.” stands for “self-monitoring, analysis and reporting technology”. S.M.A.R.T. framework won't report any mistakes in an ordinarily working drive. This is on the grounds that the presence of blunders is a sign that the drive may before long come up short.
    Software RAID is a kind of RAID execution that uses working framework based capacities to build and convey RAID administrations. Dissertation Help London

    ReplyDelete
  19. Here in Tow Truck Hialeah FL, we have been proud to service Hialeah, FL and the surrounding area for years.

    ReplyDelete
  20. Great article. If you are frustrated with your content restricted website blocking then you can read our article about Node Unblocker Even a child can use it to unblock the content of restricted websites.

    ReplyDelete
  21. Have a question:"How can I do my excel homework?" - use Cheap-papers. This service provides the best academic help in the USA.

    ReplyDelete
  22. A leather best bomber jackets is a classic that will never go out of style. When it comes to making a statement, a bomber jacket is at the top of our list.

    ReplyDelete
  23. Are you in search of beautiful leather attire for yourself? You are certain to find it in the online hooded mens winter coats markets because here are some of the newest designs created only for men.

    ReplyDelete
  24. This is a very interesting topic for me. I really like local news , especially from Texas.

    ReplyDelete
  25. Dealing with intermittent issues can be frustrating, but it's great that you've found a workaround to keep your system operational backpack battles

    ReplyDelete