troubleshooting Question

How can I tell which drive in my software raid is bad

Avatar of PowerToaster
PowerToasterFlag for United States of America asked on
StorageLinux Distributions
2 Comments1 Solution232 ViewsLast Modified:
When I do a cat /proc/mdstat I get the following results.

# cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd1[4] sdc1[2] sdb1[1] sda1[0]
      4395407808 blocks level 5, 64k chunk, algorithm 2 [4/3] [UUU_]
      [===========>.........]  recovery = 59.5% (871892528/1465135936) finish=949.8min speed=10408K/sec

unused devices: <none>

The question is do the [UUU_] flags match the drives in the order displayed sdd1[4] sdc1[2] sdb1[1] sda1[0]?

If so then sda1 is the bad drive in this scenario, or do I look at the number after the drive device in this case the [4] position would indicate sdd1 as the bad drive.

Thank you in advance.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros