mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
e80884cd08
...to avoid using cached value (persistent filter) and therefore not noticing any change made after last scan/filtering - the state of the device may have changed, for example new signatures added. $ lvm dumpconfig --type diff allocation { use_blkid_wiping=0 } devices { obtain_device_list_from_udev=0 } $ cat /etc/lvm/cache/.cache | grep sda $ vgscan Reading all physical volumes. This may take a while... Found volume group "fedora" using metadata type lvm2 $ cat /etc/lvm/cache/.cache | grep sda "/dev/sda", $ parted /dev/sda mklabel gpt Information: You may need to update /etc/fstab. $ parted /dev/sda print Model: QEMU QEMU HARDDISK (scsi) Disk /dev/sda: 134MB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags $ cat /etc/lvm/cache/.cache | grep sda "/dev/sda", ==== Before this patch: $ pvcreate /dev/sda Physical volume "/dev/sda" successfully created With this patch applied: $ pvcreate /dev/sda Physical volume /dev/sda not found Device /dev/sda not found (or ignored by filtering).