@danielp statement was the only one that worked for me. Here is the details i can offer to this situation. Looking at the Rocky teams comment they stated the following
If you are impacted by this bug, then until the bug fix is released by RHEL and Rocky, please review and follow one of the following options before upgrading and rebooting your system:
- After upgrading the
lvm2
package, but prior to rebooting, regenerate /etc/lvm/devices/system.devices
by running lvmdevices --update
. Confirm that the contents of /etc/lvm/devices/system.devices
is changed to match the new format before rebooting the system.
- Prior to rebooting after upgrading, rename the
/etc/lvm/devices/system.devices
file (e.g., mv /etc/lvm/devices/system.devices{,.bak}
) and, once the system has rebooted, run vgimportdevices --all
to regenerate the file in the new format.
A correctly formatted system.devices
file for Rocky Linux 9.2 will not have repeated underscores in the device’s IDNAME field.
I am doing packer.io builds on AWS and would get the error of the system being locked out which was strange as this was a stable build before. I added a line in the build to get version info after full yum update and I had the following
NAME="Rocky Linux"
VERSION="9.2 (Blue Onyx)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="9.2"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Rocky Linux 9.2 (Blue Onyx)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:9::baseos"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
SUPPORT_END="2032-05-31"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-9"
ROCKY_SUPPORT_PRODUCT_VERSION="9.2"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="9.2"
and started with a base AMI of: ami-0fe64c0692c69d851
(note was using the most recent but due to all the errors went down a version)
After the LVM creation portion of the build i had a cat on system.devices
to see if it existed and if anything was in it. It output the following:
# Created by LVM command vgcreate pid 33528 at Tue Jul 25 14:07:14 2023
VERSION=1.1.2
IDTYPE=sys_wwid IDNAME=nvme.1d0f-766f6c3037313836373630343065626565336134-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001 DEVNAME=/dev/nvme1n1 PVID=7O00WcnQ4mNxWHpjXpXkse99rLBnhowr
IDTYPE=sys_wwid IDNAME=nvme.1d0f-766f6c3035303838636538663462626538363632-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001 DEVNAME=/dev/nvme2n1 PVID=32SH2Xsr0jpfOYvUQy0tmqaSm1e7hvVf
Note there are no underscores found and there looks to be no spaces. If i let the build just finish out just like that, it will not boot in amazon.
If i perform a lvmdevices --update
after the LVM creation it does not solve this problem.
It is only when I specifically rm system.devices
that once I spin up the completed build all the lvm mounts actually mount.
when i look for system.devices
i get that it does not exist like expected
[root@ip-10-2-7-27 rocky]# cat /etc/lvm/devices/system.devices
cat: /etc/lvm/devices/system.devices: No such file or directory
I can restart and completely halt the system and every time it starts back up. After performing vgimportdevices --all
i get the following:
# Created by LVM command vgimportdevices pid 1652 at Tue Jul 25 14:36:58 2023
VERSION=1.1.1
IDTYPE=sys_wwid IDNAME=nvme.1d0f-766f6c3034666461306538633339626337636366-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001 DEVNAME=/dev/nvme1n1 PVID=7O00WcnQ4mNxWHpjXpXkse99rLBnhowr
IDTYPE=sys_wwid IDNAME=nvme.1d0f-766f6c3032386164396637623761386664633765-416d617a6f6e20456c617374696320426c6f636b2053746f7265-00000001 DEVNAME=/dev/nvme2n1 PVID=32SH2Xsr0jpfOYvUQy0tmqaSm1e7hvVf
Everything works.
So after offer that verbose amount of detail i just want to say that it does not seem to be limited to just IDNAME’s with underscores/spaces because as shown above my system.devices
would like fine like @danielp’s in our build processes but then not start. Also the first option that Rocky Team offered did not work for us.
Hope this someone looking for more detail.