110 likes | 214 Views
Use Case: Automated Snapshot Archiving using APIs. Jonathan Tourtellot Enterprise Infrastructure Architect. Agenda. The Customer Environment The Problem The Solution Script Demonstration / Questions. Customer Environment. Virtualized heterogeneous SAP environment
E N D
Use Case: Automated Snapshot Archiving using APIs Jonathan Tourtellot Enterprise Infrastructure Architect
Agenda • The Customer Environment • The Problem • The Solution • Script Demonstration / Questions
Customer Environment • Virtualized heterogeneous SAP environment • MetroCluster primary storage • Single-controller SnapVault destination • ~100 Linux and Windows virtualized OSes running Oracle database and SAP applications • Fibre Channel RDMs and Datastores
Backup Requirements • Three backup types in environment • SMSAP Snapshots for SAP/Oracle databases, integration with backint • Linux and Windows VMs • VSC Snapshots for virtual machines • File system Snapshots for SAP-related NFS/CIFS volumes • All backups must be SnapVaulted • Due to size of environment, a centralized SnapVault monitoring/scheduling system is a must.
The Problem • No SnapVault integration under Windows with Protection Manager • How to trigger SMSAP SnapVault relationships under Windows? • How to provide for a common SnapVault management interface?
The Solution • NetApp Manageability SDK to the rescue! • Through heavy reuse of the perl code examples provided by the NetApp Manageability SDK, I was able to write, test, and implement a SnapVault control script to manage the entire replication environment in less than a week.
Overview • A perl script, run from cron, that parses the config file and acts like a „protection manager lite“ to manage the SnapVault relationships • Central management • Logfile-based reporting
Overview of the Config File concurrent=1 # throttle to limit the number of concurrent snapvault # updates archivename=sv_test # „snapvault snap sched“ to use on the destination user=scriptuser # For the API calls we need a user and password password=password # on the filers debug=yes # If yes, write out debug logs logpath=/home/user # Where to write the logfile logfile=log.out filer02-stor --> filer02 # Map between interface names and hostname snapsearchstring=smsap_ # The most recent source Snapshot name containing this string will be used tor the update. (optional) # The following lines, copied from „snapvault status“ define the relationships 10.68.9.230:/vol/sv_test_01/- filer02-stor:/vol/test_dest2/01 10.68.9.230:/vol/sv_test_02/- filer02-stor:/vol/test_dest2/02