Please note the script will delete snapshots of running backups if executed during vm image backups. So please follow below steps instead to run it before start of maintenance window.
1) Download from ftp://avamar_ftp:anonymous@ftp.avamar.com/software/scripts/snapJanitor.jar
Thanks alot. I actually have been in contact with Avamar support asking for this script. I read about it on a blog somewhere. I was told by Avamar support that they didn't know anything about this script :-(
I can see that the script is working but I did not solve my issues with VM image backups failing. I have created another post in the Avamar forum regarding the errors I see. Can you have a look and see if you know a solution to the problem?
Sameer_Khan
121 Posts
0
November 17th, 2011 08:00
What’s the version of avamar proxy version 5 or 6? Use below tool to clean up leftover snapshots as failed or cancelled backups will keep snapshots.
Download below script on Utility Node under /usr/local/avamar/bin
ftp://avamar_ftp:anonymous@ftp.avamar.com/software/scripts/snapJanitor.jar
Give the script execute permissions
chmod 775 snapJanitor.jar
Run below command as admin user. You can also output it to file.
java -jar snapJanitor.jar --ava
Thanks
Sameer Khan
Sameer_Khan
121 Posts
0
November 18th, 2011 10:00
Please note the script will delete snapshots of running backups if executed during vm image backups. So please follow below steps instead to run it before start of maintenance window.
1) Download from ftp://avamar_ftp:anonymous@ftp.avamar.com/software/scripts/snapJanitor.jar
snapJanitor.jar and LaunchSnapJanitor.sh
2) cp snapJanitor.jar /usr/local/avamar/bin/snapshotJanitor.jar (as root)
3) cp LaunchSnapJanitor.sh
/usr/local/avamar/etc/gsan-maint-scripts/maintenance/
4) chmod 755
/usr/local/avamar/etc/gsan-maint-scripts/maintenance/LaunchSnapJanitor.sh
This will run the script daily at the start of the maintenance window.
Run logs will be at:
/usr/local/avamar/var/log/snapshotJanitor
Old logs will need to be manually deleted.
broeste1
153 Posts
0
November 18th, 2011 11:00
Hi Sameer,
Thanks alot. I actually have been in contact with Avamar support asking for this script. I read about it on a blog somewhere. I was told by Avamar support that they didn't know anything about this script :-(
I'm running AVE v. 6.0 by the way
I will give it a try and get back to you
much appreciated
Thomas
Sameer_Khan
121 Posts
0
November 18th, 2011 15:00
Forgot to add path of other script.
ftp://avamar_ftp:anonymous@ftp.avamar.com/software/scripts/LaunchSnapJanitor.sh
Thanks
Sameer Khan
broeste1
153 Posts
0
November 22nd, 2011 02:00
Hi Sameer,
I can see that the script is working but I did not solve my issues with VM image backups failing. I have created another post in the Avamar forum regarding the errors I see. Can you have a look and see if you know a solution to the problem?
here is the link
https://community.emc.com/message/577145#577145
Sameer_Khan
121 Posts
0
November 22nd, 2011 09:00
I replied to your other thread. Thanks.