Package: thin-provisioning-tools
Version: 1.1.0-5+b1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


I recently had a situation where after an unclean shutdown, LVM detected
corruption in thin pool metadata and failed to activate the thin pool which
holds the root filesystem LV, throwing me into the initramfs emergency shell.

After some time scrambling to find a solution, I found that thin_repair might
be able to repair the metadata and activate the thin pool. However, currently
only /usr/sbin/thin_check and /usr/sbin/cache_check are included in initramfs.
('thin_check --auto-repair' seemed like it might help in this case, but it
can't because LVM refuses to activate the current thin pool metadata LV with
write permission)

While in principle I could have just created the /usr/sbin/thin_repair symlink
on the fly, I failed to realize this in the heat of a rather stressful
situation, so instead I downloaded a Debian live ISO image, restored it to a
USB stick, booted into the live system and ran thin_repair there, which worked
nicely.

In order to make life easier for others getting into a similar situation, I'd
suggest just including all symlinks pointing to /usr/sbin/pdata_tools in the
initramfs.

(AFAICT LVM might even try thin_repair automatically when it detects thin pool
metadata corruption, in which case the issue could have been avoided altogether
for me if the thin_repair symlink was there)


- -- System Information:
Debian Release: forky/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-security'), (500, 
'unstable'), (102, 'experimental-debug'), (102, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.18.1+ (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages thin-provisioning-tools depends on:
ii  libc6      2.42-6
ii  libgcc-s1  15.2.0-11
ii  libudev1   258.1-2

thin-provisioning-tools recommends no packages.

thin-provisioning-tools suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iHEEARECADEWIQSwn681vpFFIZgJURRaga+OatuyAAUCaVOqyBMcbWljaGVsQGRh
ZW56ZXIubmV0AAoJEFqBr45q27IA6EQAn3rrDF95wXQcn5lEG3tWMkvOSK7fAKCu
GchT+/KCQy/XgH+R/4//Bfv0nA==
=bhks
-----END PGP SIGNATURE-----

Reply via email to