Remove FlexVol volumes after uninstalling ONTAP tools
When you deploy ONTAP tools for VMware vSphere on a dedicated ONTAP cluster, the deployment creates many unused FlexVol volumes. After you remove ONTAP tools, delete the unused FlexVol volumes to avoid possible performance impacts.
-
Determine the ONTAP tools for VMware vSphere deployment type from the ONTAP tools management node VM. Run the following command to check the deployment type: cat /opt/netapp/meta/ansible_vars.yaml | grep -i protocol
If the deployment uses iSCSI, delete the igroups as well.
-
Get the list of FlexVol volumes. kubectl describe persistentvolumes | grep internalName | awk -F'=' '{print $2}'
-
Remove the VMs from the vCenter Server. Refer to Remove and reregister VMs and VM templates.
-
Delete FlexVol volumes. Refer to Delete a FlexVol volume. Enter the exact FlexVol volume name in the CLI command to delete a volume.
-
For iSCSI deployments, delete the SAN igroups from the ONTAP storage backend. See View and manage SAN initiators and igroups.