Big problem with mdadm and grub after update from 11.4 to 12.2

Hello all, After a DVD update from OpenSuSE 11.4 to 12.2, the system won’t boot anymore. I can see now uses /dev/md125 /dev/md126 /dev/md127 (previously are /dev/md0 md1 etc.). I tryied what described here: openSUSE-RU-2012:1101-1: mdadm: fix install/boot issues with IMSM RAID Without any success. Now i am trying to fix it, but with strange results. My actual situation is the following:

mdadm --examine --scan

ARRAY /dev/md127 UUID=41b65403:6ae2a15a:e25497b3:838ac1a8
ARRAY /dev/md125 UUID=8faffc2b:c1cbcd9f:40cf110f:2c33bb8a
ARRAY /dev/md127 UUID=c649ac3a:7e130d44:da2c2182:96c632e9

notice the two md127 with different UUID.

cat /proc/mdstat
Personalities : [raid1] [raid0] [raid10] [raid6] [raid5] [raid4]
md127 : active (auto-read-only) raid1 sda1[0] sdb1[1]
1052160 blocks [2/2] [UU]

md125 : active raid1 sda2[0] sdb2[1]
3148672 blocks [2/2] [UU]
unused devices: <none>

Actual mount:

mount d
evtmpfs on /dev type devtmpfs (rw,relatime,size=503192k,nr_inodes=125798,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/md125 on / type reiserfs (rw,relatime,user_xattr,acl)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,mode=755)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/md125 on /var type reiserfs (rw,relatime,user_xattr,acl)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,relatime,mode=755)

md125 is mounted two times, in / and in /var…

My fstab:

cat /etc/fstab
/dev/md126 / reiserfs acl,user_xattr 1 1
/dev/md125 /var reiserfs acl,user_xattr 1 2
/dev/md127 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb
usbfs noauto 0 0
devpts /dev/pts
devpts mode=0620,gid=5 0 0

I am now a little confused, what i am missing? Help is needed…

Claudio.

It may be bind mount. Use /usr/bin/findmnt to display actual mount hierarchy including bind mounts.

I am now a little confused, what i am missing?

You could start with describing what your problem is. So far you never explained it.

Please Clsudio75,

Use CODE tags and not QUOTE tags around your copied/pasted computer output. It is the # button in the toolbar.

I have tryied, but i don’t see anything related to MD125 mounted in /var

You could start with describing what your problem is. So far you never explained it.

My problem is now the system can’t boot with that situation, yast can’t install correctly grub, it don’t mount my /var correctly, the system don’t boot if i don’t go to grub console and write kernel=/boot/vmlinuz , initrd=/boot/initrd and then boot…

Also, how i can change the /dev/md[x] back to /dev/md0, /dev/md1 etc?

Claudio.

Please show full findmnt output. In tags CODE please.

My problem is now the system can’t boot with that situation,

Please describe at which step problem occurs. What errors message you see. To solve problem the problem has to be identified first. “I cannot boot” does not give enough information to identify it.

Also, how i can change the /dev/md[x] back to /dev/md0, /dev/md1 etc.

Actually I already answered similar question recently but I think there was no reply so I do not know if this helped or not. Please show /etc/mdadm.conf from your system.