Centos 6 doesn't boot on degraded array - kernel panic

General support questions
Post Reply
mark_s
Posts: 2
Joined: 2017/08/01 21:52:59

Centos 6 doesn't boot on degraded array - kernel panic

Post by mark_s » 2017/08/01 22:02:46

I have Centos 6 installed on partitionable Raid1 in accordance with the
https://wiki.centos.org/HowTos/Install_ ... able_RAID1. When I
removed one of the drives (sda or sdb) it starts to boot properly but
after some time a kernel panic occurs. Then I put back both drives and
booted. It boots up properly, even RAID is not degraded!! When I gave sda to sdb place and vice versa it was fine too.
What should I do to boot up degraded array with only one disk? I've
read many guides but them all assume the layout of "sda1-sdb1..etc" and
not "sda-sdb" as mine (whole disks). They assume also earlier use of "mdadm -r.."
But... how to issue a command "mdadm -r " if the power went down and one
of the disks died? :) Below some information:

# /etc/fstab
/dev/md_d0p2 / ext4 defaults 1 1
/dev/md_d0p1 /boot ext4 defaults 1 2
/dev/md_d0p3 /home ext4 defaults 1 2
/dev/md_d0p4 swap swap defaults 0 0

$ blkid
/dev/sda: UUID="18351789-e415-07c8-bfe7-8010bc810f04" TYPE="linux_raid_member"
/dev/sdb: UUID="18351789-e415-07c8-bfe7-8010bc810f04"
TYPE="linux_raid_member"

$ cat /etc/mdadm.conf
ARRAY /dev/md_d0 metadata=0.90 UUID=18351789:e41507c8:bfe78010:bc810f04
$
$ cat /proc/mdstat
Personalities : [raid1]
md_d0 : active raid1 sdb[1] sda[0]
156290816 blocks [2/2] [UU]
bitmap: 0/2 pages [0KB], 65536KB chunk
$

Kernel panic - not syncing: Attempt to kill init!
Pid: 1, comm: init Not tainted 2.6.32-696.6.3.el6.x86_64 #1

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Centos 6 doesn't boot on degraded array - kernel panic

Post by TrevorH » 2017/08/01 22:11:37

What's in your grub kernel command line?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

mark_s
Posts: 2
Joined: 2017/08/01 21:52:59

Re: Centos 6 doesn't boot on degraded array - kernel panic

Post by mark_s » 2017/08/02 20:48:02

title CentOS (2.6.32-696.6.3.el6.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.32-696.6.3.el6.x86_64 ro root=/dev/md_d0p2 rd_NO_LUKS SYSFONT=latarcyrheb-sun16 LANG=pl_PL.UTF-8 rd_NO_LVM KEYBOARDTYPE=pc KEYTABLE=pl2 rd_NO_DM quiet crashkernel=auto
initrd /initramfs-2.6.32-696.6.3.el6.x86_64.img


# cat /proc/cmdline
ro root=/dev/md_d0p2 rd_NO_LUKS SYSFONT=latarcyrheb-sun16 LANG=pl_PL.UTF-8 rd_NO_LVM KEYBOARDTYPE=pc KEYTABLE=pl2 rd_NO_DM quiet crashkernel=129M@48M

Post Reply