Ok, another question for #Linux users. I have all my storage on #luks 2 encrypted volumes with #cryptsetup . I like to be able to shut off one harddrive (which is in a bay with a switch.) I had a nice little script to unmount, close the volume, and then put the drive to sleep so I could safely shut it off. But recently cryptsetup has been failing to actually close volumes. I suspect it's because I enabled the KVM module after I ran across this: https://alext.mail.at/post/cryptsetup-close-crypt-fails-with-device-crypt-is-still-in-use So probably a namespace.
The problem is I have no clue how to use that... I can't find whatever is holding it and can't unlock it.
What I really need is something I can put in that script...
I don't really want to disable the KVM module just for that.
EDIT: I have lsof all up the wazoo. It finds nothing.


