Bug 215353 - VMWare LVM partitions not recognized, sees base disk, fails to Boot
Summary: VMWare LVM partitions not recognized, sees base disk, fails to Boot
Status: RESOLVED CODE_FIX
Alias: None
Product: SCSI Drivers
Classification: Unclassified
Component: Other (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: scsi_drivers-dc395x
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-17 20:36 UTC by Rich Reamer
Modified: 2022-02-01 18:15 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.4.126+ & 5.13.x+
Subsystem:
Regression: No
Bisected commit-id:


Attachments
vmware specs (86.26 KB, image/png)
2022-01-19 20:07 UTC, Rich Reamer
Details
boot failure (304.73 KB, image/png)
2022-01-19 20:07 UTC, Rich Reamer
Details

Description Rich Reamer 2021-12-17 20:36:40 UTC
Hello, 

VMWare LVM partitions are not recognized by the 5.4.126+ LT kernels; it sees the base /dev/sda disk, but thats its, stalls, fails to Boot trying to access "/dev/mapper/...."

Kernels 5.4.125 and prior DO WORK, but 5.4.126+ DO NOT.

I have been able to isolate the kernel failing to commit "1e209effe36cbf0a939844bcf9defd3fe1e2f593" in LT kernel 5.4.126.

[And Yes the "rd.lvm.lv=" and VG/LV names match the grub line (ie. lvs -o vg_name,lv_name)]

So commit "1e209effe36cbf0a939844bcf9defd3fe1e2f593" BREAKS kernel recognition of VMWare LVM partitions (but yes kernel DOES see /dev/sda but thats it).

This is on ESX 6.7.

Thanks
Comment 1 Rich Reamer 2021-12-20 19:43:19 UTC
Forgot to add other specs (if it helps) ...
Centos 7.9.2009 (though i dont think minor version matters)
LVM 2.02.187
Comment 2 Rich Reamer 2022-01-19 20:06:55 UTC
Update: Testing with Kernel 5.13.x (specifically 5.13.13) - Still fails to Pickup LVM partitions on /dev/sda (which is detected) in VMWare.

VM Container Specs: attached in screen print
Where boot stops loading: attached in screen print
Comment 3 Rich Reamer 2022-01-19 20:07:34 UTC
Created attachment 300289 [details]
vmware specs
Comment 4 Rich Reamer 2022-01-19 20:07:59 UTC
Created attachment 300290 [details]
boot failure
Comment 5 Martin K. Petersen 2022-01-19 21:35:07 UTC
> Update: Testing with Kernel 5.13.x (specifically 5.13.13) - Still
> fails to Pickup LVM partitions on /dev/sda (which is detected) in
> VMWare.

5.13 is no longer supported. The fix was merged in 5.16:

142c779d05d1 ("scsi: vmw_pvscsi: Set residual data length conditionally")

and I believe it has been backported to all the currently supported
stable releases.
Comment 6 Rich Reamer 2022-01-19 22:48:16 UTC
wow thanks - I will pull one down (after confirming the 142c779d05d1 buildin) and test!
Comment 7 Rich Reamer 2022-01-19 23:20:16 UTC
Yah, looks like 5.15.13, 5.10.90, 5.4.170, 4.19.224, 4.14.261 and likely other current LT kernels have this fix. Now to test, prolly tomorrow; maybe tonight excited about the fix!!
Comment 8 Rich Reamer 2022-01-21 20:10:38 UTC
@Martin -- yah!! it works!! (testing kernel 5.15.13)
Comment 9 Akemi Yagi 2022-02-01 18:15:32 UTC
This bug affects RHEL-9 (beta). A bug report submitted and being tracked:

https://bugzilla.redhat.com/show_bug.cgi?id=2048178

Unfortunately it was made private, so not visible publicly.

Note You need to log in before you can comment on or make changes to this bug.