dracut fails to include support for md RAID

Bill Shirley bshirley at memphis.apirx.biz
Sun Oct 4 18:35:59 UTC 2015


I ran into this or something similar.  My system would boot fine on
an older kernel but fail on a new oue.  Can't remember which one worked
and which didn't. The solution I found was remove the bitmap, re-boot on
the newer kernel, and add the bitmap back.

# remove
mdadm --grow --bitmap=none /dev/md127

# create - but not while resyncing
mdadm --grow --bitmap=internal /dev/md127

HTH,
Bill


On 10/4/2015 1:03 AM, Alex wrote:
> HI,
>
> I have a fedora22 system that's been working fine for some time, but
> any new kernels fail to boot properly. The system is configured with
> /boot and / on RAID1. The rdsosreport.txt that dracut produces shows
> no indication of md RAID support in /proc/mdstat and no RAID devices
> listed with blkid or in /dev.
>
> I've tried rebuilding the initramfs images manually on the running
> system and it still doesn't include RAID support.
>
> What could be causing grub and/or dracut to not detect the RAID
> devices or include support for them?
>
> I've included my grub2.cfg and fstab, and fdisk output.
>
> Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 76D351F7-9CB4-4F70-A62F-2903227191B3
>
> Device         Start       End   Sectors   Size Type
> /dev/sda1       2048   1026047   1024000   500M Linux RAID
> /dev/sda2    1026048 476162047 475136000 226.6G Linux RAID
> /dev/sda3  476162048 484550655   8388608     4G Linux swap
> /dev/sda4  484550656 484552703      2048     1M BIOS boot
>
> Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: gpt
> Disk identifier: 1861B0D0-EA55-418B-B179-B6BB700EEAC7
>
> Device         Start       End   Sectors   Size Type
> /dev/sdb1       2048   1026047   1024000   500M Linux RAID
> /dev/sdb2    1026048 476162047 475136000 226.6G Linux RAID
> /dev/sdb3  476162048 484550655   8388608     4G Linux swap
> /dev/sdb4  484550656 484552703      2048     1M BIOS boot
>
> fstab:
> UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 /           ext4    defaults
>         1 1
> UUID=96187b22-1ad9-4d44-a35a-89b746e270ee /boot           ext4
> defaults        1 2
> /dev/sda3       swap                                            swap
>   defaults          0 0
> /dev/sdb3       swap                                            swap
>   defaults          0 0
>
> ### BEGIN /etc/grub.d/00_header ###
> insmod raid
> insmod mdraid09
> insmod mdraid1x
> set pager=1
>
> if [ -s $prefix/grubenv ]; then
>    load_env
> fi
> if [ "${next_entry}" ] ; then
>     set default="${next_entry}"
>     set next_entry=
>     save_env next_entry
>     set boot_once=true
> else
>     set default="0"
> fi
>
> if [ x"${feature_menuentry_id}" = xy ]; then
>    menuentry_id_option="--id"
> else
>    menuentry_id_option=""
> fi
>
> export menuentry_id_option
>
> if [ "${prev_saved_entry}" ]; then
>    set saved_entry="${prev_saved_entry}"
>    save_env saved_entry
>    set prev_saved_entry=
>    save_env prev_saved_entry
>    set boot_once=true
> fi
>
> function savedefault {
>    if [ -z "${boot_once}" ]; then
>      saved_entry="${chosen}"
>      save_env saved_entry
>    fi
> }
>
> function load_video {
>    if [ x$feature_all_video_module = xy ]; then
>      insmod all_video
>    else
>      insmod efi_gop
>      insmod efi_uga
>      insmod ieee1275_fb
>      insmod vbe
>      insmod vga
>      insmod video_bochs
>      insmod video_cirrus
>    fi
> }
>
> if [ x$feature_default_font_path = xy ] ; then
>     font=unicode
> else
> insmod part_gpt
> insmod part_gpt
> insmod diskfilter
> insmod mdraid1x
> insmod ext2
> set root='mduuid/485085777ca70c519fcb92fd471164a4'
> if [ x$feature_platform_search_hint = xy ]; then
>    search --no-floppy --fs-uuid --set=root
> --hint='mduuid/485085777ca70c519fcb92fd471164a4'
> 64ce5a40-bd28-460f-965b-ec43fd1eb2f7
> else
>    search --no-floppy --fs-uuid --set=root 64ce5a40-bd28-460f-965b-ec43fd1eb2f7
> fi
>      font="/usr/share/grub/unicode.pf2"
> fi
>
> if loadfont $font ; then
>    set gfxmode=auto
>    load_video
>    insmod gfxterm
>    set locale_dir=$prefix/locale
>    set lang=en_US
>    insmod gettext
> fi
> terminal_output gfxterm
> if [ x$feature_timeout_style = xy ] ; then
>    set timeout_style=menu
>    set timeout=5
> # Fallback normal timeout code in case the timeout_style feature is
> # unavailable.
> else
>    set timeout=5
> fi
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Fedora 22 (Twenty Two)' --class fedora --class gnu-linux
> --class gnu --class os --unrestricted $menuentry_id_option
> 'gnulinux-simple-64ce5a40-bd28-460f-965b-ec43fd1eb2f7' {
>      load_video
>      set gfxpayload=keep
>      insmod gzio
>      insmod part_gpt
>      insmod part_gpt
>      insmod diskfilter
>      insmod mdraid1x
>      insmod ext2
>      set root='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
>      if [ x$feature_platform_search_hint = xy ]; then
>        search --no-floppy --fs-uuid --set=root
> --hint='mduuid/7d1bec3121f39ea4c90f78a6083e81e9'
> 96187b22-1ad9-4d44-a35a-89b746e270ee
>      else
>        search --no-floppy --fs-uuid --set=root
> 96187b22-1ad9-4d44-a35a-89b746e270ee
>      fi
>      linux16 /vmlinuz-4.1.8-200.fc22.x86_64
> root=UUID=64ce5a40-bd28-460f-965b-ec43fd1eb2f7 ro
>      initrd16 /initramfs-4.1.8-200.fc22.x86_64.img
> }
>
> ### BEGIN /etc/grub.d/40_custom ###
> # This file provides an easy way to add custom menu entries.  Simply type the
> # menu entries you want to add after this comment.  Be careful not to change
> # the 'exec tail' line above.
> ### END /etc/grub.d/40_custom ###
>
> ### BEGIN /etc/grub.d/41_custom ###
> if [ -f  ${config_directory}/custom.cfg ]; then
>    source ${config_directory}/custom.cfg
> elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
>    source $prefix/custom.cfg;
> fi
> ### END /etc/grub.d/41_custom ###
>


More information about the users mailing list