lvm2/lvconvert: lvm2 tools seem to be missing writecache support in Alpine 3.10.3
While trying to create a cached logical volume using lvm2 writecache the command fails with the following error. It looks like lvm2 tools are not built with support for writecache or they need to be updated:
fernando@testsvr01:~$ sudo lvconvert --type writecache --cachevol ssd-cache vg0/hdd-data
WARNING: Unrecognised segment type writecache
Invalid argument for --type: writecache
Error during parsing of command line.
- The kernel module for writecache (dm-writecache) is loaded correctly:
fernando@testsvr01:~$ lsmod | grep writecache
dm_writecache 32768 0
dm_mod 126976 11 dm_cache,dm_bufio,dm_writecache
- lvconvert version details:
fernando@testsvr01:~$ sudo lvconvert --version
LVM version: 2.02.184(2) (2019-03-22)
Library version: 1.02.156 (2019-03-22)
Driver version: 4.39.0
Configuration: ./configure --build=x86_64-alpine-linux-musl --host=x86_64-alpine-linux-musl --prefix=/usr --sysconfdir=/etc --libdir=/lib --sbindir=/sbin --localstatedir=/var --disable-nls --disable-readline --enable-pkgconfig --enable-applib --with-thin=internal --enable-dmeventd --enable-cmdlib --with-thin-check=/sbin/thin_check --with-thin-dump=/sbin/thin_dump --with-thin-repair=/sbin/thin_repair --with-dmeventd-path=/sbin/dmeventd CLDFLAGS=-Wl,--as-needed
- Alpine version: 3.10.3 (x86_64)
- lvm2 package version: lvm2-2.02.184-r0