Bug#774560: [thin-provisioning-tools] system can't boot from thin-prov. root-volume

chymian chymian at gmx.net
Sun Jan 4 13:03:58 UTC 2015


Package: thin-provisioning-tools
Version: 0.3.2-1
Severity: important

--- Please enter the report below this line. ---
on a fresh jessie debootstrap installation, I thin-provisioned all part. 
since no hint/warning was given in the README, I also TPed the root partition, leading to an unbootable system.

/boot -> plain ext2/3 (/dev/sdb2)
all other part. on LVM-thinpool

1. dm_thin_pool was not added to initramfs -> added it manually to /etc/initramfs/moduls.
2. boot failed, missing thin_check

even with the workaround below, there are still error-msgs. during boot, regarding dmeventd missing, or after adding it, dmeventd could not start.
despite that, system boots now and is working.

-> see also: https://bugzilla.redhat.com/show_bug.cgi?id=921235
and for an Inspiration for a hackish solution:
http://forums.debian.net/viewtopic.php?f=5&t=119644

workaround:

cat << EOF > /etc/initramfs-tools/hooks/thin-provisioning-tools
#!/bin/sh
# see: https://bugzilla.redhat.com/show_bug.cgi?id=921235
# http://forums.debian.net/viewtopic.php?f=5&t=119644

PREREQ="lvm2"

prereqs()
{
    echo "$PREREQ"
}

case $1 in
prereqs)
    prereqs
    exit 0
    ;;
esac

if [ ! -x /usr/sbin/cache_check ]; then
    exit 0
fi

. /usr/share/initramfs-tools/hook-functions

copy_exec /usr/sbin/thin_check
copy_exec /usr/sbin/thin_dump
copy_exec /usr/sbin/thin_repair
copy_exec /usr/sbin/thin_restore
copy_exec /sbin/dmeventd


manual_add_modules dm_thin_pool
EOF

chmod 775 /etc/initramfs-tools/hooks/thin-provisioning-tools


--- System information. ---
Architecture: amd64
Kernel:       Linux 3.16.0-4-amd64

Debian Release: 8.0
  900 testing         security.debian.org 
  900 testing         ftp2.de.debian.org 
  600 unstable        ftp2.de.debian.org 
  600 unstable        download.jitsi.org 
  

--- Package information. ---
Package's Depends field is empty.

Package's Recommends field is empty.

Package's Suggests field is empty.



More information about the pkg-lvm-maintainers mailing list