This KB outlines the correct procedure to detach a persistent volume from a Kubernetes node via the Cloud Native Storage CnsVolumeManager
2023-04-10T14:47:25.622Z error vsanvcmgmtd[38991] [vSAN@6876 sub=BlockService opId=ab70e9dd] CNS: Failed to attach disk to vm: vim.VirtualMachine:vm-123 with
err: N3cns30VolumeAlreadyAttachedExceptionE(Volume ########-####-####-####-########420e is already attached to VM vm-456)
Identify the VM correlating with the managed object ID 'vm-456' from the vCenter Server Managed Object Browser (MOB) at the following URL: https://vcenter_fqdn/mob/?moid=vm-456
Identify the volume vmdk by searching for the 'Volume Name' or 'Volume ID' in the vSphere Client, by selecting the relevant vSphere Cluster > Monitor > Cloud Native Storage > Container Volumes > "Add filter" searchbox
rvc
[email protected]@localhost
vsan.debug.mob --start localhost
(It can be disabled/stopped afterwards if required by running vsan.debug.mob --stop localhost)
https://<vc_fqdn>/vsan/mob/?moid=cns-volume-manager
<!-- array start -->
<detachSpecs>
<volumeId>
<id>########-####-####-####-########420e</id>
</volumeId>
<vm type="VirtualMachine">vm-456</vm>
</detachSpecs>
<!-- array end -->