Unable to Delete Orphaned FlexCache Volume
Applies to
- NetApp ONTAP
- FlexCache Volumes
Issue
Attempts to delete a FlexCache volume fail with errors indicating that the volume is still in a FlexCache relationship and/or the -is-writeback-enabled property is set to true. The original source (origin) volume had already been deleted, resulting in an orphaned FlexCache volume that cannot be deleted using standard procedures.
Example Log Output:
Below error is seen while tried to delete the flexcache volume:
::> volume flexcache delete -vserver svm01 -volume flexcache_vol
Error: command failed: Failed to delete FlexCache volume "flexcache_vol" in Vserver "svm01" because the "-is-writeback-enabled" property is true. Run "volume online -vserver svm01 -volume "flexcache_vol" to bring the volume back online and then run "volume flexcache config modify -vserver svm01 -volume flexcache_vol -is-writeback-enabled false" to disable the "-is-writeback-enabled" property.
And when tried to bring the volume online:
::> volume online -vserver svm01 -volume flexcache_vol
vol online: Error onlining volume "svm01:flexcache_vol". FlexCache volume "flexcache_vol" in Vserver "svm01" is not in a FlexCache relationship with origin of a FlexCache volume "flexcache_vol". The origin might have been cleaned-up. Use the "volume flexcache delete" command to delete the FlexCache relationship and create a new FlexCache volume using the "volume flexcache create" command.
