Subscribe

Snapshot Details - Snapshot Space Reclaimable

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

Re: Snapshot Details - Snapshot Space Reclaimable

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
ekashp@kashpureff.org
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.)

Re: Snapshot Details - Snapshot Space Reclaimable

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