4 years later and this is still an issue on Ubuntu 16.04/Linux 4.4/LVM 2.02.133.
## setup; apt-get install -y lvm2 mkdir test cd test/ dd if=/dev/zero of=lvma.img bs=1M count=10 dd if=/dev/zero of=lvmb.img bs=1M count=10 dd if=/dev/zero of=lvmc.img bs=1M count=10 losetup /dev/loop0 lvma.img losetup /dev/loop1 lvmb.img losetup /dev/loop2 lvmc.img pvcreate /dev/loop0 /dev/loop1 /dev/loop2 vgcreate vg_test /dev/loop0 /dev/loop1 S=$(vgdisplay vg_test | grep Free) lvcreate -l $S vg_test -n lv_test mke2fs -t ext4 -m 0 /dev/vg_test/lv_test vgextend vg_test /dev/loop2 S=$(echo "$(vgdisplay vg_test | grep Free | perl -pe 's/^.*? ([0-9])/$1/g;s/ .*//g')-4" | bc ) lvcreate --type cache --cachemode writeback -l $S -n lv_test_cache vg_test/lv_test /dev/loop2 ## break attempting to detach then fix; lvchange -an vg_test/lv_test /usr/sbin/cache_check: execvp failed: No such file or directory WARNING: Integrity check of metadata for pool vg_test/lv_test_cache failed. apt-get install thin-provisioning-tools lvchange -an vg_test/lv_test vgexport vg_test #thin-provisioning-tools should be a dependency of lvm2. ** Changed in: lvm2 (Ubuntu) Status: In Progress => Confirmed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to lvm2 in Ubuntu. https://bugs.launchpad.net/bugs/1067386 Title: dm thin facility incomplete - thin-provisioning-tools not packaged Status in lvm2 package in Ubuntu: Confirmed Bug description: The lvm2 package is built with --with-thin=internal option activated, but the supporting userspace activation tools are neither packaged nor depended upon correctly. The errors reported in Debian at http://bugs.debian.org/cgi- bin/bugreport.cgi?bug=673000#17 also occur on Ubuntu Quantal. ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: lvm2 2.02.95-4ubuntu1 ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5 Uname: Linux 3.5.0-17-generic x86_64 ApportVersion: 2.6.1-0ubuntu3 Architecture: amd64 Date: Tue Oct 16 14:57:35 2012 SourcePackage: lvm2 UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1067386/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp