Openzfs stuck with device removal is in progress.
Distribution Name | Devuan Distribution Version | rolling Kernel Version | 6.1.9-xanmod1 Architecture | x86_64 OpenZFS Version 2.199
Describe the problem you're observing
stuck with device removal is in progress.
Describe how to reproduce the problem
zpool attach rpool sdf /dev/sdi zpool replace rpool 13784476324957703977 /dev/sdi -f
Comments: So i can not for the life of me seem to be able to replace or remove the drive. I usually just yank a drive from my server and stick in another drive when i need to do a clone or something. But this time its stuck, and when i say stuck i mean stuck.
Nowhere in your commands is the feature device removal happening
You didn't provide any output, any version other than "git", or what you mean by "stuck".
I would suggest supplying that if you would like to see a useful response.
I managed to reproduce this on a fairly similar system. The version number for OpenZFS I see is 2.1.11. In my case a device became faulted. Checking seems to suggest it was okay, and this might be aftermath from earlier work. As such I tried to clear it, but was unsuccessful.
I am presently starting to suspect my case may be a dying storage device combined with a very unhelpful error message from zpool replace. The error message was roughly "unable to replace device", something about "busy" or "being replaced". When instead the issue was the device was returning garbled data when reading back data.
I'm still investigating though.