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

Bug #1067386 reported by Neil Wilson
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Confirmed
Undecided
Unassigned

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)

Revision history for this message
Neil Wilson (neil-aldur) wrote :
description: updated
Revision history for this message
Neil Wilson (neil-aldur) wrote :
Revision history for this message
Neil Wilson (neil-aldur) wrote :
Neil Wilson (neil-aldur)
Changed in lvm2 (Ubuntu):
status: New → In Progress
Revision history for this message
Oliver Brakmann (obrakmann) wrote :

The thin-provisiong-tools package has landed in Sid a few days ago: http://packages.debian.org/sid/thin-provisioning-tools.

Can it still be included in Saucy so that the feature may be stabilized for 14.04 LTS?

Revision history for this message
elatllat (elatllat) wrote :

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
Revision history for this message
elatllat (elatllat) wrote :

On CentOS 7.2/Linux 3.10 lmv2 depends on device-mapper-persistent-data which is what they call thin-provisioning-tools

repoquery --requires lvm2
yum info device-mapper-persistent-data.x86_64

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :

5 years later an this is still and issue on 17.10. It's possible to create complex LVMs setups, e.g. the one described at https://www.thomas-krenn.com/de/wiki/LVM_Caching_mit_SSDs_einrichten, but then at the first mount the missing `/usr/sbin/check_cache` binary causes the mount to fail until `thin-provisioning-tools` is installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.