Hello,
I believe I have one hard disk dead, and I try to recover but I am confused with raid behavior. I need some help.
In my server, an old AMD K7, I have the following devices:
• Disk 1 : hda is a 40Gb hd
• Disk 2 : hdb is a 40Gb hd
• Disk 3 : hdc is a 60Gb hd
• hdd is a cdrom
I installed first sme 7.4 and then upgraded it to 8.0 beta 6.
I think disk 1 is dead because of the following messages (an extract only, there quite many) :
• hda: dma_intr : error = 0x40 {unrecorrectableError} LBA sect = ……., sector = ……..
• /dev
• /dev/root
• Switchroot : mount failed : No such a file or directory
• Kernel panic – not syncing : attempted to kill init
And then the server hungs. This happened during normal use, no upgrade done, no new contribs, no restart …
I tried to replace disk 1 with disk 2 at hda channel, with no disk 3 connected, I had a grub command line coming, no boot up. Then I boot up the server with disk 3 only (moved to hda) I had a kernel panic. Finally I removed disk 1 and replaced it with disk 3, and with disk 2 in place. The server boots again, tells me that it mounts a new root filesystem. Then I shut down the server. Hope it is not a bad idea… But some files like mysql database are not updated. They are a few weeks old.
QUESTION 1 : After checking the RAID howtos, it seems that disk 1 (hda) has been mirrored with disk 3 (hdc) ? What is disk 2 (hdb) used for ?
QUESTION 2 : I am very confused with the kernel versions. When I boot the faulty disk 1, there is only one kernel version, 2.6.18-194.11.1.el5. When I finally boot up the server with disk 3 as hda device, I had the choice between 2.6.18-194.17.1.el5 and 2.6.9-89.0.25.El. Different from faulty disk 1 …?
QUESTION 3 : is there a way to recover mysql files ? Where should I look ? I did not try yet to mount faulty disk 1 on another linux box, but I guess the ext3 filesystem is dead.
QUESTION 4 : what is the next move ? Leave disk 3 to the actual hda place, and install a new hard disk at hdc chanel ?
Thanks
Olivier