New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Can't boot linux server in software raid 1 after changing hard disk
linuxthefish
Member
in Help
Hi, I have a server with 2 disks in software raid 1. Today one of these disks failed and I replaced it, and now when I boot the server grub tells me "Error 5: Partition table invalid or corrupt". How can I resolve this and get linux to boot from the disk with a working partition table?
Comments
Boot from rescue CD, partition the second disk, add it's partition to the raid (it will start syncing), mount the root in /mnt for instance, chroot there, run grub-install, exit, umount, reboot.
This is the issue with raid1. If a drive fails then you have to start again.
In tests at home I with grub installed to /dev/md0, the server boots right into linux and I can re-create the array with the new disk.
I guess nothing ever goes as planned...
Which disk took the shit sda or sdb?
sdb, if I boot the server without this disk in grub gets stuck in a cycle.
I will wait for datacenter to put rescue cd in, thanks all.
If it has IPMI you can boot rescue CD over the network.
Well here is some nice info: http://serverfault.com/questions/525066/how-to-boot-after-raid-failure-software-raid?rq=1
No chance with supermicro's smb thing...
From bios, change booting from hhd 1 to hdd 2.
Is this normal for centos rescue bit?
Hello,
That does not look like rescue cd, are you sure server has boot on rescue cd over the network ?
Since you seem to have a kvm you should see PXE boot just after DHCP.
Once you get a prompt first thing to do is #fdisk -l
you should get partitions of your two disks.