Steps to reproduce
Virtual Box 7.0.12 - Host is Windows 11 Pro
Created a brand new Oracle Linux 9.2 guest.
- 4CPU, 8192 GB memory, EFI bios (not secure)
- 200GB VDI drive - not fully allocated
Default LVM Partitioning for this size disk creates two logical volumes - "/" and "/home"
Create a admin user account with admin privileges (wheel)
Apply all available patches and install Virtual Box Guest Additions
Everything running fine and dandy....
Open a terminal and check lvm
Code: Select all
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 198.4G 0 part
├─ol_ol9u2-root 252:0 0 70G 0 lvm /
└─ol_ol9u2-home 252:1 0 128.4G 0 lvm /home
Code: Select all
$ sudo pvscan
PV /dev/sda3 VG ol_ol9u2 lvm2 [198.41 GiB / 0 free]
Total: 1 [198.41 GiB] / in use: 1 [198.41 GiB] / in no VG: 0 [0 ]
Code: Select all
$ sudo lvmdevices
Device /dev/sda3 IDTYPE=sys_wwid IDNAME=t10.ATA_VBOX_HARDDISK_VB9465053e-2aab3486 DEVNAME=/dev/sda3 PVID=0mF9C4eeQPky4xzfHwDTd3iB7R82KO83 PART=3
Boot up the clone - booting takes an unexpectedly long time.
Login screen shows up eventually after a couple of minutes
Trying to login as the admin user fails - no error - just fails
Login as root instead - this works
Open up a terminal and check lvm
Logical volume for "/home" is missing
Code: Select all
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 200G 0 disk
├─sda1 8:1 0 600M 0 part /boot/efi
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 198.4G 0 part
└─ol_ol9u2-root 252:0 0 70G 0 lvm /
Code: Select all
# sudo pvscan
Devices file sys_wwid t10.ATA_VBOX_HARDDISK_VB9465053e-2aab3486 PVID 0mF9C4eeQPky4xzfHwDTd3iB7R82KO83 last seen on /dev/sda3 not found.
No matching physical volumes found
Code: Select all
# sudo lvmdevices
Devices file sys_wwid t10.ATA_VBOX_HARDDISK_VB9465053e-2aab3486 PVID 0mF9C4eeQPky4xzfHwDTd3iB7R82KO83 last seen on /dev/sda3 not found.
Device none IDTYPE=sys_wwid IDNAME=t10.ATA_VBOX_HARDDISK_VB9465053e-2aab3486 DEVNAME=/dev/sda3 PVID=0mF9C4eeQPky4xzfHwDTd3iB7R82KO83 PART=3
Have a bootable OS, that can be logged into. but trying to use any LVM tools returns error messages about missing device
System is therefore not safe to use, since LVM maintenance is not possible.
Unable to find any fixes and Workarounds
Searching online for fixes has failed so far.
I've also tried a couple of things to workaround it, but no joy
- Using Legacy BIOS instead of EFI - same result
- Using default 20GB disk instead of 200GB only creates 1 logical volume "'/" but pvscan and lvmdevices still give same error, so it's still corrupted and still not usable.