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...

58 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. Take a look at all these interesting washi tape crafts, you can custom washi tape to create a stylish wallet, interesting boxes, and some photography props.

    ReplyDelete
  12. Thanks for sharing this! This looks pretty informative! https://kissimmeetowtruck.com/

    ReplyDelete
  13. This is an impressive and informative site. Keep it up https://orlandofltowtruck.com/

    ReplyDelete
  14. Thanks for sharing this! This is very insightful! https://sanfordtowingservice.com/

    ReplyDelete
  15. Content is really nice, it is well written. Chesapeake Tow Truck

    ReplyDelete
  16. I really like all the points you made. Petersburg Tow Truck

    ReplyDelete
  17. Great job for publishing such a beneficial web site Richmond Tow Truck

    ReplyDelete
  18. 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
  19. 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
  20. 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
  21. 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
  22. With prices starting at just £3.99 - our starters are the perfect start to a meal at Khyber Pass. The distinctive flavour of our food cannot be described by words alone! pakistan restaurant

    ReplyDelete
  23. 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
  24. We are a full-service trucking company established worldwide to add convenience a trucking company and pace in freight transportation for commercial purposes.

    ReplyDelete
  25. Fame Jackets have so far served many of customers easiest halloween costumes and thus we can claim to have customers wearing our jackets throughout the world. To make sure smooth and efficient shipping and delivery solutions Fame Jackets collaborate with the premium courier services working internationally.

    ReplyDelete
  26. 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
  27. “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

  28. نظافة وجمال منزلك خير دليل على نظافة الجدران حيث ينكشف بسرعة أكبر قدر من الأوساخ والغبار والأوساخ ، كما نقوم بتنظيف الجدران بالطلاء والمواد الحافظة للجدران وتنظيفها بكفاءة عالية. تستخدمين أفضل وأقوى وأسلم المنظفات لصحتك ، والتي تحتوي أيضًا على عطر ذكي يعزز جمال المكان. يبدأ التنظيف بغسل جميع أنواع الجدران سواء كانت دهانات أو دريوال أو جميع أنواع ورق الحائط.
    غالبًا ما تحتاج الأماكن الأكثر استخدامًا والأوساخ في المنزل إلى تنظيف الرخام والأرضيات والجدران وإزالة الزيت عن الجدران والأرضيات وتنظيف المطبخ سواء كان من الألمنيوم أو الخشب وتلميعه. ضعها وأعدها بأمان ، ويقوم الفريق بتنظيف الحوائط بمنظفات خاصة ، سواء كانت رخامية أو سيراميك ، أرضيات وأحواض مختلفة ، لإزالة الدهون والبقع والزيوت والأتربة ، وتلميعها جيدًا لجعلها تبدو جديدة كما هي ، مع منعها تلف
    يعد تنظيف المنازل شيء ضروري وأساسي في حياة الجميع، ولا يمكننا إهماله أبداً، حيث أنّ ذلك يؤدي إلى تراكم الأوساخ وانتقال الأمراض. تحتاج العديد من أعمال التنظيف المنزلية إلى مختصين في هذا المجال، فالمواد والوسائل التي تستخدمها شركات تنظيف المنازل بالدمام فائقة الجودة، وتقدم هذه الشركات مجموعة خدمات مميزة وشاملة باحترافية عالية، مثل خدمات التعقيم الخارجية والداخلية،
    شركة تنظيف

    ReplyDelete
  29. Spot on with this write-up, I truly think this website needs much more consideration. I’ll probably be again to read much more, thanks for that info.

    Bikepacking.quebect
    Information
    Click Here
    Visit Web

    ReplyDelete
  30. THANK YOU FOR POSTING THIS GREAT ARTICLE. I’M A LONG TIME READER BUT I’VE NEVER BEEN COMPELLED TO LEAVE A COMMENT.
    I SUBSCRIBED TO YOUR BLOG AND SHARED THIS ON MY FACEBOOK.
    THANKS AGAIN FOR A GREAT ARTICLE!
    온라인섯다

    ReplyDelete
  31. GOOD DAY! I’M REALLY ENJOYING THE DESIGN AND LAYOUT OF YOUR WEBSITE. IT’S A VERY EASY ON THE EYES WHICH MAKES IT MUCH MORE PLEASANT FOR ME TO COME
    HERE AND VISIT MORE OFTEN. DID YOU HIRE OUT A DEVELOPER TO CREATE YOUR THEME?
    EXCEPTIONAL WORK!
    스포츠토토

    ReplyDelete
  32. IF SOME ONE WANTS EXPERT VIEW ON THE TOPIC OF BLOGGING AND SITE-BUILDING THEN I RECOMMEND TO GO TO SEE THIS WEB SITE, KEEP UP THE GOOD WORK. THANK YOU!
    일본야동

    ReplyDelete