Hello,
i need a report or script that generates a list of orphaned snapshots of the NetApp volume.
The report/script should query in the Commvault database the snapshots for a volume and the real snapshots on the NetApp volume. Both must be compared and all extra snapshots on the NetApp volume (Commvault knows nothing about) should be reported.
Has someone here something like that? Or a hint how this can be done?
Because of a database problem Commvault don’t delete the snapshots before a specific date. For volumes with a simple retention this is easy to do manual, but for the volumes with a advanced retention for monthly etc. snapshots it is complex when doing this manual, where will a report very helpful.
Kind regards
Stefan
Intellisnap: Report for orphaned NetApp snapshots?
![Contributor 5 Badge](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/23dbdb21-3596-44c3-b682-90c85342bfe7_thumb.png)
O.k. one not so easy way i found:
- Generate a report of all Jobs of the last years, output to a CSV. Import this to Excel and copy only the line with the Job-Id to a single text file.
- Login to every NetApp and copy the output of
“snap list -fields vserver,volume,snapshot,create-time”
to a single text file.
Now i have 2 files, one with only all Job-ID’s in the Commvault Database and one with all Snapshots on the NetApp.
This two files i copyed to a Linux machine and created a script:
#!/bin/bash
file=jobid
lines=$(cat $file)
for line in $lines
do
echo $line
grep -v $line snaps > snaps.neu
rm snaps
mv snaps.neu snaps
done
After running that script i had a file with only the snapshots Commvaut knows nothing about. In my case 450…
But it will be very nice if there will be a easyer way to that in the future to check for orphaned snapshots.
In this case for cleanup it will help me but i had already cases in the past where some snapshots where not deleted, so a report to check this every few moths will be nice...
Hi
The tool can be run directly from Array Management if want or there is also a report that can be downloaded from the CV Store.
Refer to: https://documentation.commvault.com/commvault/v11/article?p=36955.htm
Snap Reconciliation Report: https://cloud.commvault.com/webconsole/softwarestore/store.do#!/135/664/13096
![Contributor 5 Badge](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/23dbdb21-3596-44c3-b682-90c85342bfe7_thumb.png)
Hmm… That sounds more like cleanup the jobs in the Commvault database when snapshots are deleted on the NetApp, so the other direction.
I have tryed to download that report but my account don’t work for that. I think i must ask the customer if he can download that for me…
I will test and write the result.
Thank you
Hey
Wanted to follow up and see if the suggestions from
Thanks!!
![Contributor 5 Badge](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/23dbdb21-3596-44c3-b682-90c85342bfe7_thumb.png)
Currently i don’t found a way to download that report…
My login don’t work there , i can create support cases, download software and hotfixes but on that page i can’t login...
https://documentation.commvault.com/commvault/v11_sp20/article?p=40682.htm
![Contributor 5 Badge](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/23dbdb21-3596-44c3-b682-90c85342bfe7_thumb.png)
It’s not my CommCell, it’s from a customer and i’m only supporting the installation…
I had already asked the customer, but got no answer, will ask again next time when i have him at the phone...
Hey
![Contributor 5 Badge](https://uploads-eu-west-1.insided.com/commvault-eu/attachment/23dbdb21-3596-44c3-b682-90c85342bfe7_thumb.png)
Yes, no one has a login for that page and can’t help me. So no chance to get the report for me.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.