You are not logged in.

#1 2015-10-11 14:49:35

ElricleNecro
Member
Registered: 2015-10-11
Posts: 4

Impossible to boot from RAID0 (solved, kind of)

Hi,

I have a MSI laptop which has 3 disks : one hd, and two ssd in RAID0

Since an update I have done yesterday (knowing the computer hasn't been updated since 3 weeks, as I had to return it to MSI). I now have the following issue at boot:

Waiting 10 seconds for device /dev/disk/by-label/LinuxOS
ERROR: device 'LABEL=LinuxOS' not found. skipping fsck
ERROR: Unable to find root device 'LABEL=LinuxOS'

And then, it drops me in "recovery shell".

The error since to come from something which hasn't been loaded: once in recovery shell, I can see the two ssd (/dev/sda and /dev/sdb), but I can't see the RAID0 (no /dev/md126p5, which is the root partition in the RAID, no /dev/md).

Here is my mkinitcpio.conf:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image.  This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way.  This is useful for config files.
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
##   This setup specifies all modules in the MODULES setting above.
##   No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
##   This setup will autodetect all modules for your system and should
##   work as a sane default
#    HOOKS="base udev autodetect block filesystems"
#
##   This setup will generate a 'full' image which supports most systems.
##   No autodetection is done.
#    HOOKS="base udev block filesystems"
#
##   This setup assembles a pata mdadm array with an encrypted root FS.
##   Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
#    HOOKS="base udev block mdadm encrypt filesystems"
#
##   This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev block lvm2 filesystems"
#
##   NOTE: If you have /usr on a separate partition, you MUST include the
#    usr, fsck and shutdown hooks.
HOOKS="base udev autodetect modconf block mdadm_udev filesystems keyboard fsck"

# COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"

# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""

My mdadm.conf generated using "mdadm --detail --scan >> /mnt/etc/mdadm.conf" from the Live USB:

# mdadm configuration file
#
# mdadm will function properly without the use of a configuration file,
# but this file is useful for keeping track of arrays and member disks.
# In general, a mdadm.conf file is created, and updated, after arrays
# are created. This is the opposite behavior of /etc/raidtab which is
# created prior to array construction.
#
#
# the config file takes two types of lines:
#
#	DEVICE lines specify a list of devices of where to look for
#	  potential member disks
#
#	ARRAY lines specify information about how to identify arrays so
#	  so that they can be activated
#


# You can have more than one device line and use wild cards. The first 
# example includes SCSI the first partition of SCSI disks /dev/sdb,
# /dev/sdc, /dev/sdd, /dev/sdj, /dev/sdk, and /dev/sdl. The second 
# line looks for array slices on IDE disks.
#
#DEVICE /dev/sd[bcdjkl]1
#DEVICE /dev/hda1 /dev/hdb1
#
# The designation "partitions" will scan all partitions found in
# /proc/partitions
DEVICE partitions


# ARRAY lines specify an array to assemble and a method of identification.
# Arrays can currently be identified by using a UUID, superblock minor number,
# or a listing of devices.
#
#	super-minor is usually the minor number of the metadevice
#	UUID is the Universally Unique Identifier for the array
# Each can be obtained using
#
# 	mdadm -D <md>
#
# To capture the UUIDs for all your RAID arrays to this file, run these:
#    to get a list of running arrays:
#    # mdadm -D --scan >>/etc/mdadm.conf
#    to get a list from superblocks:
#    # mdadm -E --scan >>/etc/mdadm.conf
#
#ARRAY /dev/md0 UUID=3aaa0122:29827cfa:5331ad66:ca767371
#ARRAY /dev/md1 super-minor=1
#ARRAY /dev/md2 devices=/dev/hda1,/dev/hdb1
#
# ARRAY lines can also specify a "spare-group" for each array.  mdadm --monitor
# will then move a spare between arrays in a spare-group if one array has a
# failed drive but no spare
#ARRAY /dev/md4 uuid=b23f3c6d:aec43a9f:fd65db85:369432df spare-group=group1
#ARRAY /dev/md5 uuid=19464854:03f71b1b:e0df2edd:246cc977 spare-group=group1
#


# When used in --follow (aka --monitor) mode, mdadm needs a
# mail address and/or a program.  To start mdadm's monitor mode, enable
# mdadm.service in systemd.
#
# If the lines are not found, mdadm will exit quietly
#MAILADDR root@mydomain.tld
#PROGRAM /usr/sbin/handle-mdadm-events
ARRAY /dev/md/imsm0 metadata=imsm UUID=866b6f26:ef5b901b:722c677d:c917fdd8
ARRAY /dev/md/RAID0IMSVolume_0 container=/dev/md/imsm0 member=0 UUID=7775e1d1:725a8945:3c0c2ea5:6d9d5b5e

As my system use an UEFI, I use systemd-boot (previously gummiboot) as a boot loader. Here is the linux entry:

title	Arch Linux
linux 	/vmlinuz-linux
initrd	/intel-ucode.img
initrd	/initramfs-linux.img
#options	root=UUID=7c7dcb61-79e1-42ef-90e7-f08d08409188 rw video.use_native_backlight=0 resume=/dev/sdc3
options	root=LABEL=LinuxOS rw video.use_native_backlight=0 resume=/dev/sdc3

I have to add that the RAID0 is perfectly recognised in Windows (8.1) and from the Live USB.

I think you have all the information I can think of. Any ideas ?

Thanks in advance.

PS: sorry if my english is really bad. I'm not a native english speaker.

Last edited by ElricleNecro (2015-10-14 08:16:04)

Offline

#2 2015-10-13 16:47:58

ElricleNecro
Member
Registered: 2015-10-11
Posts: 4

Re: Impossible to boot from RAID0 (solved, kind of)

Okay, there is some progress:
[c]mdadm --detail-platform[/c] in the recovery shell give me :

mdadm: imsm capabilities not found for controller: /sys/device/pci0000:00/0000:00:1f.2 (SATA)

[c]mdadm --assemble --scan --verbose[/c] give:

mdadm: looking for devices for futher assembly
mdadm: No OROM/EFI properties for /dev/sda
mdadm: no RAID superblock on /dev/sda
mdadm: No OROM/EFI properties for /dev/sdb
mdadm: no RAID superblock on /dev/sdb
mdadm: looking for devices for /dev/md/RAID0IMSVolume
mdadm: No OROM/EFI properties for /dev/sda
mdadm: no RAID superblock on /dev/sda
mdadm: No OROM/EFI properties for /dev/sdb
mdadm: no RAID superblock on /dev/sdb

I have also found : https://bbs.archlinux.org/viewtopic.php?id=178171. He talked to move /boot/eft on the non RAID disk. But I don't have any EFT. But I have a /boot/EFI.

Could this be the problem (and solution), despicte the fact it worked for almost a year ?

Offline

#3 2015-10-14 07:49:11

zozi56
Member
Registered: 2012-03-10
Posts: 14

Re: Impossible to boot from RAID0 (solved, kind of)

Hi,

take a look at this.

Offline

#4 2015-10-14 08:14:20

ElricleNecro
Member
Registered: 2015-10-11
Posts: 4

Re: Impossible to boot from RAID0 (solved, kind of)

Hi,

Thanks. I have just found this during the night also. My motherboard has been changed recently, so it's coherent with.

Except that he say the imsm raid may not be enabled in the new motherboard, but mine is.
So, as this is not the same problem, I will put this topic as resolve.

Thank you.

Offline

#5 2015-10-15 10:02:53

JoKo
Member
Registered: 2010-04-09
Posts: 37

Re: Impossible to boot from RAID0 (solved, kind of)

Hello,

I have also downgraded mdadm and my fakeraid array is now working again. What would be a permanent solution?

Last edited by JoKo (2015-10-15 10:03:05)

Offline

#6 2015-10-15 23:36:11

ElricleNecro
Member
Registered: 2015-10-11
Posts: 4

Re: Impossible to boot from RAID0 (solved, kind of)

For what I have understand, the only permanent solution would be to recreate the RAID0, from scratch. I do not know if this is possible without data loss.

Offline

#7 2015-10-17 19:17:17

JoKo
Member
Registered: 2010-04-09
Posts: 37

Re: Impossible to boot from RAID0 (solved, kind of)

This is really strange, my fakeraid array is now properly being identified, no need to re-assemble it.

Offline

Board footer

Powered by FluxBB