Bug#769799: lvm2: boot fails if /usr is on a lvm-cached LV

Stefan Klein st.fankl.in at gmail.com
Sun Nov 16 15:08:41 UTC 2014


Package: lvm2
Version: 2.02.111-2
Severity: important

Dear package maintainer(s),

I recently added a SSD to my system and set up lvmcache to cache /usr (which is
a logical volume) after rebooting LVM fails to activate the cached volume.
To activate the volume /usr/sbin/cache_check from thin-provisioning-tools is
required, which o/c is not available if /usr is not yet activated.

I was able to workaround the problem by manually uncompressing the contents of
the thin-provisioning-tools (and libstdc++6) package to /usr of the root LV, so
cache_check is available at activation time of the /usr LV.

Might help:
# lvs -a
  LV                    VG   Attr       LSize  Pool          Origin      Data%
Meta%  Move Log Cpy%Sync Convert
  cachepool-usr         hdd  Cwi---C---  2,00g
  [cachepool-usr_cdata] hdd  Cwi-ao----  2,00g
  [cachepool-usr_cmeta] hdd  ewi-ao----  8,00m
  home                  hdd  -wi-ao---- 50,00g
  root                  hdd  -wi-ao---- 45,00g
  usr                   hdd  Cwi-aoC---  7,00g cachepool-usr [usr_corig]
  [usr_corig]           hdd  owi-aoC---  7,00g

The volume group "hdd" despite the name contains a partition of the HDD and a
partition of the SSD.

regards,
Stefan



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) (ignored:
LC_ALL set to de_DE.utf8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lvm2 depends on:
ii  dmeventd                  2:1.02.90-2
ii  dmsetup                   2:1.02.90-2
ii  init-system-helpers       1.21
ii  initscripts               2.88dsf-57
ii  libc6                     2.19-13
ii  libdevmapper-event1.02.1  2:1.02.90-2
ii  libdevmapper1.02.1        2:1.02.90-2
ii  libreadline5              5.2+dfsg-2
ii  libudev1                  215-5+b1
ii  lsb-base                  4.1+Debian13+nmu1

lvm2 recommends no packages.

Versions of packages lvm2 suggests:
ii  thin-provisioning-tools  0.3.2-1


-- no debconf information



More information about the pkg-lvm-maintainers mailing list