Bug 2030778
| Summary: | lvm2 fails to 'notice' luks devices | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | lejeczek <peljasz> |
| Component: | lvm2 | Assignee: | LVM and device-mapper development team <lvm-team> |
| lvm2 sub component: | Activating existing Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | CLOSED NOTABUG | Docs Contact: | |
| Severity: | urgent | ||
| Priority: | unspecified | CC: | agk, bstinson, heinzm, jbrassow, jwboyer, msnitzer, prajnoha, teigland, zkabelac |
| Version: | CentOS Stream | Flags: | pm-rhel:
mirror+
|
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-01-04 21:42:25 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
lejeczek
2021-12-09 17:33:39 UTC
Most likely the luks disk is missing from the lvm devices file. Run "lvmdevices" or cat /etc/lvm/devices/system.devices to check if the luks disk is missing. To add it, run lvmdevices --adddev <luks disk> to add it to the set of devices lvm will use. How many of admins will stumble over it? Still should not have happened and a bug in my mind. Was this in fact the problem and solution? If so, my next question is how you arrived at your rhel9 system, i.e. did you upgrade an existing system, and if so which version was it, or did you create a fresh rhel9 install using anaconda? For the upgrade case, the system.devices file should not exist which will disable the devices file functionality. For the a fresh installation, anaconda runs vgimportdevices -a, which should include any attached PVs into the new system.devices file. If you attached the luks PV to the system after a fresh install, then it would not have been in the devices file. I did a fresh installation of CentOS 9 Stream (which this BZ if filed against) some time ago, perhaps about 3 weeks ago. And yes I did add that luks disk only a few days ago. From my (probably all admins/users) perspective it's much simpler - I get you can diagnose in the details the issue - lvm/dmsetup rpms updates and things break. thanks, L. Often, new devices are attached to the system but do not actually belong to the system (they will often be passed to vms for example.) So, the safe default is to only use devices when the admin has told lvm that it should. This does introduce a new step when the attached devices are intended for the system. I am always looking for new ideas about how to make this change easier for users to see and understand, and I'd be interested in any suggestions you have. If lvm had logged a message in the journal that this new luks device was not included in system.devices, would that have helped? The journal often has a lot of messages and it might be difficult to notice one. undo mistaken attempt at a new summary I'd think that perhaps 'rpm' logic would do some good if used when such a 'transition' happens between binaries/programs version - rpm at install/update time could take care of such a case/situation. |