Hello, On Wed, May 22, 2024 at 08:57:38AM +0200, Marc SCHAEFER wrote: > I will try this work-around and report back here. As I said, I can > live with /boot on RAID without dm-integrity, as long as the rest can be > dm-integrity+raid protected.
So, enable dm-integrity on all LVs, including /, /var/lib/lxc, /scratch and swap, now boots without any issue with grub2 as long as /boot is NOT on the same VG where the dm-integrity over LVM RAID is enabled. This is OK for me, I don't need /boot on dm-integrity. update-grub gives out warning for every of the rimage subvolumes, but can still then reboot. I would guess the bug is thus in grub2, not yet supporting boot on a /boot not necessarily dm-integrityfied itself, but on a VG where any of the LV is. Are readers seconding conclusion? If yes, I could report a bug on grub2. Have a nice day. Details: root@ds-03:~# lvs -a LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert docker vg1 rwi-aor--- 500.00g 100.00 [docker_rimage_0] vg1 gwi-aor--- 500.00g [docker_rimage_0_iorig] 100.00 [docker_rimage_0_imeta] vg1 ewi-ao---- <4.07g [docker_rimage_0_iorig] vg1 -wi-ao---- 500.00g [docker_rimage_1] vg1 gwi-aor--- 500.00g [docker_rimage_1_iorig] 100.00 [docker_rimage_1_imeta] vg1 ewi-ao---- <4.07g [docker_rimage_1_iorig] vg1 -wi-ao---- 500.00g [docker_rmeta_0] vg1 ewi-aor--- 4.00m [docker_rmeta_1] vg1 ewi-aor--- 4.00m root vg1 rwi-aor--- 10.00g 100.00 [root_rimage_0] vg1 gwi-aor--- 10.00g [root_rimage_0_iorig] 100.00 [root_rimage_0_imeta] vg1 ewi-ao---- 148.00m [root_rimage_0_iorig] vg1 -wi-ao---- 10.00g [root_rimage_1] vg1 gwi-aor--- 10.00g [root_rimage_1_iorig] 100.00 [root_rimage_1_imeta] vg1 ewi-ao---- 148.00m [root_rimage_1_iorig] vg1 -wi-ao---- 10.00g [root_rmeta_0] vg1 ewi-aor--- 4.00m [root_rmeta_1] vg1 ewi-aor--- 4.00m scratch vg1 rwi-aor--- 10.00g 100.00 [scratch_rimage_0] vg1 gwi-aor--- 10.00g [scratch_rimage_0_iorig] 100.00 [scratch_rimage_0_imeta] vg1 ewi-ao---- 148.00m [scratch_rimage_0_iorig] vg1 -wi-ao---- 10.00g [scratch_rimage_1] vg1 gwi-aor--- 10.00g [scratch_rimage_1_iorig] 100.00 [scratch_rimage_1_imeta] vg1 ewi-ao---- 148.00m [scratch_rimage_1_iorig] vg1 -wi-ao---- 10.00g [scratch_rmeta_0] vg1 ewi-aor--- 4.00m [scratch_rmeta_1] vg1 ewi-aor--- 4.00m swap vg1 rwi-aor--- 8.00g 100.00 [swap_rimage_0] vg1 gwi-aor--- 8.00g [swap_rimage_0_iorig] 100.00 [swap_rimage_0_imeta] vg1 ewi-ao---- 132.00m [swap_rimage_0_iorig] vg1 -wi-ao---- 8.00g [swap_rimage_1] vg1 gwi-aor--- 8.00g [swap_rimage_1_iorig] 100.00 [swap_rimage_1_imeta] vg1 ewi-ao---- 132.00m [swap_rimage_1_iorig] vg1 -wi-ao---- 8.00g [swap_rmeta_0] vg1 ewi-aor--- 4.00m [swap_rmeta_1] vg1 ewi-aor--- 4.00m root@ds-03:~# df # filtered Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg1-root 10218772 2863956 6814144 30% / /dev/nvme0n1p1 446282 109365 308450 27% /boot /dev/mapper/vg1-scratch 10218772 24 9678076 1% /scratch /dev/mapper/vg1-docker 514937088 805892 487900412 1% /var/lib/docker /dev/nvme1n1p1 486456 5972 480484 2% /boot/efi