12.1 startup unable to mount RAID1 /dev/md0 on /mnt/home but manual mount ok

I installed openSUSE 12.1 on RAID1 /dev/md1 with a separate /boot on
/dev/sda1. /home is on a pre-existing RAID1 /dev/md0. However when I
start the new installation, the startup fails; unable to mount
/dev/md0 on /mnt/home. I get thrown into emergency mode and onscreen
I see

Mounting root /dev/md1
mount -o rw,acl,user_xattr -t ext4 /dev/md1 /root
system-fsck[693]: /dev/md0 clean                 
Welcome to emergency mode                        
udevd[453]: '/sbin/mdadm --examine --export /dev/sda6'
Give root password for login:                         
udevd[453]: '/sbin/mdadm --examine --export /dev/sdb6'

The complete dmesg output is a bit too long for a posting - its
available at http://rogerprice.org/dmesg The last 38 lines contain all
the references to md0:

   14.725920] md: md0 stopped.
   15.087320] systemd-fsck[691]: fsck.ext4: Périphérique ou ressource occupé lors de la tentative d'ouverture de /dev/md0
   15.087440] systemd-fsck[691]: Système de fichier monté ou ouvert en mode exclusif par un autre                        
   15.087447] systemd-fsck[691]: programme ?                                                                             
   15.087717] systemd-fsck[691]: fsck failed with error code 8.                                                          
   15.087728] systemd-fsck[691]: Ignoring error.                                                                         
   15.154019] mount[698]: mount : /dev/md0 est déjà monté ou /mnt/home est occupé                                        
   15.154640] systemd[1]: mnt-home.mount mount process exited, code=exited status=32                                     
   15.164048] systemd[1]: Job remote-fs.target/start failed with result 'dependency'.                                    
   15.164062] systemd[1]: Job local-fs.target/start failed with result 'dependency'.                                     
   15.164066] systemd[1]: Triggering OnFailure= dependencies of local-fs.target.                                         
   15.164299] systemd[1]: Job mnt-bootb.mount/start failed with result 'dependency'.                                     
   15.164331] systemd[1]: Job fsck@dev-disk-by\x2did-ata\x2dST3320620AS_9QF4ALD8\x2dpart1.service/start failed with result 'dependency'.
   15.164347] systemd[1]: Job boot.mount/start failed with result 'dependency'.                                                         
   15.164370] systemd[1]: Job fsck@dev-disk-by\x2did-ata\x2dST3320620AS_9QF49R9J\x2dpart1.service/start failed with result 'dependency'.
   15.164911] systemd[1]: Unit mnt-home.mount entered failed state.                                                                     
   15.982092] md: bind<sdb6>                                                                                                            
   15.982131] md: could not open unknown-block(8,6).                                                                                    
   15.982142] md: md_import_device returned -16                                                                                         
   16.028358] md: bind<sda3>                                                                                                            
   16.057752] md: bind<sdb3>                                                                                                            
   16.069448] md/raid1:md2: active with 2 out of 2 mirrors                                                                              
   16.069569] created bitmap (193 pages) for device md2                                                                                 
   16.074432] md2: bitmap initialized from disk: read 13/13 pages, set 80 of 393340 bits                                                
   16.103221] systemd[1]: md.service: control process exited, code=exited status=3                                                      
   16.105835] md2: detected capacity change from 0 to 12888936448                                                                       
   16.110297] md: bind<sda6>                                                                                                            
   16.111137] systemd[1]: Unit md.service entered failed state.                                                                         
   16.115650] md/raid1:md0: active with 2 out of 2 mirrors                                                                              
   16.128595] boot.md[766]: Not shutting down MD RAID - reboot/halt scripts do this...missing                                           
   16.133496] created bitmap (3 pages) for device md0                                                                                   
   16.146447] udevd[450]: '/sbin/mdadm --examine --export /dev/sdb6' [783] terminated by signal 15 (Terminated)                         
   16.169267]  md2: unknown partition table                                                                                             
   16.169579] udevd[446]: '/sbin/mdadm --detail --export /dev/md2' [777] terminated by signal 15 (Terminated)                           
   16.187987] md0: bitmap initialized from disk: read 1/1 pages, set 0 of 4130 bits                                                     
   16.222506] md0: detected capacity change from 0 to 277099700224                                                                      
   16.222884] udevd[452]: '/sbin/mdadm --incremental /dev/sda6' [753] terminated by signal 15 (Terminated)                              
   16.334316] systemd[1]: Startup finished in 8s 284ms 20us (kernel) + 8s 50ms 133us (userspace) = 16s 334ms 153us.

cat /proc/mdstat reports:

Personalities : [raid1] [raid0] [raid10] [raid6] [raid5] [raid4] 
md0 : active raid1 sda6[0] sdb6[1]                                                 /* used for home */            
      270605176 blocks super 1.0 [2/2] [UU]
      bitmap: 0/3 pages [0KB], 65536KB chunk

md1 : active raid1 sda2[1] sdb2[0]                                                 /* used for /  */
      12586852 blocks super 1.0 [2/2] [UU]
      bitmap: 0/193 pages [0KB], 32KB chunk

md2 : active (auto-read-only) raid1 sda3[1] sdb3[0]                          /* not used, spare */
      12586852 blocks super 1.0 [2/2] [UU]
      bitmap: 1/193 pages [4KB], 32KB chunk

unused devices: <none>

cat /etc/fstab reports:

/dev/disk/by-id/ata-ST3320620AS_9QF49R9J-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST3320620AS_9QF4ALD8-part5 swap                 swap       defaults              0 0
/dev/md1             /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST3320620AS_9QF49R9J-part1 /boot                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-ST3320620AS_9QF4ALD8-part1 /mnt/bootb           ext4       acl,user_xattr        1 2
/dev/md0             /mnt/home            ext4       defaults              1 2
proc                 /proc                proc       defaults              0 0
sysfs                /sys                 sysfs      noauto                0 0
debugfs              /sys/kernel/debug    debugfs    noauto                0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0

If I enter the command “mount -a”, /dev/md0 is mounted and command “mount” reports:

rootfs / rootfs rw 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1600608k,nr_inodes=400152,mode=755 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
tmpfs /run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/md1 / ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /sys/fs/cgroup tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/net_cls cgroup rw,nosuid,nodev,noexec,relatime,net_cls 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
mqueue /dev/mqueue mqueue rw,relatime 0 0
tmpfs /var/run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
securityfs /sys/kernel/security securityfs rw,relatime 0 0
tmpfs /media tmpfs rw,nosuid,nodev,noexec,relatime,mode=755 0 0
tmpfs /var/lock tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime 0 0
/dev/sda1 /boot ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/sdb1 /mnt/bootb ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/md0 /mnt/home ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0

If I now type “telinit 5” the startup continues until I see the login screen.
Why is the startup unable to perform the “mount -a” which works
correctly when entered manually? Any suggestion for fixing this would
be much appreciated.

Roger

On 01/23/2012 06:36 PM, Luo2Jie2 wrote:
>
> I installed openSUSE 12.1 on RAID1

12.1 uses systemd by default, whic is incompatible with linux raid.

You could use init=/sbin/init as a kernel parameter in grub.
There is a raid-compatible systemd at: <link>

see the thread at http://forums.opensuse.org/showthread.php?t=469333


DD http://tinyurl.com/DD-Caveat
openSUSE®, the “German Engineered Automobiles” of operating systems!

Thanks, the 12.1 release notes also say

By default, openSUSE now boots using systemd.
In case of trouble, you can switch back to the old way using sysvinit by pressing the F5 key on the boot.
If you want to switch to sysvinit permanently, install the sysvinit-init package.
To switch back to systemd, reinstall the systemd-sysvinit package.

I replaced the systemd-sysvinit package with the sysvinit-init package which so far has fixed the problem.

Since the “trouble” predicted by the Release Notes is guaranteed for RAID users,
this one looks to me like a good candidate for 12.1’s Most Annoying Bugs.

Roger

On 01/24/2012 11:06 AM, Luo2Jie2 wrote:
> 12.1’s Most Annoying Bugs.

unless of course, most users don’t use RAID.

and, those that do are of such an advanced technical expertise so as to
know how important it is to read release notes and stuff like that…

to learn about new things included, and known problems before they try
to install…

and use the work-around from the git-go…

then it is the Least Annoying (easily avoided and known/publicized) bug
while systemd gets more work… :slight_smile:


DD
openSUSE®, the “German Engineered Automobiles” of operating systems!

On 24/01/12 10:06, Luo2Jie2 wrote:
>
> DenverD;2433356 Wrote:
>> see the thread at ‘update installation from 11.4 to 12.1 with RAID,
>> DM_CRYPT LUKS, LVM2 not failed partially’
>> (http://forums.opensuse.org/showthread.php?t=469333)
> Thanks, the 12.1 release notes also say> By default, openSUSE now boots using systemd.
>> In case of trouble, you can switch back to the old way using sysvinit
>> by pressing the F5 key on the boot.
>> If you want to switch to sysvinit permanently, install the
>> sysvinit-init package.
>> To switch back to systemd, reinstall the systemd-sysvinit package.
> I replaced the systemd-sysvinit package with the sysvinit-init package
> which so far has fixed the problem.
>
> Since the “trouble” predicted by the Release Notes is guaranteed for
> RAID users,
> this one looks to me like a good candidate for 12.1’s Most Annoying
> Bugs.
>

I had trouble with Raid and Systemd in the development and initial
release of 12.1 but a fix was provided at the end of November, initially
in Frederic Crozat’s repo, but soon afterwards in the update repo. It’s
worked fine for me since then.

Admittedly, the error I was getting was different to yours so I couldn’t
say whether updating to the latest Systemd would fix your problem.

See https://bugzilla.novell.com/show_bug.cgi?id=731230


Graham Davis, Bracknell, Berks.
openSUSE 12.1 (64-bit); KDE 4.7.4; AMD Phenom II X2 550 Processor;
Video: nVidia GeForce 210 (using nouveau driver);
Sound: ATI SBx00 Azalia (Intel HDA); Wireless: BCM4306