Which (physical) disk is broken?
I've forgot, and I can't seem to find out which physical disk is broken/removed from an array...
----- s n i p -----
aurora:~# mdadm -D /dev/md/1
/dev/md/1:
Version : 00.90.01
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Array Size : 141483520 (134.93 GiB 144.88 GB)
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1
Persistence : Superblock is persistent Update Time : Tue Dec 21 12:04:43 2004
State : dirty, degraded
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
0 8 49 0 active sync /dev/scsi/host3/bus0/target4/lun0/part1
1 8 81 1 active sync /dev/scsi/host3/bus0/target8/lun0/part1
2 8 97 2 active sync /dev/scsi/host3/bus0/target9/lun0/part1
3 8 241 3 active sync /dev/scsi/host4/bus0/target4/lun0/part1
4 65 1 4 active sync /dev/scsi/host4/bus0/target5/lun0/part1
5 65 17 5 active sync /dev/scsi/host4/bus0/target8/lun0/part1
6 65 33 6 active sync /dev/scsi/host4/bus0/target9/lun0/part1
7 65 113 7 active sync /dev/scsi/host4/bus0/target14/lun0/part1
8 0 0 -1 removed
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Events : 0.974012
----- s n i p -----
I _THINK_ (!!) it's '/dev/scsi/host4/bus0/target15/lun0/part', but I'm not sure.... Don't want to yank a perfectly working disk :)
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target15/lun0/part1 mdadm: No super block found on /dev/scsi/host4/bus0/target15/lun0/part1 (Expected magic a92b4efc, got 00000000) ----- s n i p -----
Is there any way I can find out exactly which disk 'number 8' is?
----- s n i p -----
aurora:~# mdadm --version mdadm - v1.6.0 - 4 June 2004 aurora:~# uname -a Linux aurora 2.6.8.1 #1 SMP Sun Dec 12 21:04:58 CET 2004 sparc64 unknown ----- s n i p -----
Signature · 4 lines
Ortega assassination explosion FBI president PLO Iran domestic disruption genetic Ft. Bragg Rule Psix $400 million in gold bullion Clinton Cocaine Treasury [See http://www.aclu.org/echelonwatch/index.html for more about this]
Since it was removed, it is not a disk. It is no disk. The question is: what disk was it?
You could determine which disks it is not!
If you access your array, every disk in it will have disk activity. The disks that do not have activity are not in the array.
If you have more arrays, you would need to determine which disks they use also.
If you have non array disks, you will need to identify them also. Once all but one disk is identified, it must be your disk.
Use a command like this to cause your disks to have activity, then look for the blinking lights:
dd if=/dev/md/1 of=/dev/null bs=64k
Guy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Turbo Fredriksson
Sent: Tuesday, December 21, 2004 6:09 AM
To: [email protected]
Subject: Which (physical) disk is broken?
I've forgot, and I can't seem to find out which physical disk is broken/removed from an array...
----- s n i p -----
aurora:~# mdadm -D /dev/md/1
/dev/md/1:
Version : 00.90.01
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Array Size : 141483520 (134.93 GiB 144.88 GB)
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1
Persistence : Superblock is persistent Update Time : Tue Dec 21 12:04:43 2004
State : dirty, degraded
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
0 8 49 0 active sync/dev/scsi/host3/bus0/target4/lun0/part1
1 8 81 1 active sync/dev/scsi/host3/bus0/target8/lun0/part1
2 8 97 2 active sync/dev/scsi/host3/bus0/target9/lun0/part1
3 8 241 3 active sync/dev/scsi/host4/bus0/target4/lun0/part1
4 65 1 4 active sync/dev/scsi/host4/bus0/target5/lun0/part1
5 65 17 5 active sync/dev/scsi/host4/bus0/target8/lun0/part1
6 65 33 6 active sync/dev/scsi/host4/bus0/target9/lun0/part1
7 65 113 7 active sync/dev/scsi/host4/bus0/target14/lun0/part1
8 0 0 -1 removed
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Events : 0.974012----- s n i p -----
I _THINK_ (!!) it's '/dev/scsi/host4/bus0/target15/lun0/part', but I'm not sure.... Don't want to yank a perfectly working disk :)
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target15/lun0/part1 mdadm: No super block found on /dev/scsi/host4/bus0/target15/lun0/part1 (Expected magic a92b4efc, got 00000000) ----- s n i p -----
Is there any way I can find out exactly which disk 'number 8' is?
----- s n i p -----
aurora:~# mdadm --version mdadm - v1.6.0 - 4 June 2004 aurora:~# uname -a Linux aurora 2.6.8.1 #1 SMP Sun Dec 12 21:04:58 CET 2004 sparc64 unknown ----- s n i p -----
Signature · 8 lines
Ortega assassination explosion FBI president PLO Iran domestic disruption genetic Ft. Bragg Rule Psix $400 million in gold bullion Clinton Cocaine Treasury [See http://www.aclu.org/echelonwatch/index.html for more about this] - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
<snip>
Quoted 4 lines
Use a command like this to cause your disks to have activity, then look for the blinking lights:
dd if=/dev/md/1 of=/dev/null bs=64k
Oh swell!.... I have one blinking light for ALL the disks on all 12 of our raid systems. There has to be a better way.
Michael
Quoted 89 lines
Guy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Turbo Fredriksson
Sent: Tuesday, December 21, 2004 6:09 AM
To: [email protected]
Subject: Which (physical) disk is broken?I've forgot, and I can't seem to find out which physical disk is broken/removed from an array...
----- s n i p -----
aurora:~# mdadm -D /dev/md/1 /dev/md/1: Version : 00.90.01 Creation Time : Wed Oct 27 08:12:44 2004 Raid Level : raid5 Array Size : 141483520 (134.93 GiB 144.88 GB) Device Size : 17685440 (16.87 GiB 18.11 GB) Raid Devices : 9 Total Devices : 8 Preferred Minor : 1 Persistence : Superblock is persistentUpdate Time : Tue Dec 21 12:04:43 2004
State : dirty, degraded
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0Layout : left-symmetric
Chunk Size : 32KNumber Major Minor RaidDevice State
0 8 49 0 active sync/dev/scsi/host3/bus0/target4/lun0/part1
1 8 81 1 active sync/dev/scsi/host3/bus0/target8/lun0/part1
2 8 97 2 active sync/dev/scsi/host3/bus0/target9/lun0/part1
3 8 241 3 active sync/dev/scsi/host4/bus0/target4/lun0/part1
4 65 1 4 active sync/dev/scsi/host4/bus0/target5/lun0/part1
5 65 17 5 active sync/dev/scsi/host4/bus0/target8/lun0/part1
6 65 33 6 active sync/dev/scsi/host4/bus0/target9/lun0/part1
7 65 113 7 active sync/dev/scsi/host4/bus0/target14/lun0/part18 0 0 -1 removed UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b Events : 0.974012----- s n i p -----
I _THINK_ (!!) it's '
/dev/scsi/host4/bus0/target15/lun0/part', but I'm not sure.... Don't want to yank a perfectly working disk :)----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target15/lun0/part1 mdadm: No super block found on /dev/scsi/host4/bus0/target15/lun0/part1 (Expected magic a92b4efc, got 00000000) ----- s n i p -----Is there any way I can find out exactly which disk 'number 8' is?
----- s n i p -----
aurora:~# mdadm --version mdadm - v1.6.0 - 4 June 2004 aurora:~# uname -a Linux aurora 2.6.8.1 #1 SMP Sun Dec 12 21:04:58 CET 2004 sparc64 unknown ----- s n i p -----Signature · 13 lines
Ortega assassination explosion FBI president PLO Iran domestic disruption genetic Ft. Bragg Rule Psix $400 million in gold bullion Clinton Cocaine Treasury [See http://www.aclu.org/echelonwatch/index.html for more about this] - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Guy" == Guy <[email protected]> writes:
Guy> If you access your array, every disk in it will have disk activity.
He. That's one way I guess... I was more hoping for some support for this in mdadm...
But thanx.
Signature · 3 lines
ammunition SDI nuclear Panama ammonium Albanian NSA nitrate security CIA president radar SEAL Team 6 NORAD Cocaine [See http://www.aclu.org/echelonwatch/index.html for more about this]
Quoted 6 lines · On Wednesday December 22, [email protected] wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Guy" == Guy <[email protected]> writes:
Guy> If you access your array, every disk in it will have disk activity.
He. That's one way I guess... I was more hoping for some support for this in mdadm...
Would be nice....
but until disks have little blue lights that can be turned on and off under software control, and the linux block-device layer has an interface to access this control, there isn't much mdadm can usefully do.
NeilBrown
Quoted 8 lines · On Wednesday December 22, [email protected] wrote:
<snip>
Quoted 4 lines
Use a command like this to cause your disks to have activity, then look for the blinking lights:
dd if=/dev/md/1 of=/dev/null bs=64kOh swell!.... I have one blinking light for ALL the disks on all 12 of our raid systems. There has to be a better way.
There are really only two ways:
1/ make lights blinks.
2/ have labels on the front of each bay saying what SCSI (or
whatever) ID the device has.
If your storage array does not have per-device lights, or per-device labels, you should speak sternly to your hardware provider.
NeilBrown
I have never seen a disk system without per disk lights. You may need to open a door or something.
If you don't have per disk labels, how would you ever know what disk to remove? At least the manual should give details. I have seen this issue, I then add my own labels.
This seems like a large enough system that you should add custom labels so you know which disk is which, and which array uses each disk. Which SCSI tray connects to which SCSI host, ...
Guy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Neil Brown
Sent: Wednesday, December 22, 2004 6:11 PM
To: [email protected]
Cc: [email protected]
Subject: RE: Which (physical) disk is broken?
Quoted 2 lines · On Wednesday December 22, [email protected] wrote:
<snip>
Quoted 1 line
Use a command like this to cause your disks to have activity, then look
for
Quoted 6 lines
Quoted 3 lines
the blinking lights:
dd if=/dev/md/1 of=/dev/null bs=64kOh swell!.... I have one blinking light for ALL the disks on all 12 of our raid systems. There has to be a better way.
There are really only two ways:
1/ make lights blinks.
2/ have labels on the front of each bay saying what SCSI (or
whatever) ID the device has.
If your storage array does not have per-device lights, or per-device labels, you should speak sternly to your hardware provider.
NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Neil" == Neil Brown <[email protected]> writes:
Neil> On Wednesday December 22, [email protected] wrote:
>> >>>>> "Guy" == Guy <[email protected]> writes:
>>
Guy> If you access your array, every disk in it will have disk Guy> activity.
>> He. That's one way I guess... I was more hoping for some >> support for this in mdadm...
Neil> Would be nice.... but until disks have little blue lights Neil> that can be turned on and off under software control, and Neil> the linux block-device layer has an interface to access this Neil> control, there isn't much mdadm can usefully do.
I was more thinking on the 'magic'. When I created the array, I included this broken disk. I later removed it, but there should still (?) be a record of it in the super block (or wherever mdadm checks).
It knows how many disks there SHOULD be, and it knows how many is working.
----- s n i p -----
aurora:~# mdadm -D /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Array Size : 141483520 (134.93 GiB 144.88 GB)
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1
Persistence : Superblock is persistent Update Time : Fri Dec 24 11:45:11 2004
State : clean, degraded
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
0 8 49 0 active sync /dev/scsi/host3/bus0/target4/lun0/part1
1 8 81 1 active sync /dev/scsi/host3/bus0/target8/lun0/part1
2 8 97 2 active sync /dev/scsi/host3/bus0/target9/lun0/part1
3 8 241 3 active sync /dev/scsi/host4/bus0/target4/lun0/part1
4 65 1 4 active sync /dev/scsi/host4/bus0/target5/lun0/part1
5 65 17 5 active sync /dev/scsi/host4/bus0/target8/lun0/part1
6 65 33 6 active sync /dev/scsi/host4/bus0/target9/lun0/part1
7 65 113 7 active sync /dev/scsi/host4/bus0/target14/lun0/part1
8 0 0 -1 removed
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Events : 0.1005733
----- s n i p -----
Maybe it's to late now, but can't mdadm write a 'tag' somehow that 'this disk have broken down' and/or 'this disk have been removed from the array'?
I don't know how the (software) RAID works on kernel/hardware level, only how I, as a user/admin uses it :)
But if I check one of the disks scsi4:4:part1 for example:
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target4/lun0/part1
/dev/scsi/host4/bus0/target4/lun0/part1:
Magic : a92b4efc
Version : 00.90.00
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1 Update Time : Fri Dec 24 11:49:46 2004
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 1
Spare Devices : 0
Checksum : b038c0d3 - correct
Events : 0.1005753
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
this 3 8 241 3 active sync /dev/scsi/host4/bus0/target4/lun0/part1 0 0 8 49 0 active sync /dev/scsi/host3/bus0/target4/lun0/part1 1 1 8 81 1 active sync /dev/scsi/host3/bus0/target8/lun0/part1 2 2 8 97 2 active sync /dev/scsi/host3/bus0/target9/lun0/part1 3 3 8 241 3 active sync /dev/scsi/host4/bus0/target4/lun0/part1 4 4 65 1 4 active sync /dev/scsi/host4/bus0/target5/lun0/part1 5 5 65 17 5 active sync /dev/scsi/host4/bus0/target8/lun0/part1 6 6 65 33 6 active sync /dev/scsi/host4/bus0/target9/lun0/part1 7 7 65 113 7 active sync /dev/scsi/host4/bus0/target14/lun0/part1 8 8 0 0 8 faulty removed
----- s n i p -----
It (mdadm?) know exactly what md it belongs to etc... If I check the disk that i THINK is the 'faulty removed' one, it 'knows nothing':
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target15/lun0/part1 mdadm: No super block found on /dev/scsi/host4/bus0/target15/lun0/part1 (Expected magic a92b4efc, got 00000000) ----- s n i p -----
So, IF this is the disk, then what did mdadm do when it was removed? Did it clear the super block? Couldn't it write something else instead? Or at least keep the UUID?
Hmm, looking trough the code (I do that freely, before someone throws it at me :) i see that all mdadm do is a ioctl() so I guess it's something that have to be done in the kernel (?)...
But how come mdadm knows that there's one removed? Common sence? There's 9 raid devices (how come it knows that?) and 8 total devices, hence one must be/have been removed?
Looking at md.c in the kernel, I see that it don't write to the disk (when removing a device from an array) when persistent super blocks is used (which I don't). There don't seem to be an option in mdadm for this (I do remember using it with raidtools long ago)..
Am I way of? It's early on christmas eve, and my blood to coffein ratio is high... :)
Signature · 4 lines
Iran arrangements [Hello to all my fans in domestic surveillance] Kennedy pits 767 Peking Clinton assassination Cocaine PLO Ft. Meade killed $400 million in gold bullion kibo [See http://www.aclu.org/echelonwatch/index.html for more about this]
Quoted 7 lines
I was more thinking on the 'magic'. When I created the array, I included this broken disk. I later removed it, but there should still (?) be a record of it in the super block (or wherever mdadm checks).
It knows how many disks there SHOULD be, and it knows how many is working.
How about something primitive as checking the syslog messages (sent to facility kern)? You'll get messages from 'md' when you manipulate arrays, at least this is true for kernel 2.4. You'll see something like this:
Dec 24 12:25:02 storm kernel: md: trying to remove hdk1 from md4 ...
--
Theepan
Quoting "Theepan" <[email protected]>:
Quoted 5 lines
How about something primitive as checking the syslog messages (sent to facility kern)? You'll get messages from 'md' when you manipulate arrays, at least this is true for kernel 2.4. You'll see something like this:
Dec 24 12:25:02 storm kernel: md: trying to remove hdk1 from md4 ...
To long time ago... It's not kept on disk any more. I'll have a look at any backups, but I don't think I keep anything that far back...
Signature · 3 lines
Albanian quiche Clinton 767 Noriega pits congress Soviet Legion of Doom Rule Psix Ft. Bragg Serbian strategic jihad arrangements [See http://www.aclu.org/echelonwatch/index.html for more about this]
The info is in the superblock. But if the disk has failed, you may not be able to read the superblock.
Did you say you don't use superblocks?
I guess you better keep a paper trail!
You said:
"when persistent super blocks is used (which I don't)."
But the output from mdadm said:
"Persistence : Superblock is persistent"
Guy
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Turbo Fredriksson
Sent: Friday, December 24, 2004 6:10 AM
To: [email protected]
Subject: Re: Which (physical) disk is broken?
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Neil" == Neil Brown <[email protected]> writes:
Neil> On Wednesday December 22, [email protected] wrote:
>> >>>>> "Guy" == Guy <[email protected]> writes:
>>
Guy> If you access your array, every disk in it will have disk Guy> activity.
>> He. That's one way I guess... I was more hoping for some >> support for this in mdadm...
Neil> Would be nice.... but until disks have little blue lights Neil> that can be turned on and off under software control, and Neil> the linux block-device layer has an interface to access this Neil> control, there isn't much mdadm can usefully do.
I was more thinking on the 'magic'. When I created the array, I included this broken disk. I later removed it, but there should still (?) be a record of it in the super block (or wherever mdadm checks).
It knows how many disks there SHOULD be, and it knows how many is working.
----- s n i p -----
aurora:~# mdadm -D /dev/md1
/dev/md1:
Version : 00.90.01
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Array Size : 141483520 (134.93 GiB 144.88 GB)
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1
Persistence : Superblock is persistent Update Time : Fri Dec 24 11:45:11 2004
State : clean, degraded
Active Devices : 8
Working Devices : 8
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
0 8 49 0 active sync/dev/scsi/host3/bus0/target4/lun0/part1
1 8 81 1 active sync/dev/scsi/host3/bus0/target8/lun0/part1
2 8 97 2 active sync/dev/scsi/host3/bus0/target9/lun0/part1
3 8 241 3 active sync/dev/scsi/host4/bus0/target4/lun0/part1
4 65 1 4 active sync/dev/scsi/host4/bus0/target5/lun0/part1
5 65 17 5 active sync/dev/scsi/host4/bus0/target8/lun0/part1
6 65 33 6 active sync/dev/scsi/host4/bus0/target9/lun0/part1
7 65 113 7 active sync/dev/scsi/host4/bus0/target14/lun0/part1
8 0 0 -1 removed
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Events : 0.1005733----- s n i p -----
Maybe it's to late now, but can't mdadm write a 'tag' somehow that 'this disk
have broken down' and/or 'this disk have been removed from the array'?
I don't know how the (software) RAID works on kernel/hardware level, only how I, as a user/admin uses it :)
But if I check one of the disks scsi4:4:part1 for example:
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target4/lun0/part1
/dev/scsi/host4/bus0/target4/lun0/part1:
Magic : a92b4efc
Version : 00.90.00
UUID : d0b4e775:290f5785:2e6ad7d1:5a66178b
Creation Time : Wed Oct 27 08:12:44 2004
Raid Level : raid5
Device Size : 17685440 (16.87 GiB 18.11 GB)
Raid Devices : 9
Total Devices : 8
Preferred Minor : 1 Update Time : Fri Dec 24 11:49:46 2004
State : clean
Active Devices : 8
Working Devices : 8
Failed Devices : 1
Spare Devices : 0
Checksum : b038c0d3 - correct
Events : 0.1005753
Layout : left-symmetric
Chunk Size : 32K
Number Major Minor RaidDevice State
this 3 8 241 3 active sync/dev/scsi/host4/bus0/target4/lun0/part1
0 0 8 49 0 active sync/dev/scsi/host3/bus0/target4/lun0/part1
1 1 8 81 1 active sync/dev/scsi/host3/bus0/target8/lun0/part1
2 2 8 97 2 active sync/dev/scsi/host3/bus0/target9/lun0/part1
3 3 8 241 3 active sync/dev/scsi/host4/bus0/target4/lun0/part1
4 4 65 1 4 active sync/dev/scsi/host4/bus0/target5/lun0/part1
5 5 65 17 5 active sync/dev/scsi/host4/bus0/target8/lun0/part1
6 6 65 33 6 active sync/dev/scsi/host4/bus0/target9/lun0/part1
7 7 65 113 7 active sync/dev/scsi/host4/bus0/target14/lun0/part1
8 8 0 0 8 faulty removed
----- s n i p -----
It (mdadm?) know exactly what md it belongs to etc... If I check the disk that i THINK is the 'faulty removed' one, it 'knows nothing':
----- s n i p -----
aurora:~# mdadm -E /dev/scsi/host4/bus0/target15/lun0/part1 mdadm: No super block found on /dev/scsi/host4/bus0/target15/lun0/part1 (Expected magic a92b4efc, got 00000000) ----- s n i p -----
So, IF this is the disk, then what did mdadm do when it was removed? Did it clear the super block? Couldn't it write something else instead? Or at least keep the UUID?
Hmm, looking trough the code (I do that freely, before someone throws it at me :) i see that all mdadm do is a ioctl() so I guess it's something that have to be done in the kernel (?)...
But how come mdadm knows that there's one removed? Common sence? There's 9 raid devices (how come it knows that?) and 8 total devices, hence one must be/have been removed?
Looking at md.c in the kernel, I see that it don't write to the disk (when removing a device from an array) when persistent super blocks is used (which I don't). There don't seem to be an option in mdadm for this (I do remember using it with raidtools long ago)..
Am I way of? It's early on christmas eve, and my blood to coffein ratio is high... :)
Signature · 8 lines
Iran arrangements [Hello to all my fans in domestic surveillance] Kennedy pits 767 Peking Clinton assassination Cocaine PLO Ft. Meade killed $400 million in gold bullion kibo [See http://www.aclu.org/echelonwatch/index.html for more about this] - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Guy" == Guy <[email protected]> writes:
Guy> The info is in the superblock. But if the disk has failed, Guy> you may not be able to read the superblock.
It's not THAT failed. It just have way to many bad blocks to be useful so I took it out of service (but, unfortunately not from the machine - I'll remember to do that next time :)...
To bad there's no 'eject' command for disks :) That would be quite funny, shooting my colleague(s) with disks from the rack :)
Guy> Did you say you don't use superblocks? I guess you better Guy> keep a paper trail!
I do, but I always forget to update it...
Guy> You said: "when persistent super blocks is used (which I Guy> don't)."
I didn't say I don't use 'super blocks' I said 'PERSISTENT super blocks'
Guy> But the output from mdadm said: "Persistence : Superblock is Guy> persistent"
He, yeah. Sorry. I saw that in the same instant it was sent, but to late to cancel...
I've had quite a lot of time thinking about this, and I am now QUITE sure that I created the array with 'missing' on the place where this disk should have been.... I can VAGLEY remember that that disk kept failing the array when I built the machine/array initially. But I'm not sure it was THAT disk, or some other (I have a bunch of these disks that "don't quite work")...
Thanx for all the help everyone. But seeing the thread 'mdadm -D /dev/md3: 1 0 0 0 sync ???' on this list, leads me to believe I'm not THAT far out in wanting some better information on what disk is what...
Signature · 3 lines
Khaddafi Marxist Legion of Doom 767 747 domestic disruption Peking subway nitrate Uzi Kennedy explosion Rule Psix NORAD Honduras [See http://www.aclu.org/echelonwatch/index.html for more about this]