Mailinglist Archive: opensuse (1030 mails)

< Previous Next >
Re: [opensuse] upgrade from 11.4 to 12.1 can't boot from software raid
  • From: "James D. Parra" <jamesp@xxxxxxxxxxxxxxxx>
  • Date: Wed, 29 Feb 2012 16:07:23 -0800 (PST)
  • Message-id: <2020799075.960431330560443328.JavaMail.root@mri-mail>

Had a software raid of raid 1 for /dev/md0 = boot and /dev/md2 = /, however
after the upgrade the system boots with the grub error; root=/dev/md2 - Cannot
mount selected partition.

What can be done from the rescue mode to get the system back online?

This is what I was able to accomplish in Rescue Mode;

1. Ran #ls /dev/md* and found four unusual entries, md124 md125 md126 and md127

2. Ran #cat /proc/mdstat and found the above md###'s in an active state

3. Stopped all four with #mdadm --stop /dev/md124, etc and rechecked
/proc/mdsat and found nothing listed.

4. Then ran #mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1, #mdadm --assemble
/dev/md1 /dev/sda2 /dev/sdb2, #mdadm --assemble /dev/md2 /dev/sda3 /dev/sdb3

5. Ran #cat /proc/mdstat and all three raids appear properly

6. Then did the following;
A. mkdir /mnt/sysimage
B. mount /dev/md2 /mnt/sysimage
C. mount -o bind /dev /mnt/sysimage/dev
D. mount -o bind /proc /mnt/sysimage/proc
E. mount /dev/md0 /boot

7. Ran #cp /etc/mdadm.conf /etc/mdadm.conf.old

8. To get a correct mdadm.conf file ran # mdadm --examine --scan >

This mdadm.conf was different from the mdadm.conf.old file so I thought the
server would boot normally, however I still get the error root=/dev/md2 -
Cannot mount the selected partition.

Anyone have any ideas how to fix this?

Thank you,

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
This Thread
  • No further messages