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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1067386

Title:
  dm thin facility incomplete - thin-provisioning-tools not packaged

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/1067386/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to