ONTAP Discussions

Can I tell how much space being taken for SnapShots on Linux?

netappmagic
2,558 Views

on Linux NFS file system, you can do "du .snapshots", but this is not the real space of how much SnapShot being used.  I can tell on NetApp filers. 

 

Is there anyway I can tell on Linux?

3 REPLIES 3

ttran
2,506 Views

Hi Netappmagic,

 

At this time there isn't a method to see the actual size of a snapshot from the host side due to the size of a snapshot being dictated by the changes made to the blocks locked in the snapshot from ONTAP's perspective. The math gets even more convoluted when a block is locked and altered in multiple snapshots, allowing you to restore to the multiple versions of the same file. Another thing to mention is the total "currently" used space for all snapshots listed in "df" from ONTAP doesn't fully reflect the size consumed by all the current snapshots until any recently deleted or auto-deleted snapshots finish going through the "block reclamation" process, which is an automated background task.

 

Regards,

 

Team NetApp

Team NetApp

paul_stejskal
2,471 Views

As Thanh said, you can't really accurately see from Linux. The best way is to use one of the snap/snapshot commands (depending on 7-mode or ONTAP 9).

GidonMarcus
2,453 Views

Or - if you need it in the Linux box itself. You can use rest API to query the volume URI

https://library.netapp.com/ecmdocs/ECMLP2862544/html/index.html#/storage/volume_collection_get

(search what's between the single quotes - '"snapshot": {'  in that doc)

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK
Public