<div dir="ltr"><div>Package: lvm2</div><div>Version: 2.02.168-2</div><div>Severity: normal</div><div><br></div><div>Dear Maintainer,</div><div><br></div><div>Creating a thin pool LV is allowed even when thin-provisioning-tools is not installed. But deactivating or activating that VG fails. Since deactivating the VG usually only happens at reboot, the user might fail to notice this big problem until then.<br></div><div><br></div><div>Maybe the lvconvert tool, used to combine the two "thin LVs" into a thin pool LV, should refuse to run if thin-provisioning-tools, or the needed scripts, aren't installed.<br></div><div><br></div><div><div>root@debian:~# pvcreate /dev/vda1</div><div>  Physical volume "/dev/vda1" successfully created.</div><div><br></div><div>root@debian:~# vgcreate vg /dev/vda1</div><div>  Volume group "vg" successfully created</div><div><br></div><div>root@debian:~# lvcreate -n pool0 -l 90%VG vg</div><div>  Logical volume "pool0" created.</div><div><br></div><div>root@debian:~#  lvcreate -n pool0meta -l 5%VG vg</div><div>  Logical volume "pool0meta" created.</div><div><br></div><div>root@debian:~# lvconvert --type thin-pool --poolmetadata vg/pool0meta vg/pool0<br></div><div>  WARNING: Converting logical volume vg/pool0 and vg/pool0meta to thin pool's data and metadata volumes with metadata wiping.</div><div>  THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.)</div><div>Do you really want to convert vg/pool0 and vg/pool0meta? [y/n]: y</div><div>  Converted vg/pool0 to thin pool.</div><div><br></div><div>root@debian:~# l /dev/mapper/</div><div>total 0</div><div>drwxr-xr-x  2 root root     120 Jun 21 14:15 .</div><div>drwxr-xr-x 20 root root    3.1K Jun 21 14:15 ..</div><div>crw-------  1 root root 10, 236 Jun 21 14:15 control</div><div>lrwxrwxrwx  1 root root       7 Jun 21 14:15 vg-pool0 -> ../dm-2</div><div>lrwxrwxrwx  1 root root       7 Jun 21 14:15 vg-pool0_tdata -> ../dm-1</div><div>lrwxrwxrwx  1 root root       7 Jun 21 14:15 vg-pool0_tmeta -> ../dm-0</div><div><br></div><div>root@debian:~# vgchange -a n</div><div>  /usr/sbin/thin_check: execvp failed: No such file or directory</div><div>  WARNING: Integrity check of metadata for pool vg/pool0 failed.</div><div>  0 logical volume(s) in volume group "vg" now active</div></div><div><br></div><div><div>root@debian:~# vgchange -a y<br></div></div><div><div>  /usr/sbin/thin_check: execvp failed: No such file or directory</div><div>  Check of pool vg/pool0 failed (status:2). Manual repair required!</div><div>  0 logical volume(s) in volume group "vg" now active</div></div><div><br></div><div><div><div>root@debian:~# l /dev/mapper</div><div>total 0</div><div>drwxr-xr-x  2 root root      60 Jun 21 14:15 .</div><div>drwxr-xr-x 19 root root    3.0K Jun 21 14:15 ..</div><div>crw-------  1 root root 10, 236 Jun 21 14:15 control</div></div></div><div><br></div><div>Can't get them back now, unless I install thin-provisioning-tools.</div><div><br></div><div>-- System Information:</div><div>Debian Release: 9.0</div><div>  APT prefers stable</div><div>  APT policy: (500, 'stable')</div><div>Architecture: amd64 (x86_64)</div><div><br></div><div>Kernel: Linux 4.9.0-3-amd64 (SMP w/1 CPU core)</div><div>Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)</div><div>Shell: /bin/sh linked to /bin/dash</div><div>Init: systemd (via /run/systemd/system)</div><div><br></div><div>Versions of packages lvm2 depends on:</div><div>ii  dmeventd                  2:1.02.137-2</div><div>ii  dmsetup                   2:1.02.137-2</div><div>ii  init-system-helpers       1.48</div><div>ii  libblkid1                 2.29.2-1</div><div>ii  libc6                     2.24-11+deb9u1</div><div>ii  libdevmapper-event1.02.1  2:1.02.137-2</div><div>ii  libdevmapper1.02.1        2:1.02.137-2</div><div>ii  liblvm2app2.2             2.02.168-2</div><div>ii  libreadline5              5.2+dfsg-3+b1</div><div>ii  libudev1                  232-25</div><div>ii  lsb-base                  9.20161125</div><div><br></div><div>lvm2 recommends no packages.</div><div><br></div><div><div>Versions of packages lvm2 suggests:</div><div>pn  thin-provisioning-tools  <none></div><div><br></div><div>-- no debconf information</div></div><div><br></div></div>