Reference 1 - Ubuntu kernel 5.11.0-11-generic:
jak@jak-t480s:~:master$ sudo lvcreate -L 1G -n foo ubuntu-vg Logical volume "foo" created. jak@jak-t480s:~:master$ sudo lvremove ubuntu-vg/foo Do you really want to remove and DISCARD active logical volume ubuntu-vg/foo? [y/n]: y /dev/mapper/crypt: BLKDISCARD ioctl at offset 72717697024 size 1073741824 failed: Device or resource busy. Logical volume "foo" successfully removed jak@jak-t480s:~:master$ uname -a Linux jak-t480s 5.11.0-11-generic #12-Ubuntu SMP Mon Mar 1 19:26:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Reference 1 - Ubuntu kernel 5.11.0-11-generic:
jak@jak- t480s:~ :master$ sudo lvcreate -L 1G -n foo ubuntu-vg t480s:~ :master$ sudo lvremove ubuntu-vg/foo mapper/ crypt: BLKDISCARD ioctl at offset 72717697024 size 1073741824 failed: Device or resource busy. t480s:~ :master$ uname -a
Logical volume "foo" created.
jak@jak-
Do you really want to remove and DISCARD active logical volume ubuntu-vg/foo? [y/n]: y
/dev/
Logical volume "foo" successfully removed
jak@jak-
Linux jak-t480s 5.11.0-11-generic #12-Ubuntu SMP Mon Mar 1 19:26:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux