Bug 2165159
| Summary: | handle filters with device symlinks during autoactivation | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | David Teigland <teigland> |
| Component: | lvm2 | Assignee: | David Teigland <teigland> |
| lvm2 sub component: | Activating existing Logical Volumes | QA Contact: | cluster-qe <cluster-qe> |
| Status: | VERIFIED --- | Docs Contact: | |
| Severity: | unspecified | ||
| Priority: | unspecified | CC: | agk, cmarthal, heinzm, jbrassow, mcsontos, msnitzer, prajnoha, zkabelac |
| Version: | 9.2 | Keywords: | Triaged |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | lvm2-2.03.21-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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
David Teigland
2023-01-27 23:34:00 UTC
fixed in main https://sourceware.org/git/?p=lvm2.git;a=commit;h=17a3585cbb55d9a15ced9775a18b50c53a50ee8e https://sourceware.org/git/?p=lvm2.git;a=commit;h=c9fdc828ff0504bc2e57f65862bc382f7663a8a2 https://sourceware.org/git/?p=lvm2.git;a=commit;h=6d14144d311fb347e4225ad6a48d4900b39445c4 Testing this involves rebooting the system and verifying that things are properly activated and mounted. Set a filter for two PVs using symlinks for those PVs, e.g. wwn- or pci- or lvm-pv-uuid- symlinks in /dev/disk/by-id or /dev/disk/by-path. One disk is for the root VG, and the second disk for an extra VG. The extra VG contains an LV with a file system, where the fs is listed in /etc/fstab. Reboot the machine and verify that it starts correctly, and that the LV in the extra VG is mounted. The following is reported both before and after rebooting: $ grep 'filter=' /etc/lvm/lvm.conf filter=[ "a|/dev/disk/by-path/pci-0000:04:00.0-part2|", "a|/dev/disk/by-path/pci-0000:07:00.0-scsi-0:0:0:17409|", "r|.*|" ] $ vgs VG #PV #LV #SN Attr VSize VFree rhel 1 2 0 wz--n- <49.00g 0 test 1 1 0 wz--n- 1020.00m 788.00m $ pvs PV VG Fmt Attr PSize PFree /dev/sda test lvm2 a-- 1020.00m 788.00m /dev/vda2 rhel lvm2 a-- <49.00g 0 $ lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert root rhel -wi-ao---- <45.05g swap rhel -wi-ao---- <3.95g foo test -wi-ao---- 232.00m $ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/rhel-root 47212008 4233440 42978568 9% / /dev/mapper/test-foo 232096 13760 218336 6% /foo Note that this test may not fail if it's run without the patches, but depending on timing it may fail unpredictably without the patches. Marking Verified:Tested (and SanityOnly due to the timing requirements) based on the results of comment #1. |