CentOS box no boot after P2V (MDRAID)
Posted: 18. Apr 2013, 00:11
Hi.
I'm trying to virtual a physical Centos 5.6 machine (web server). It is running software raid (mdraid). I do realize that it is recommended to disable software raid before visualizing but this is not possible - this is a critical production server.
I did the following (essentially following the p2v guide here)
1. Booted the server using linux SystemRescueCD and made images of two partitions / and /boot - these were in /dev/md1 amd /dev/md2 respectively.
2. I have created a linux guest on latest virtualbox (4.2 something), gave it one SATA HDD controller and one virtual HDD.
3. booted linux guest with sysrescuecd, created partitions and restored images into /dev/sda3 and /dev/sda1
4. configured fstab and grub as per guide.
When I start linux guest it boots to the point where it says something slong the lines "cant mount root filesystem /dev/md1 not found -> kernel panic". I cant even boot into maintenance or emergency mode.
I understand that what is happening is that it is still expecting software raid array to be present, but there isn't one any more. I searched / and /boot and there are no any other references to /dev/mdx other than the ones I have disabled or changed to /dev/sdax already. When i boot sysrescue cd, I can mount the partitions that I have restored /dev/sdax and I can see all the files just fine.
Any idea how to go about fixing this ? I was even thinking an around way of setting up brand new CentOS and then conparing differences but there surly must be a better way ?
Thanks in advance,
Matt.
I'm trying to virtual a physical Centos 5.6 machine (web server). It is running software raid (mdraid). I do realize that it is recommended to disable software raid before visualizing but this is not possible - this is a critical production server.
I did the following (essentially following the p2v guide here)
1. Booted the server using linux SystemRescueCD and made images of two partitions / and /boot - these were in /dev/md1 amd /dev/md2 respectively.
2. I have created a linux guest on latest virtualbox (4.2 something), gave it one SATA HDD controller and one virtual HDD.
3. booted linux guest with sysrescuecd, created partitions and restored images into /dev/sda3 and /dev/sda1
4. configured fstab and grub as per guide.
When I start linux guest it boots to the point where it says something slong the lines "cant mount root filesystem /dev/md1 not found -> kernel panic". I cant even boot into maintenance or emergency mode.
I understand that what is happening is that it is still expecting software raid array to be present, but there isn't one any more. I searched / and /boot and there are no any other references to /dev/mdx other than the ones I have disabled or changed to /dev/sdax already. When i boot sysrescue cd, I can mount the partitions that I have restored /dev/sdax and I can see all the files just fine.
Any idea how to go about fixing this ? I was even thinking an around way of setting up brand new CentOS and then conparing differences but there surly must be a better way ?
Thanks in advance,
Matt.