Device or resource busy during uninstallation
During uninstallation, if either the device or resource is busy, the contents inside some directories might not be removed.
Symptoms
Directories with content remain after uninstallation. You might see an error similar to the following message:
failed: [10.239.71.119] (item=/var/lib/icp) => {"changed": false, "item": "/var/lib/icp", "msg": "rmtree failed: [Errno 16] Device or resource busy: '/var/lib/icp/audit'"}
ok: [10.239.71.117] => (item=/var/lib/icp)
failed: [10.239.71.42] (item=/var/lib/icp) => {"changed": false, "item": "/var/lib/icp", "msg": "rmtree failed: [Errno 16] Device or resource busy: '/var/lib/icp/audit'"}
Causes
If either the device or resource is busy, some directories cannot be deleted.
Resolving the problem
Check the following directories on all nodes:
- /var/lib/registry
- /etc/cfc
- /opt/ibm/cfc
- /var/lib/etcd
- /var/lib/etcd-wal/wal
- /var/lib/kubelet
- /var/lib/mysql
- /var/lib/icp
If these directories exist, manual delete the contents.