You are not logged in.

#1 2015-10-17 02:13:25

namae
Member
Registered: 2014-05-02
Posts: 15

cant Boot with mdRaid partitions

After Grub loads and start to boot into Arch I am 'greeted' with
ERROR: Unable to find root device 'UUID=c8abcc04-b45e-4ed3-bace-16d599588b58'.

this is my output from lsblk -f
the drive is GPT
Edit: also its RAID5
and I know having a seperate /usr partition is bad/redundant/etc in most cases but this is for a router so I want it read-only

# lsblk -f
NAME    FSTYPE               LABEL             UUID                                                              MOUNTPOINT
sda                                                                      
├─sda1       <---EF02                    
├─sda2  swap                                             90924648-e64a-452e-82fe-60601306a4fc 
├─sda3  linux_raid_memb archiso:0          7edc6ba1-c93c-8f97-5397-abebd1785b80 
│    └─md0 btrfs                                          945a2203-9879-4deb-afe3-7ce37e603745   /usr
├─sda4  linux_raid_memb archiso:0          7edc6ba1-c93c-8f97-5397-abebd1785b80 
│     └─md0 btrfs                                         945a2203-9879-4deb-afe3-7ce37e603745   /usr
├─sda5  linux_raid_memb archiso:1          056eb716-171b-e7e1-9724-58514b021599 
│    └─md1 btrfs                                          c8abcc04-b45e-4ed3-bace-16d599588b58  /
├─sda6  linux_raid_memb archiso:1          056eb716-171b-e7e1-9724-58514b021599 
│    └─md1 btrfs                                          c8abcc04-b45e-4ed3-bace-16d599588b58  /
└─sda7  btrfs                                              bd3bb839-bf51-4943-9ed5-f495688db60f     /var
sdb     iso9660                   ARCH_201510 2015-10-01-17-08-02-00               
├─sdb1  iso9660               ARCH_201510 2015-10-01-17-08-02-00                                  /run/archiso/bootmnt
└─sdb2  vfat                      ARCHISO_EFI 8322-6EAF                            
loop0   squashfs                                                                                                                  /run/archiso/sfs/airootfs

here is the grub entry

menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c8abcc04-b45e-4ed3-bace-16d599588b58' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt gpt
        insmod diskfilter mdraid1x raid5rec
        insmod btrfs
        set root='mduuid/056eb716171be7e1972458514b021599'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/056eb716171be7e1972458514b02159'  c8abcc04-b45e-4ed3-bace-16d599588b58
        else
          search --no-floppy --fs-uuid --set=root c8abcc04-b45e-4ed3-bace-16d599588b58
        fi
        echo    'Loading Linux linux-lts ...'
        linux   /boot/vmlinuz-linux-lts root=UUID=c8abcc04-b45e-4ed3-bace-16d599588b58 rw  quiet
        echo    'Loading initial ramdisk ...'
        initrd   /boot/initramfs-linux-lts.img
}

I tried 'insmod mdraid' as-per the wiki aswell

Also I tried SYSLINUX but the BIOS gave 'no boot device found' so I gave up on that

Last edited by namae (2015-10-17 03:37:46)

Offline

#2 2015-10-18 09:14:52

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: cant Boot with mdRaid partitions

Output of 'mdadm -vbD /dev/md0' (md1) and 'gdisk -l /dev/sda'?
And what's the reason for having RAID on a single disk?


1000

Offline

#3 2015-10-18 19:42:37

namae
Member
Registered: 2014-05-02
Posts: 15

Re: cant Boot with mdRaid partitions

Im kind of impatient so I wiped the Drive and started over with Raid 1

I am still having the same problem

# lsblk -f
NAME    FSTYPE          LABEL       UUID                                 MOUNTPOINT
sda                                                                      
├─sda1                                                                   
├─sda2  linux_raid_memb archiso:0   69dba108-25aa-0cff-2fba-8a2d827d79d0 
│ └─md0 btrfs                       1460b394-1ce5-4f67-9066-e0b76ff36620 
├─sda3  linux_raid_memb archiso:0   69dba108-25aa-0cff-2fba-8a2d827d79d0 
│ └─md0 btrfs                       1460b394-1ce5-4f67-9066-e0b76ff36620 
├─sda4  swap                        3267c854-f3af-44bb-a641-62243b965360 
├─sda5  linux_raid_memb archiso:1   1e5bb6d0-6f01-75a4-0ebc-af131c9d9f2b 
│ └─md1 btrfs                       8e71cc43-e6e1-486a-8036-1ef92333cfee 
├─sda6  linux_raid_memb archiso:1   1e5bb6d0-6f01-75a4-0ebc-af131c9d9f2b 
│ └─md1 btrfs                       8e71cc43-e6e1-486a-8036-1ef92333cfee 
└─sda7  btrfs                       9a7cc5cb-e964-4032-92e0-5522322927d7 
sdb     iso9660         ARCH_201510 2015-10-01-17-08-02-00               
├─sdb1  iso9660         ARCH_201510 2015-10-01-17-08-02-00               /run/archiso/bootmnt
└─sdb2  vfat            ARCHISO_EFI 8322-6EAF                            
sr0     iso9660         ASUS        2013-08-14-18-30-00-00               
loop0   squashfs                                                         /run/archiso/sfs/airootfs
# mdadm -vbD /dev/md0
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2 name=archiso:0 UUID=69dba108:25aa0cff:2fba8a2d:827d79d0
   devices=/dev/sda2,/dev/sda3
# mdadm -vbD /dev/md1
ARRAY /dev/md1 level=raid1 num-devices=2 metadata=1.2 name=archiso:1 UUID=1e5bb6d0:6f0175a4:0ebcaf13:1c9d9f2b
   devices=/dev/sda5,/dev/sda6
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.0

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 390721968 sectors, 186.3 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 1F2E6578-8282-419D-B48B-BC0A00B56FEE
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 390721934
Partitions will be aligned on 2048-sector boundaries
Total free space is 227135853 sectors (108.3 GiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048           10239   4.0 MiB     EF02  
   2           10240        31467519   15.0 GiB    8300  
   3        31467520        62924799   15.0 GiB    8300  
   4        62924800        69216255   3.0 GiB     8200  
   5        69216256       100673535   15.0 GiB    8300  
   6       100673536       132130815   15.0 GiB    8300  
   7       132130816       163588095   15.0 GiB    8300  

As for the Reason to have Raid on a single disk:
the disk is Old ...so probablity of failure or bad sectors is high
my only other spare disk is a 2TB i would rather not use for a router situation

Last edited by namae (2015-10-18 19:43:26)

Offline

#4 2015-10-20 22:51:43

madman_xxx
Member
From: PL
Registered: 2013-07-31
Posts: 35

Re: cant Boot with mdRaid partitions

This looks oddly similar to https://bbs.archlinux.org/viewtopic.php?id=189845

Last edited by madman_xxx (2015-10-20 23:29:42)

Offline

Board footer

Powered by FluxBB