Remove FlexVol volumes
When you use a dedicated ONTAP cluster for ONTAP tools for VMware deployment, it creates many unused FlexVol volumes. After removing ONTAP tools for VMware vSphere, you should remove the FlexVol volumes to avoid possible performance impacts.
-
Determine the ONTAP tools for VMware vSphere deployment type from the primary node VM.
cat /opt/netapp/meta/ansible_vars.yaml | grep -i protocol
If it is an iSCSI deployment, you need to delete 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 from the ONTAP System Manager. Refer to Delete a FlexVol volume. In the CLI command to delete a volume, give the exact name of the FlexVol volumes.
-
Delete SAN igroups from the ONTAP storage system in case of iSCSI deployment. Refer to View and manage SAN initiators and igroups.