grub lvmid disk not found using mdraid+lvm
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Doing a clean install of ubuntu server 18.10 alt install, with gpt -> mdraid -> lvm -> btrfs. Installer completes successfully, grub-install completes successfully, but upon first boot I receive a grub "lvmid disk not found" error and thrown into the recovery console.
I know this setup is complex and perhaps not ideal, that aside, I've had it work in the past without issues or modification after installer.
I have tried the following, all resulting in the same lvmid not found error in grub:
- making a separate /boot LV with ext4 instead of btrfs
- setting root=UUID=xxx in /etc/default grub
- preloading lvm/mdraid modules in /etc/default/grub
- not using btrfs subvolumes in root (although should be an issue as ubuntu creates them by default)
- using raid5 only (not mixing raid1/5 for PV)
- running update-initramfs from chroot
Also, a little background as to why I'm doing the partitions/raid/lvm as I am can be found here: https:/
Setup is as follows:
=== /ets/fstab
/dev/mapper/
/dev/mapper/
/dev/mapper/
=== blkid
/dev/sda1: PARTUUID=
/dev/sda2: UUID="ad79a45d-
/dev/sda3: UUID="649390e4-
/dev/sda4: UUID="b6863d97-
/dev/sdc1: PARTUUID=
/dev/sdc2: UUID="ad79a45d-
/dev/sdc3: UUID="649390e4-
/dev/sdc4: UUID="b6863d97-
/dev/sdd1: PARTUUID=
/dev/sdd2: UUID="649390e4-
/dev/sde1: PARTUUID=
/dev/sde2: UUID="ad79a45d-
/dev/md127: UUID="H10Yrl-
/dev/md126: UUID="Sm53JC-
/dev/md125: UUID="vhvdNY-
/dev/mapper/
/dev/mapper/
=== lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 819.5M 1 loop
sda 8:0 0 3.7T 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1.8T 0 part
│ └─md127 9:127 0 3.7T 0 raid5
│ ├─vg1-swap 253:0 0 3.7G 0 lvm
│ └─vg1-root 253:1 0 6.4T 0 lvm /
├─sda3 8:3 0 931.2G 0 part
│ └─md125 9:125 0 1.8T 0 raid5
│ └─vg1-root 253:1 0 6.4T 0 lvm /
└─sda4 8:4 0 931.2G 0 part
└─md126 9:126 0 931.1G 0 raid1
└─vg1-root 253:1 0 6.4T 0 lvm /
sdb 8:16 1 7.5G 0 disk
├─sdb1 8:17 1 871M 0 part
└─sdb2 8:18 1 1.4M 0 part
sdc 8:32 0 3.7T 0 disk
├─sdc1 8:33 0 1M 0 part
├─sdc2 8:34 0 1.8T 0 part
│ └─md127 9:127 0 3.7T 0 raid5
│ ├─vg1-swap 253:0 0 3.7G 0 lvm
│ └─vg1-root 253:1 0 6.4T 0 lvm /
├─sdc3 8:35 0 931.2G 0 part
│ └─md125 9:125 0 1.8T 0 raid5
│ └─vg1-root 253:1 0 6.4T 0 lvm /
└─sdc4 8:36 0 931.2G 0 part
└─md126 9:126 0 931.1G 0 raid1
└─vg1-root 253:1 0 6.4T 0 lvm /
sdd 8:48 0 931.5G 0 disk
├─sdd1 8:49 0 1M 0 part
└─sdd2 8:50 0 931.2G 0 part
└─md125 9:125 0 1.8T 0 raid5
└─vg1-root 253:1 0 6.4T 0 lvm /
sde 8:64 0 1.8T 0 disk
├─sde1 8:65 0 1M 0 part
└─sde2 8:66 0 1.8T 0 part
└─md127 9:127 0 3.7T 0 raid5
├─vg1-swap 253:0 0 3.7G 0 lvm
└─vg1-root 253:1 0 6.4T 0 lvm /
=== mdstat
Personalities : [raid1] [raid6] [raid5] [raid4]
md125 : active (auto-read-only) raid5 sdc3[1] sda3[0] sdd2[2]
1952665600 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
bitmap: 8/8 pages [32KB], 65536KB chunk
md126 : active (auto-read-only) raid1 sdc4[1] sda4[0]
976332800 blocks super 1.2 [2/2] [UU]
bitmap: 8/8 pages [32KB], 65536KB chunk
md127 : active (auto-read-only) raid5 sde2[2] sdc2[1] sda2[0]
3905789952 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/3] [UUU]
bitmap: 8/15 pages [32KB], 65536KB chunk
=== dmsetup ls
vg1-swap (253:0)
vg1-root (253:1)
=== pvs
PV VG Fmt Attr PSize PFree
/dev/md125 vg1 lvm2 a-- <1.82t 0
/dev/md126 vg1 lvm2 a-- 931.10g 0
/dev/md127 vg1 lvm2 a-- <3.64t 0
=== vgs
VG #PV #LV #SN Attr VSize VFree
vg1 3 2 0 wz--n- <6.37t 0
=== lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root vg1 -wi-ao---- 6.36t
swap vg1 -wi-a----- 3.72g
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: grub2-common 2.02+dfsg1-
Uname: Linux 4.19.24-1-lts x86_64
NonfreeKernelMo
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
Date: Mon Mar 11 11:25:02 2019
InstallationDate: Installed on 2019-03-11 (0 days ago)
InstallationMedia: Ubuntu-Server 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.2)
ProcEnviron:
TERM=screen-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.