LVM over iSCSI weird behavior

Ilcheff

New Member
Jun 25, 2024
1
0
1
Hello folks!

I have a weird issue with LVM over iSCSI.

Here is the problem: I have a 3 node cluster with storage attached via iSCSI. On top of the iSCSI I have LVM volume with "saferemove 1" in config. Storage used in setup is TrueNAS Core.

When removing VM, most of the times everything is fine, but in rare occasions zeroed-out VM discs are not deactivated and removed, or they are only deactivated but not removed. I have to remove them manually in such cases.

This is one of the examples:

Code:
zero-out data on image vm-138-disk-1 (/dev/nas1-zvol2-vg/del-vm-138-disk-1)
105906176 B 101.0 MB 10.00 s 10590482 B/s 10.10 MB/s

...

322122547200 B 300.0 GB 30720.0 s (8:31 h) 10485769 B/s 10.00 MB/s
zero out finished (note: 'No space left on device' is ok here): write: No space left on device
TASK ERROR: lvremove 'nas1-zvol2-vg/del-vm-138-disk-1' error:   Logical volume nas1-zvol2-vg/del-vm-138-disk-1 in use.


Does anybody noticed this behavior in similar setup?
I can provide more information if needed.