[CentOS] CentOS 6.2 on partitionable mdadm RAID1 (md_d0) - kernel panic with either disk not present

Tue Jun 19 18:41:27 UTC 2012
m.roth at 5-cent.us <m.roth at 5-cent.us>

Arun Khan wrote:
<snip>
> Following the instructions on CentOS Wiki
> <http://wiki.centos.org/HowTos/Install_On_Partitionable_RAID1>  I
> installed a min. server in Linux KVM setup (script shown below)
<snip>
> The system boots fine when both disks are available.
> When I remove either of the disks (delete the -drive file= line), the
> system boots to a point wherein the GRUB menu is displayed and the
> progress bar displays for a while till the white bar reaches about
> halfway point and then it:
>
> Kernel panic - not syncing: Attempted to kill init!
<snip>
> <fdisk -l>
> root at centos62-raid1 ~ >
> # fdisk -l
>
> Disk /dev/sda: 10.7 GB, 10737418240 bytes
> 255 heads, 63 sectors/track, 1305 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x000e8353
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1   *           1         523     4194304   83  Linux
> Partition 1 does not end on cylinder boundary.
> /dev/sda2             523        1045     4194304   83  Linux
> /dev/sda3            1045        1176     1048576   82  Linux swap /
> Solaris
<snip>
Ok, I see that it's hardware 512b blocks, so you're not running into
issues with 4k hardware blocks. I trust you installed grub on /dev/md0,
which I assume is /dev/sda1 and /dev/sdb1?

  mark