On 7/5/19 11:20 AM, Gang He wrote:
Hi Guys,
I uses lvm2-2.02.180, I got an error message when running lvs/lvdisplay against cached LVs.
e.g.
linux-v5ay:~ # lvs
Unknown feature in status: 8 1324/8192 128 341/654272 129 151 225 1644 0 341 0 3 metadata2 writethrough no_discard_passdown 2 migration_threshold 2048 smq 0 rw -
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
home system -wi-ao---- 17.99g
root system Cwi-aoC--- 20.00g [lvc_root] [root_corig] 0.05 16.16 0.00
swap system -wi-ao---- 2.00g
You need this patch:
https://sourceware.org/git/?p=lvm2.git;a=commit;h=adf9bf80a32500b45b37eb24b98fa7c2c933019e
Kernel introduced a new feature which is not recognized by lvm versions
released before the kernel (which is anything up to latest 2.02.185).
This will be included in the next lvm release.
-- Marian
The bug can be reproduced stably with the below steps.
Have a (virtual) machine with 2 disk drives
Install os with LVM as root volume
Then, add the second disk after os is installed.
# pvcreate /dev/sdb
# vgextend system /dev/sdb
# lvcreate --type cache-pool -l 100%FREE -n lvc_root system /dev/sdb
# lvconvert --type cache --cachepool system/lvc_root system/root
then run `lvs` or `lvdisplay` command to trigger the issue
Thanks
Gang
_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/