Unlike my other long discussion/thread, this is a different instance of a Fedora 29 → 30 upgrade failing. The server was just rebooting with a very quick Grub error that I could not capture. The drives are configured in a software RAID 10 set up, so I’m needing help how to get Grub repaired. When I mount
It boots now to a grub-rescue prompt, but I then booted to a Fedora 30 Live DVD and chose Troubleshooting. Where should I start?
fdisk -l
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x00089e1c
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 6143 4096 2M 83 Linux
/dev/sda2 * 6144 1030143 1024000 500M 83 Linux
/dev/sda3 1030144 1639430143 1638400000 781.3G fd Linux raid autodetect
/dev/sda4 1639430144 3907028991 2267598848 1.1T 5 Extended
/dev/sda5 1639434240 3804579839 2165145600 1T fd Linux raid autodetect
/dev/sda6 3804581888 3906981887 102400000 48.8G 83 Linux
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x0009cb2d
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 1638402047 1638400000 781.3G fd Linux raid autodetect
/dev/sdb2 1638402048 3803547647 2165145600 1T fd Linux raid autodetect
Disk /dev/sdc: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x0008ca54
Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 1638402047 1638400000 781.3G fd Linux raid autodetect
/dev/sdc2 1638402048 3803547647 2165145600 1T fd Linux raid autodetect
Disk /dev/sdd: 1.8 TiB, 2000398934016 bytes, 3907029168 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: dos
Disk identifier: 0x000a8dd9
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 1638402047 1638400000 781.3G fd Linux raid autodetect
/dev/sdd2 1638402048 3803547647 2165145600 1T fd Linux raid autodetect
/dev/sdd3 3803547648 3873179647 69632000 33.2G 82 Linux swap / Solaris
Disk /dev/loop0: 1.6 GiB, 1686425600 bytes, 3293800 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
Disk /dev/loop1: 6.5 GiB, 6981419008 bytes, 13635584 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
Disk /dev/loop2: 32 GiB, 34359738368 bytes, 67108864 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
Disk /dev/mapper/live-rw: 6.5 GiB, 6981419008 bytes, 13635584 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
Disk /dev/mapper/live-base: 6.5 GiB, 6981419008 bytes, 13635584 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
Disk /dev/md127: 2 TiB, 2217105948672 bytes, 4330285056 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
Disk /dev/md126: 1.5 TiB, 1677718454272 bytes, 3276793856 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 1.6G 1 loop
loop1 7:1 0 6.5G 1 loop
├─live-rw 253:0 0 6.5G 0 dm /
└─live-base 253:1 0 6.5G 1 dm
loop2 7:2 0 32G 0 loop
└─live-rw 253:0 0 6.5G 0 dm /
sda 8:0 0 1.8T 0 disk
├─sda1 8:1 0 2M 0 part
├─sda2 8:2 0 500M 0 part
├─sda3 8:3 0 781.3G 0 part
│ └─md126 9:126 0 1.5T 0 raid10
├─sda4 8:4 0 1K 0 part
├─sda5 8:5 0 1T 0 part
│ └─md127 9:127 0 2T 0 raid10
└─sda6 8:6 0 48.8G 0 part
sdb 8:16 0 1.8T 0 disk
├─sdb1 8:17 0 781.3G 0 part
│ └─md126 9:126 0 1.5T 0 raid10
└─sdb2 8:18 0 1T 0 part
└─md127 9:127 0 2T 0 raid10
sdc 8:32 0 1.8T 0 disk
├─sdc1 8:33 0 781.3G 0 part
│ └─md126 9:126 0 1.5T 0 raid10
└─sdc2 8:34 0 1T 0 part
└─md127 9:127 0 2T 0 raid10
sdd 8:48 0 1.8T 0 disk
├─sdd1 8:49 0 781.3G 0 part
│ └─md126 9:126 0 1.5T 0 raid10
├─sdd2 8:50 0 1T 0 part
│ └─md127 9:127 0 2T 0 raid10
└─sdd3 8:51 0 33.2G 0 part [SWAP]
sr0 11:0 1 4.4G 0 rom /run/initramfs/live
Edit some more:
cat /proc/mdstat
Personalities : [raid10]
md126 : active (auto-read-only) raid10 sdb1[1] sda3[0] sdd1[3] sdc1[2]
1638396928 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
bitmap: 0/13 pages [0KB], 65536KB chunk
md127 : active (auto-read-only) raid10 sdb2[1] sdc2[2] sda5[0] sdd2[3]
2165142528 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
bitmap: 0/17 pages [0KB], 65536KB chunk
Trying to us this how to but I can’t tell where the root file partition system is. Edit: found it, see below.
ls -l /dev/dm-0
brw-rw----. 1 root disk 253, 0 Jun 13 2019 /dev/dm-0
[root@localhost-live liveuser]# ls -l /dev/dm-1
brw-rw----. 1 root disk 253, 1 Jun 13 2019 /dev/dm-1
[root@localhost-live liveuser]# ls -l /dev/dm-2
ls: cannot access '/dev/dm-2': No such file or directory
[root@localhost-live liveuser]# cat /sys/class/block/dm-0/dm/name
live-rw
[root@localhost-live liveuser]# cat /sys/class/block/dm-1/dm/name
live-base
[root@localhost-live liveuser]# dmsetup table
live-base: 0 13635584 linear 7:1 0
live-rw: 0 13635584 snapshot 7:1 7:2 PO 8
That last one seems to be the DVD.
Update: /dev/sda6
contains the root partition, so I mounted it as well /dev/sda2
for boot. grub2-mkconfig –o /boot/grub2/grub.conf
errors with:
### BEGIN /etc/grub.d/30_os-prober ###
mkdir: cannot create directory ‘/var/lib/os-prober/mount’: No such file or directory
mkdir: cannot create directory ‘/var/lib/os-prober/mount’: No such file or directory
### END /etc/grub.d/30_os-prober ###
/var
is on a separate partition:
UUID=d7fb7755-f5c1-4e67-bc13-9e8d87634a40 / ext4 defaults 1 1
UUID=cdec73cb-1375-43c9-b20f-2a7e0ecf97cb /boot ext4 defaults 1 2
UUID=e6c3c501-3839-474b-bc0b-12428b7c1d7f /home ext4 defaults 1 2
UUID=e26a7ec3-7b9c-4600-96ed-7c973dd4796f /var ext4 defaults 1 2
UUID=b16f6528-af27-49e0-9565-41abaf512286 swap swap defaults 0 0