Michel,
On Thu, 18 Nov 1999 11:00:36 -0500, Michel Pelletier wrote:
>> >> > physical? The other two partions on the same drive work
>> dandy with
>> >> > their RAID, it looks like just this one partition on the
>> >> drive is bad.
>> >> > How, in a nutshell, do I fix this sucker?
>> >> >
>> >> try raidhotremove /dev/mdx /dev/sdy
>> >> raidhotadd /dev/mdx /dev/sdy
>> >
>> >Hmm... when I did:
>> >
>> >raidhotremove /dev/md2 /dev/sda
>> >
>> >It told me that /dev/sda was not in the array, when it is,
>> /dev/md2 is
>> >built from /dev/sda4 and /dev/sdb4.
>>
>> Well, you should not try to remove /dev/sda as its not part
>> of /dev/md2.
>>
>> Try /dev/sda4 ...
>
>I tried that also. In fact, I tried all combinations, sorry I wasn't
>explicit about that. I get an error that /dev/sdb4 is not in the array,
>and /dev/sda4 is busy.
>
>I'm not even sure which one is the good one! I'm assuming that since
>/proc/mdstat tells me the second on is bad, and that /dev/sdb4 is the
>*second* defined drive for md2 in /etc/raidtab, that /dev/sdb4 is the
>faulty one (the log messages also point to this).
You can tell exactly by inspecting /proc/mdstat and /etc/raidtab
In /etc/raidtab (if not modified after mkraid) you will find something like
device /dev/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1
When you find [U_] then the U is for /dev/sda4 (raid-disk 0) and the underscore is for
/dev/sdb4.
>From what I understand from your mails you once lost one of your partitions
>(/dev/sdb4).
I think you should not try to raidhotremove it if its not in /proc/mdstat.
If you think the disk and the partition ist physically ok, you can try to get back to
some stable situation. The following is the save way, but will eventually give some
warnings.
raidsetfaulty /dev/md0 /dev/sdb4
(will eventually complain if partition already removed)
Now /dev/sdb4 ist still in /proc/mdstat (if it was before) but marked with an
underscore
and marked (F).
raidhotremove /dev/md0 /dev/sdb4
(will complain with "disk not in array" if already removed)
Now /dev/sdb4 should have vanished from /proc/mdstat
raidhotadd /dev/md0 /dev/sdb4
back in /proc/mdstat, still with underscore, but recovery running.
If this doesnt work, perhaps you should show us your /etc/raidtab and /proc/mdstat.
Regards,
Robert