NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Snapshot Details - Snapshot Space Reclaimable

fenton
4,909 Views

Is there anyway to get run the Snapshot Space reclaimable feature via CLI or API ?

2 REPLIES 2

ekashpureff
4,909 Views

On the command line there is the 'snap reclaimable' command.

'snap reclaimable volname snapname snapname snapname'


I hope this response has been helpful to you.

At your service,


Eugene E. Kashpureff
[email protected]
Fastlane NetApp Instructor and Independent Consultant
http://www.fastlaneus.com/ http://www.linkedin.com/in/eugenekashpureff

(P.S. I appreciate points for helpful or correct answers.)

adaikkap
4,909 Views

Hi Rich,

     We have both CLI and API to do it.

Below is the cli.

[root@lnx ~]# dfpm dataset snapshot reclaimable help

NAME
     reclaimable -- compute space reclaimable from deleting snapshots in a volume

SYNOPSIS
     dfpm dataset snapshot reclaimable <volume-name-or-id> <snapshot-name-or-id>
         [ <snapshot-name-or-id> ... ]

DESCRIPTION
     Compute space that can be reclaimed if the specified
     set of snapshots are deleted from the given volume.


[root@lnx ~]#  dfpm dataset snapshot reclaimable 1615 21050 hourly.2
Approximately 457868KB will be reclaimed by deleting these Snapshot copies.

[root@lnx~]#

PS: Though its a dfpm cli its not necessary that the volume has to be a member of a dataset.

The corresponding is the API.

<snapshot-get-reclaimable-info>

<snapshots> 

<snapshot>  

<snapshot-name>21050</snapshot-name> 

</snapshot> 

<snapshot>  

<snapshot-name>hourly.2</snapshot-name> 

</snapshot>

</snapshots>

<volume-name-or-id>1615</volume-name-or-id>

</snapshot-get-reclaimable-info>

Regards

adai

Public