On Wed, Oct 09, 2024 at 06:28:26AM -0300, Fabricio Winter wrote: > Hello people, we have been experiencing an issue with lvm2-thin on > _some_ of our production servers where out of nowhere > lvm2/device-mapper starts spamming error logs and I can't really seem > to trace down the root cause. > > This is what the logs look like; > Oct 9 06:25:02 U5bW8JT7 lvm[8020]: device-mapper: waitevent ioctl on > LVM-CP5Gw8QrWLqwhBcJL87R1mc9Q9KTBtQQmOowipTAFuM7hqzHz6pRVvUaNO9FGzeq-tpool > failed: Inappropriate ioctl for device > Oct 9 06:25:02 U5bW8JT7 lvm[8020]: waitevent: dm_task_run failed: > Inappropriate ioctl for device It appears related to dmeventd monitoring the thin pools, and the kernel returning ENOTTY when dmeventd does the DM_DEV_WAIT ioctl. Maybe there's a fast retry loop in dmeventd on that error case rather than quitting. I wonder if there's a way you could kill dmeventd when this happens. Dave