Repair bootloader after disk failure in software RAID

General support questions
Post Reply
Typhome
Posts: 27
Joined: 2016/07/09 08:34:03

Repair bootloader after disk failure in software RAID

Post by Typhome » 2022/02/04 20:18:15

Hello, we had disk failure where second faulty hard drive (/dev/sdb) was replaced with new hard drive by hot swap.

What we did...

Remove faulty hard drive (/dev/sdb) from RAID array

Code: Select all

# mdadm /dev/md0 -r /dev/sdb1
# mdadm --manage /dev/md1 --fail /dev/sdb2
# mdadm /dev/md1 -r /dev/sdb2
# mdadm /dev/md2 -r /dev/sdb3
... after faulty hard drive replacement ...

Copy partition table from first hard drive (/dev/sda) to second new hard drive (/dev/sdb)

Code: Select all

# sfdisk -d /dev/sda | sfdisk /dev/sdb
Add second new hard drive (/dev/sdb) to RAID array

Code: Select all

# mdadm /dev/md0 -a /dev/sdb1
# mdadm /dev/md1 -a /dev/sdb2
# mdadm /dev/md2 -a /dev/sdb3
RAID array was being rebuilt which was later finished.

Code: Select all

[root@centos ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sdb3[2] sda3[0]
      1919302720 blocks super 1.2 [2/1] [U_]
        resync=DELAYED
      bitmap: 15/15 pages [60KB], 65536KB chunk

md1 : active raid1 sdb2[2] sda2[0]
      523712 blocks super 1.2 [2/1] [U_]
        resync=DELAYED

md0 : active raid1 sdb1[2] sda1[0]
      33521664 blocks super 1.2 [2/1] [U_]
      [=>...................]  recovery =  8.3% (2801024/33521664) finish=3.8min speed=133382K/sec

unused devices: <none>
Then we ran:

Code: Select all

grub2-install /dev/sdb
After system reboot it could not boot up, it was stuck in grub (grub> prompt). No errors.

https://i.imgur.com/ifbNLeL.png
https://i.imgur.com/Cqk4iei.png

We tried to figure out why it could not boot up. Then we finally tried to boot from second hard drive. And it was able to boot CentOS 7.9.2009.

So it means that first hard drive (/dev/sda) bootloader is broken.

How we can fix bootloader on first hard drive? Or how to clone bootloader from second hard drive (/dev/sdb) to first hard drive (/dev/sda) since working bootloader is on second hard drive?

Code: Select all

[root@centos ~]# lsblk -f
NAME    FSTYPE            LABEL    UUID                                 MOUNTPOINT
sda
├─sda1  linux_raid_member rescue:0 ecde68fc-9d21-588e-555f-b15ed14c49af
│ └─md0 swap                       6b6bb481-a1cc-4d10-afcb-f76a1cab1b61 [SWAP]
├─sda2  linux_raid_member rescue:1 5816f9f5-3863-7b16-c0e3-47db6d24e07e
│ └─md1 ext3                       21c76857-40c2-4c27-87d2-f90205e78870 /boot
└─sda3  linux_raid_member rescue:2 6d206d54-8978-174e-58c6-697d15f600fc
  └─md2 ext4                       052a070b-dc36-47c5-a7cb-d13a1f80fe1c /
sdb
├─sdb1  linux_raid_member rescue:0 ecde68fc-9d21-588e-555f-b15ed14c49af
│ └─md0 swap                       6b6bb481-a1cc-4d10-afcb-f76a1cab1b61 [SWAP]
├─sdb2  linux_raid_member rescue:1 5816f9f5-3863-7b16-c0e3-47db6d24e07e
│ └─md1 ext3                       21c76857-40c2-4c27-87d2-f90205e78870 /boot
└─sdb3  linux_raid_member rescue:2 6d206d54-8978-174e-58c6-697d15f600fc
  └─md2 ext4                       052a070b-dc36-47c5-a7cb-d13a1f80fe1c /

Code: Select all

[root@centos ~]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda3[0] sdb3[2]
      1919302720 blocks super 1.2 [2/2] [UU]
      bitmap: 13/15 pages [52KB], 65536KB chunk

md0 : active raid1 sda1[0] sdb1[2]
      33521664 blocks super 1.2 [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[2]
      523712 blocks super 1.2 [2/2] [UU]

unused devices: <none>

Code: Select all

[root@centos ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@centos ~]# uname -a
Linux 3.10.0-693.21.1.el7.x86_64 #1 SMP Wed Mar 7 19:03:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Code: Select all

[root@centos ~]# cat /etc/mdadm.conf
DEVICE partitions
MAILADDR root
ARRAY /dev/md/0  metadata=1.2 UUID=ecde68fc:9d21588e:555fb15e:d14c49af name=rescue:0
ARRAY /dev/md/1  metadata=1.2 UUID=5816f9f5:38637b16:c0e347db:6d24e07e name=rescue:1
ARRAY /dev/md/2  metadata=1.2 UUID=6d206d54:8978174e:58c6697d:15f600fc name=rescue:2

Code: Select all

[root@centos ~]# cat /boot/grub2/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
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="${saved_entry}"
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
}

terminal_output console
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/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'CentOS Linux (3.10.0-693.21.1.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.21.1.el7.x86_64-advanced-052a070b-dc36-47c5-a7cb-d13a1f80fe1c' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/5816f9f538637b16c0e347db6d24e07e'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/5816f9f538637b16c0e347db6d24e07e'  21c76857-40c2-4c27-87d2-f90205e78870
        else
          search --no-floppy --fs-uuid --set=root 21c76857-40c2-4c27-87d2-f90205e78870
        fi
        linux16 /vmlinuz-3.10.0-693.21.1.el7.x86_64 root=UUID=052a070b-dc36-47c5-a7cb-d13a1f80fe1c ro biosdevname=0 crashkernel=auto nomodeset rd.auto=1 consoleblank=0
        initrd16 /initramfs-3.10.0-693.21.1.el7.x86_64.img
}
menuentry 'CentOS Linux (3.10.0-693.11.6.el7.x86_64) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-3.10.0-693.11.6.el7.x86_64-advanced-052a070b-dc36-47c5-a7cb-d13a1f80fe1c' {
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/5816f9f538637b16c0e347db6d24e07e'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/5816f9f538637b16c0e347db6d24e07e'  21c76857-40c2-4c27-87d2-f90205e78870
        else
          search --no-floppy --fs-uuid --set=root 21c76857-40c2-4c27-87d2-f90205e78870
        fi
        linux16 /vmlinuz-3.10.0-693.11.6.el7.x86_64 root=UUID=052a070b-dc36-47c5-a7cb-d13a1f80fe1c ro biosdevname=0 crashkernel=auto nomodeset rd.auto=1 consoleblank=0
        initrd16 /initramfs-3.10.0-693.11.6.el7.x86_64.img
}
menuentry 'CentOS Linux (0-rescue-9063ac396d784f4c997ceacdd0590c25) 7 (Core)' --class centos --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-9063ac396d784f4c997ceacdd0590c25-advanced-052a070b-dc36-47c5-a7cb-d13a1f80fe1c' {
        load_video
        insmod gzio
        insmod part_msdos
        insmod part_msdos
        insmod diskfilter
        insmod mdraid1x
        insmod ext2
        set root='mduuid/5816f9f538637b16c0e347db6d24e07e'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint='mduuid/5816f9f538637b16c0e347db6d24e07e'  21c76857-40c2-4c27-87d2-f90205e78870
        else
          search --no-floppy --fs-uuid --set=root 21c76857-40c2-4c27-87d2-f90205e78870
        fi
        linux16 /vmlinuz-0-rescue-9063ac396d784f4c997ceacdd0590c25 root=UUID=052a070b-dc36-47c5-a7cb-d13a1f80fe1c ro biosdevname=0 crashkernel=auto nomodeset rd.auto=1 consoleblank=0
        initrd16 /initramfs-0-rescue-9063ac396d784f4c997ceacdd0590c25.img
}
if [ "x$default" = 'CentOS Linux (3.10.0-693.21.1.el7.x86_64) 7 (Core)' ]; then default='Advanced options for CentOS Linux>CentOS Linux (3.10.0-693.21.1.el7.x86_64) 7 (Core)'; fi;
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### 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 ###

Code: Select all

[root@centos ~]# cat /etc/fstab
proc /proc proc defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/md/0 none swap sw 0 0
/dev/md/1 /boot ext3 defaults 0 0
/dev/md/2 / ext4 defaults 0 0

Code: Select all

[root@centos ~]# ls -al /boot
total 186959
dr-xr-xr-x. 10 root root     1024 Feb  4 08:26 .
dr-xr-xr-x  19 root root     4096 Feb  4 08:53 ..
-rw-------   1 root root      437 Feb  4 06:45 .bash_history
-rw-r--r--   1 root root   140915 Jan  4  2018 config-3.10.0-693.11.6.el7.x86_64
-rw-r--r--   1 root root   140971 Mar  7  2018 config-3.10.0-693.21.1.el7.x86_64
drwxr-xr-x   2 root root     1024 Feb  4 04:53 dev
drwxr-xr-x.  3 root root     1024 Sep 18  2017 efi
drwxr-xr-x.  2 root root     1024 Feb 27  2018 grub
drwx------.  5 root root     1024 Feb  4 08:30 grub2
-rw-------.  1 root root 51313370 Sep 18  2017 initramfs-0-rescue-9063ac396d784f4c997ceacdd0590c25.img
-rw-------   1 root root 41220097 Feb  4 08:26 initramfs-3.10.0-693.11.6.el7.x86_64.img
-rw-------   1 root root 18230230 Feb 27  2018 initramfs-3.10.0-693.11.6.el7.x86_64kdump.img
-rw-------   1 root root 41293414 Feb  4 08:26 initramfs-3.10.0-693.21.1.el7.x86_64.img
-rw-------   1 root root 13561382 Jun 12  2021 initramfs-3.10.0-693.21.1.el7.x86_64kdump.img
drwx------   2 root root    12288 Feb 27  2018 lost+found
drwxr-xr-x   2 root root     1024 Feb  4 04:53 proc
drwxr-xr-x   2 root root     1024 Feb  4 04:53 run
-rw-r--r--   1 root root   293110 Jan  4  2018 symvers-3.10.0-693.11.6.el7.x86_64.gz
-rw-r--r--   1 root root   293361 Mar  7  2018 symvers-3.10.0-693.21.1.el7.x86_64.gz
drwxr-xr-x   2 root root     1024 Feb  4 04:53 sys
-rw-------   1 root root  3232490 Jan  4  2018 System.map-3.10.0-693.11.6.el7.x86_64
-rw-------   1 root root  3237433 Mar  7  2018 System.map-3.10.0-693.21.1.el7.x86_64
-rwxr-xr-x.  1 root root  5877760 Sep 18  2017 vmlinuz-0-rescue-9063ac396d784f4c997ceacdd0590c25
-rwxr-xr-x   1 root root  5889728 Jan  4  2018 vmlinuz-3.10.0-693.11.6.el7.x86_64
-rw-r--r--   1 root root      171 Jan  4  2018 .vmlinuz-3.10.0-693.11.6.el7.x86_64.hmac
-rwxr-xr-x   1 root root  5917504 Mar  7  2018 vmlinuz-3.10.0-693.21.1.el7.x86_64
-rw-r--r--   1 root root      171 Mar  7  2018 .vmlinuz-3.10.0-693.21.1.el7.x86_64.hmac

Whoever
Posts: 1357
Joined: 2013/09/06 03:12:10

Re: Repair bootloader after disk failure in software RAID

Post by Whoever » 2022/02/05 17:07:03

Did you try simply reinstalling grub on /dev/sda?

You need to be very careful that you know which drive is which. Just because a drive came up as /dev/sda one time does not mean that it will continue to do so, especially if you swap out a drive.

Typhome
Posts: 27
Joined: 2016/07/09 08:34:03

Re: Repair bootloader after disk failure in software RAID

Post by Typhome » 2022/02/06 20:25:04

Whoever wrote:
2022/02/05 17:07:03
Did you try simply reinstalling grub on /dev/sda?

You need to be very careful that you know which drive is which. Just because a drive came up as /dev/sda one time does not mean that it will continue to do so, especially if you swap out a drive.
No, I did grub2-install on only new hard drive (/dev/sdb).

Anyway I did grub2-install /dev/sda and installation was finished without any errors. I will request KVM console before I try to reboot to check if problem is fixed.

Code: Select all

# grub2-install /dev/sda
Installing for i386-pc platform.
Installation finished. No error reported.
Edit: grub2-install /dev/sda fixed this problem. After rebooting server comes back up without any problems.

Next time I'll do grub2-install on both drives after drive replacement.

octet
Posts: 1
Joined: 2022/10/30 21:41:31

Re: Repair bootloader after disk failure in software RAID

Post by octet » 2022/10/30 21:52:18

Hi,

I have a similar situation, but the first drive failed /dev/sda1. It was swapped in the data centre, I've added it back into the Raid1, all synced, but the system doesn't boot, gets stuck on: rEFInd - Initializing...

I've reinstalled grub2

Some further info:

Code: Select all

[root@rescue /]# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty] 
md2 : active raid1 sda2[0] sdb2[1]
      20478912 blocks [2/2] [UU]
      
md3 : active raid1 sda3[0] sdb3[1]
      1931981760 blocks [2/2] [UU]
      bitmap: 1/15 pages [4KB], 65536KB chunk

unused devices: <none>

Code: Select all

[root@rescue /]# lsblk -f
NAME    FSTYPE LABEL UUID MOUNTPOINT
sdb                       
├─sdb4                    
├─sdb2                    
│ └─md2                   /
├─sdb3                    
│ └─md3                   /var
└─sdb1                    /boot/efi
sda                       
├─sda4                    
├─sda2                    
│ └─md2                   /
├─sda3                    
│ └─md3                   /var
└─sda1                    
[root@rescue /]# 

Code: Select all

[root@rescue /]# cat /etc/fstab 
# <file system>	<mount point>	<type>	<options>	<dump>	<pass>
/dev/md2	/		ext4	errors=remount-ro	0	1
/dev/md3	/var		ext4	defaults	1	2
/dev/sda4	swap		swap	defaults	0	0
/dev/sdb4	swap		swap	defaults	0	0
proc		/proc		proc	defaults	0	0
sysfs		/sys		sysfs	defaults	0	0
/dev/sdb1	/boot/efi	vfat	defaults	0	0
tmpfs		/dev/shm	tmpfs	defaults	0	0
devpts		/dev/pts	devpts	defaults	0	0
[root@rescue /]# 

Code: Select all

[root@rescue /]# uname -a
Linux rescue.ovh.net 5.15.55-mod-std #2494548 SMP Thu Sep 29 07:59:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
[root@rescue /]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@rescue /]# 

Code: Select all

[root@rescue /]# efibootmgr -v
BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 000A,0003,0000,0001,0002,0004,0005,0006,0007,0008
Boot0000* Enter Setup	FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(462caa21-7614-4503-836e-8ab6f4662331)
Boot0001  Boot Device List	FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(eec25bdc-67f2-4d95-b1d5-f81b2039d11d)$.I.B.T...
Boot0002  Network Boot	FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(9e09e6fd-4e16-6468-9b78-bdaeaf609cff)$.I.B.T...
Boot0003* UEFI IPv4: Intel I210 Network 00 at Baseboard	/Pci(0x1d,0x2)/Pci(0x0,0x0)/MAC(a4bf011e32b8,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.
Boot0004* UEFI IPv6: Intel I210 Network 00 at Baseboard	/Pci(0x1d,0x3)/Pci(0x0,0x0)/MAC(a4bf011e32b9,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.
Boot0005* Launch EFI Shell	FvVol(cdbb7b35-6833-4ed6-9ab2-57d2acddf6f0)/FvFile(c57ad6b7-0515-40a8-9d21-551652854e37)
Boot0006* UEFI IPv4: Intel I210 Network 00 at Baseboard 2	/Pci(0x1d,0x3)/Pci(0x0,0x0)/MAC(a4bf011e32b9,0)/IPv4(0.0.0.00.0.0.0,0,0)N.....YM....R,Y.
Boot0007* UEFI IPv6: Intel I210 Network 00 at Baseboard 2	/Pci(0x1d,0x2)/Pci(0x0,0x0)/MAC(a4bf011e32b8,0)/IPv6([::]:<->[::]:,0,0)N.....YM....R,Y.
Boot0008* UEFI HGST HUS726020ALA610 K5H3V05A 	/Pci(0x17,0x0)/Sata(1,0,0)N.....YM....R,Y.
Boot0009* CentOS-SDB	HD(1,GPT,99930dab-2914-44d0-bbcf-503bf1d9bc61,0x800,0xff800)/File(\EFI\centos\grubx64.efi)
Boot000A* CentOS Linux	HD(1,GPT,99930dab-2914-44d0-bbcf-503bf1d9bc61,0x800,0xff800)/File(\EFI\centos\shimx64.efi)
[root@rescue /]# 

Code: Select all

root@rescue:~# ls -la /dev/disk/by-partuuid/
total 0
drwxr-xr-x 2 root root 200 Oct 30 19:08 .
drwxr-xr-x 7 root root 140 Oct 30 19:08 ..
lrwxrwxrwx 1 root root  10 Oct 30 19:08 07567c5f-6865-424b-9947-cb73f49cfefc -> ../../sda4
lrwxrwxrwx 1 root root  10 Oct 30 19:35 15e7cbe2-5b08-41d8-9a8d-1ce6bac4a9a4 -> ../../sda1
lrwxrwxrwx 1 root root  10 Oct 30 19:08 2bc6e3ee-3c3f-4a3c-9ddb-76e2facd7abe -> ../../sda3
lrwxrwxrwx 1 root root  10 Oct 30 19:08 99930dab-2914-44d0-bbcf-503bf1d9bc61 -> ../../sdb1
lrwxrwxrwx 1 root root  10 Oct 30 19:08 c9cd31af-a038-46e6-bb21-2cf2c6a519b5 -> ../../sdb2
lrwxrwxrwx 1 root root  10 Oct 30 19:08 ddb86911-459a-4fac-9c95-6f367795d9a6 -> ../../sda2
lrwxrwxrwx 1 root root  10 Oct 30 19:08 e3e4d6e9-b704-4c35-ab45-9dbfb12d85f4 -> ../../sdb4
lrwxrwxrwx 1 root root  10 Oct 30 19:08 fed0d89a-1af6-403a-aa75-e55792eec254 -> ../../sdb3
root@rescue:~# 

Code: Select all

[root@rescue /]# blkid
/dev/sda2: UUID="0d03e850-1bc5-949d-a4d2-adc226fd5302" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="ddb86911-459a-4fac-9c95-6f367795d9a6" 
/dev/sda3: UUID="c9704c96-8713-99a0-a4d2-adc226fd5302" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="2bc6e3ee-3c3f-4a3c-9ddb-76e2facd7abe" 
/dev/sdb1: LABEL="EFI_SYSPART" UUID="AC3B-6D6F" TYPE="vfat" PARTLABEL="primary" PARTUUID="99930dab-2914-44d0-bbcf-503bf1d9bc61" 
/dev/sdb2: UUID="0d03e850-1bc5-949d-a4d2-adc226fd5302" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="c9cd31af-a038-46e6-bb21-2cf2c6a519b5" 
/dev/sdb3: UUID="c9704c96-8713-99a0-a4d2-adc226fd5302" TYPE="linux_raid_member" PARTLABEL="primary" PARTUUID="fed0d89a-1af6-403a-aa75-e55792eec254" 
/dev/sdb4: LABEL="swap-sdb4" UUID="18039553-6efe-4fc8-921b-7553744dd908" TYPE="swap" PARTLABEL="primary" PARTUUID="e3e4d6e9-b704-4c35-ab45-9dbfb12d85f4" 
/dev/sda1: PARTLABEL="primary" PARTUUID="15e7cbe2-5b08-41d8-9a8d-1ce6bac4a9a4" 
/dev/sda4: PARTLABEL="primary" PARTUUID="07567c5f-6865-424b-9947-cb73f49cfefc" 
[root@rescue /]# 

Code: Select all

[root@rescue /]# cat /etc/mdadm.conf 
ARRAY /dev/md2 UUID=0d03e850:1bc5949d:a4d2adc2:26fd5302
ARRAY /dev/md3 UUID=c9704c96:871399a0:a4d2adc2:26fd5302
When trying to reinstall grub2, I can't get over this:

Code: Select all

[root@rescue /]# grub2-install /dev/sda
Installing for x86_64-efi platform.
grub2-install: error: failed to get canonical path of `/dev/md2'.
[root@rescue /]# 
Any ideas what else I could try while booted in rescue mode?

Thanks!

Post Reply