Skip to main content
NetApp Response to Russia-Ukraine Cyber Threat
In response to the recent rise in cyber threat due to the Russian-Ukraine crisis, NetApp is actively monitoring the global security intelligence and updating our cybersecurity measures. We follow U.S. Federal Government guidance and remain on high alert. Customers are encouraged to monitor the Cybersecurity and Infrastructure Security (CISA) website for new information as it develops and remain on high alert.
NetApp Knowledge Base

SMHV keeps expired backup Snapshot after failing to delete

Last Updated:

Applies to

  • SnapManager for Hyper-V (SMHV) 2.1.4
  • SnapDrive for Windows 7.1.5
  • ONTAP 9.5


  • SMHV keeps backup Snapshot which is over the retention period.
  • SMHV backup report shows that deleting backup Snapshot fails.

Processing deletion of backup snapshots..
Deleting snapshot: [Snapshot: <SNAPSHOT_NAME>,VolumeID: <VOLUME_ID>,Storage system: <SVM_NAME>,Volume: <VOLUME_NAME>,LunPath: <LUNPATH> ]
An error occurred while deleting snapshots  <SNAPSHOT_NAME>

  • SnapDriveDebug.log shows that Remove-NcSnapshot command fails by the following error.

General Verbose Command starts: Remove-NcSnapshot -Volume <VOLUME_NAME> -Snapshot <SNAPSHOT_NAME>
General Verbose ++PSHelper::RunCommand
General Critical Failed to run a command Remove-NcSnapshot.
 Exception : Message    : The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Snapshot is in use
Source     : System.Management.Automation
StackTrace :    at System.Management.Automation.Internal.PipelineProcessor.SynchronousExecuteEnumerate(Object input, Hashtable errorResults, Boolean enumerate)
   at System.Management.Automation.Runspaces.LocalPipeline.InvokeHelper()
   at System.Management.Automation.Runspaces.LocalPipeline.InvokeThreadProc()
Data :
General Verbose --PSHelper::RunCommand

  • The following error is returned as a result of snapshot-delete ZAPI in ONTAP /mroot/etc/log/mlog/audit.log.

<netapp version='1.7' xmlns='' vfiler='<SVM_NAME>'><snapshot-delete>   <snapshot><SNAPSHOT_NAME></snapshot>   <volume><VOLUME_NAME></volume> </snapshot-delete></netapp>  :: Pending
Snapshot copy "<SNAPSHOT_NAME>" of volume "<VOLUME_NAME>" on Vserver "<SVM_NAME>" has not expired or is locked. Use the "snapshot show -fields owners, expiry-time" command to view the expiry and lock status of the Snapshot copy. :: ONTAPI :: Error



Scan to view the article on your device

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support