Centos 5.5 RAID 1 boot issue

I installed 5.5 with a 300GB RAID 1 partition (boot is also on this partition).  It booted up fine the first few times until after I used a Live CD and accessed the array, and it became named /dev/md127 for some reason.

Now whenI boot into CentOS I get a kernel panic and different errors, once I got "invalid superblock", even though the array is fine (it didn't happen again, probably because I was sure to dismount and stop the mdadm array properly).

Here's what I get when booting (the /dev/md127 is the problem I think):

raid1: raid set md127 active with 2 out of 2 mirrors
md: ... autorun DONE.
Trying to resume from LABEL=SWAP-sda2
No suspend signature on swap, no tresuming.
Creating root device.
Mounting root filesystem.
mount: could not find filesystem '/dev/root'
Setting up other filesystems.
Setting up new root fs
setuproot: moving /dev failed: No such file or directory.
no fstab.sys, mounting internal defaults
setuproot: error mounting /proc: No such file or directory
setuproot: error mounting /sys: No such file or directory
Switching to new root and running init.
unmounting old /dev
unmountin gold /proc
unmounting old/sys
switchroot: mount fialed: No such file or directory
Kernel panic -no syncing: Attempted to kill init!

I have tried specifying the root with UUID= with /dev/md0 and /dev/md127 without any different result. I'm really getting frustrated and stuck.  I also wonder if the issue might be that I used a very new 3.1.2 mdadm to access the array on my boot disc, could that have caused some incompatiblity problem with a different and likely older version of mdadm that Centos uses?

 

Solved

I think that when I accessed the raid array and it became md127, this screwed up all the initrd's or something else.  I don't know how to explain it.

I got the idea to use single user mode and it booted fine.  Then I just made an initrd:

mkinitrd /boot/yournewinitrd `uname -r` and make sure you boot with that initrd, I was able to boot again.  This should serve as a warning for anyone booting with RAID 1.  DON'T ACCESS THE RAID ARRAY WITH A LIVE CD UNLESS YOU USE THE SAME MD DEVICE.  I really think this is a Centos and mdadm bug in one.


Tags:

centos, raid, issuei, installed, gb, partition, booted, accessed, array, dev, md, wheni, kernel, errors, quot, invalid, superblock, didn, dismount, mdadm, booting, active, mirrors, autorun, resume, label, swap, sda, suspend, tresuming, creating, mounting, filesystem, mount, filesystems, fs, setuproot, directory, fstab, sys, defaults, proc, switching, init, unmounting, unmountin, switchroot, fialed, syncing, specifying, uuid, frustrated, disc, incompatiblity, initrd, user, mode, mkinitrd, yournewinitrd, uname,

Latest Articles

  • How To Upgrade Debian 8,9,10 to Debian 12 Bookworm
  • Linux dhcp dhclient Mint Redhat Ubuntu Debian How To Use Local Domain DNS Server Instead of ISPs
  • Docker dockerd swarm high CPU usage cause solution
  • Docker Minimum Requirements/How Efficient is Docker? How Much Memory Does Dockerd Use?
  • qemu-nbd: Failed to set NBD socket solution qemu-nbd: Disconnect client, due to: Failed to read request: Unexpected end-of-file before all bytes were read
  • apache2 httpd apache server will not start [pid 22449:tid 139972160445760] AH00052: child pid 23248 exit signal Aborted (6) solution Mint Debian Ubuntu Redhat
  • How to use the FTDI USB serial cable to RJ45 adapter to connect to the console on Cisco/Juniper Switch Router Firewall in Linux Ubuntu Debian Redhat
  • How To Setup Python3 in Ubuntu Docker Image for AI Deep Learning
  • How to Configure NVIDIA GPUs with Docker on Ubuntu: A Comprehensive Guide for AI Deep Learning CUDA Solution
  • Linux Ubuntu Mint how to check nameservers when /etc/resolv.conf disabled solution
  • Docker cannot work on other overlayfs filesystems such as ecryptfs won't start overlayfs: filesystem on '/home/docker/overlay2/check-overlayfs-support130645871/upper' not supported as upperdir
  • Linux How To Access Original Contents of Directory Mounted Debian Mint CentOS Redhat Solution
  • ecryptfs how to manually encrypt your existing home directory or other directory
  • How to Reset CIPC Cisco IP Communicator for CME CUCM CallManager
  • Internet Explorer Cannot Download File "Your security settings do not allow for this file to be downloaded." Security Settings Solution
  • Linux How To Upgrade To The Latest Kernel Debian Mint Ubuntu
  • Firefox how to restore and backup saved passwords and history which files/location
  • Linux How To echo as root solution to use tee permission denied solution Ubuntu Debian Mint Redhat CentOS
  • Linux how to keep command line bash process running if you are disconnected or need to logout of SSH remotely
  • Linux swapping too much? How to check the swappiness and stop swapping