You are not logged in.

#1 2016-01-12 20:50:27

frederickwhy
Member
Registered: 2016-01-07
Posts: 1

mdadm --scan doesn't match lsblk, rEFInd can't find root drive

Hi all,

This is my first install and I nearly made it through. I'm installing on an Acer Aspire R13 with two 256GB SSDs set up as RAID0. The ESP is /dev/md126p2 and my /root is /dev/md126p6. mdadm doesn't seem to be seeing my software raid correctly, so I can't configure rEFInd to find the /root device and boot into my seemingly otherwise successful install.

Here's what happens when I try to boot:

[   0.026835] Ignoring BGRT: invalid status 0 (expected 1)
starting version 228
ERROR: device ‘LABEL=ARCHSYS’ not found. Skipping fsck.
ERROR: Unable to find root device ‘LABEL=ARCHSYS’.
You are being dropped to a recovery shell
   Type ‘exit’ to try and continue booting
sh: can’t access tty; job control turned off
[rootfs/]# 

ARCHSYS is the persistent block label for /dev/md126p6. Within that recovery shell, lsblk doesn't see the software raid:

NAME  MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda	8:0	0 238.5G 0 disk
sdb	8:16	0 238.5G 0 disk
sdc	8:32	1 29.4G  0 disk
‘-sdc1	8:33	1 29.4G  0 disk

At this point I reboot and go back to the live USB. lsblk then shows sda and sdb as disks, both containing md126 raid0 with all of the partitions md126px.

The main problem seems to be with mdadm:

# mdadm --detail --scan
ARRAY /dev/md/imsm0 metadata=imsm UUID=9e22ab2c:10ce5dd8:7ca3afbe:9f7cb144
ARRAY /dev/md/Volume_0 container=/dev/md/imsm0 member=0 UUID=2b9e3483:41667fb9:68e47239:84d4302f

This leads to my mdadm.conf having three uncommented lines: DEVICE partitions and the output of mdadm above. I added the mdadm_udev hook and the mdmon binary to mkinitcpio.conf, regenerated the initramfs image, and configured rEFInd to look for the correct root device by label. I installed the intel-ucode package and enabled microcode updates. My mdstat claims that md126 is active:

# cat /proc/mdstat
Personalities : [raid0]
md126 : active raid0 sda[1] sdb[0]
     50011348 blocks super external:/md127/0 16k chunks

md127 : inactive sdb[1](S) sda[0](S)
     4520 blocks super external:imsm

And here's my fstab:

# /dev/md126p6
UUID=f1acbe55-1542-4baa-ba20-6aade13256b4     /          ext4      rw,relatime,stripe=8,data=ordered    0 1

# /dev/md126p2 LABEL=ESP
UUID=6E80-D96A     /boot     vfat     rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro   0 2

# /dev/md126p7
UUID=e13b2fbb-5a7a-4373-a4e8-8d0b11c70001    /home    ext4     rw,relatime,stripe=8,data=ordered    0 2

I just updated it to include md126p6's label. If that was the entire problem I'll go find my dunce cap, otherwise what should I try and what else do you need to know?

Thanks for your patience. I'm in a bit over my head but that was kind of the point.

Offline

Board footer

Powered by FluxBB