Package: lvm2
Version: 2.03.22-1+b1
Severity: normal

Dear Maintainer,

snapshots of cached volumes seem to be seriously broken
(maybe it's fixed in the latest upstream version, I'm not sure).

To see the issue, try the following:

* create a cached volume, make a ext4 filesystem in it, mount it, and put some
  contents there so the FS isn't empty;

* start some process making changes to the volume (like cyclically copying
files etc,
  which imitates a busy filesystem);

* create a snapshot of the volume;

* try to check the snapshot with fsck.

With non-zero probability you will get filesystem errors on the snapshot.
(Note that if you do the same on a non-cached volume the check passes
as it should.) Trying to fix the errors automatically and then removing
the snapshot will most likely lead to the ruined filesystem on the volume.

I learned this the hard way when I tried to e2scrub my cached /home partition.
Granted, I have backups...


-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (991, 'stable-updates'), (991, 'stable-security'), (991, 
'stable'), (99, 'testing'), (90, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.13-bootes0-p-1000 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages lvm2 depends on:
ii  dmeventd                   2:1.02.196-1+b1
ii  dmsetup                    2:1.02.196-1+b1
ii  libaio1t64                 0.3.113-8
ii  libblkid1                  2.38.1-5+deb12u1
ii  libc6                      2.36-9+deb12u7
ii  libdevmapper-event1.02.1   2:1.02.196-1+b1
ii  libedit2                   3.1-20221030-2
ii  libelogind0 [libsystemd0]  246.10-1debian1
ii  libselinux1                3.4-1+b6
ii  libudev1                   254.5-1~bpo12+3

Versions of packages lvm2 recommends:
ii  thin-provisioning-tools  0.9.0-2

lvm2 suggests no packages.

-- Configuration Files:
/etc/lvm/lvmlocal.conf changed [not included]

-- no debconf information

Reply via email to