FlexCache write-back cache cleanup fails in ONTAP
Applies to
- NetApp ONTAP 9.18.1
- FlexCache with write-back enabled
- NetApp ONTAP Select (cache cluster)
Issue
Attempts to delete a FlexCache relationship or cache volume fail with errors when the cache cluster’s aggregate is offline due to a license downgrade or expiration, and write-back is still enabled on the FlexCache relationship. The standard cleanup commands cannot proceed because ONTAP cannot reach the cache cluster to safely disable write-back, leading to persistent error messages and inability to remove the relationship.
Example error output:
Error: command failed: Cannot clean up the FlexCache relationship between FlexCache volume "Work" and origin of a FlexCache volume "Work" in Vserver "svm0" because FlexCache volume "Work" has writeback enabled, which could result in data loss. Use the "flexcache config modify -is-writeback-enabled false" command to disable writeback on the FlexCache volume.
Attempts to disable write-back on the cache volume fail because the cache aggregate is offline and unreachable:
Modification not permitted. Unable to determine the state of the volume. This can be because of network connectivity problems or the volume is busy.
