LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-31-2014, 06:06 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 590

Rep: Reputation: 34
How to check the identity of the failed SW raid


Hi I am using Redhat 5.4 and I ahve a SW RAID and the mdadm --detil /dev/md0 output is as below

Number Major Minor RaidDevice State
0 8 5 0 active sync /dev/sda5
1 0 0 1 removed

How do I query for the removed drive (what was there in the first place)

Thanks and regards
 
Old 07-31-2014, 06:15 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You could try
Code:
cat /proc/mdstat
and check /var/log/messages (or check syslog config).
 
Old 07-31-2014, 07:19 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 590

Original Poster
Rep: Reputation: 34
Hi chrism01 Thanks you for the reply but that only shows acrive disks

md2 : active raid1 sda5[0]
3068288 blocks [2/1] [U_]



Is there any chance that I could find what was the disk id that was removed.
 
Old 08-06-2014, 04:27 AM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 590

Original Poster
Rep: Reputation: 34
It seems you have to have a record to know this values, thats what I figured out. But I am open for new learnings )
 
Old 08-06-2014, 06:24 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You might have /etc/mdadm.conf http://linux.die.net/man/5/mdadm.conf
 
Old 08-13-2014, 02:50 AM   #6
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 590

Original Poster
Rep: Reputation: 34
Hi Chrism01, that does not contain any raid member information

DEVICE partitions
ARRAY /dev/md3 UUID=e3808be3:b10cbc91:662e699b:af5cdfa8
ARRAY /dev/md4 UUID=f0474af0:7b6413e2:f397b0a4:e5a0dac0
ARRAY /dev/md2 UUID=3cddcb6d:c2ac2009:226e43b2:7c88919a
ARRAY /dev/md1 UUID=f1322dcc:79eff461:ef41582a:7306e395
ARRAY /dev/md5 UUID=0a9a382f:dfc6fed6:f1b26185:9f838b37
ARRAY /dev/md6 UUID=901a9633:b1ab57dc:6fc3fbca:a6b1a6c1
ARRAY /dev/md7 UUID=b8ec1553:f3a322ef:66a93be9:7fb34245
ARRAY /dev/md8 UUID=f8cd46d1:71256512:242aebaf:a94127f8
ARRAY /dev/md9 UUID=259cbbac:2f6908de:f5961a67:4aed1ef8
ARRAY /dev/md0 UUID=74a325a3:2dfc799a:aea18f29:e9e14086
PROGRAM /opt/openfiler/bin/mdalert


Best Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HDIO get identity failed for dev/sdc1 invalid argument uncle guido Linux - Software 0 12-04-2012 06:44 PM
HDIO get identity failed for dev/sdc1 invalid argument uncle guido Linux - Newbie 0 11-30-2012 02:44 PM
Cogl-1.10.4 make check failed and compile Clutter-1.10.8 failed kcynice Linux From Scratch 0 08-09-2012 01:27 AM
Using mdadm - Failed RAID-5 Array but individual disks check out ok JRFrogman Linux - Server 0 06-05-2008 03:46 PM
sanity check failed for g++ pablovschby Programming 2 11-08-2004 03:39 AM


All times are GMT -5. The time now is 10:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration