I am running OnTap 9.5 and SQL Server 2016 on Windows 2012.
We have a server which we wish to use solely for reporting purposes. We would use FlexClones generated from the latest snapshot of our production SQL Server, and stand them up on the reporting server. We would like to refresh the data 1-2x daily.
Has anyone here had experience with automating this? As I see it, we'd have to:
Stop SQL Server.
Offline the Data and Log LUNs.
Offline the Data and Log volumes.
Rescan from the Windows host.
Destroy the Flex Clones.
Create new FlexClones of the latest Data and Log snapshots.
Rescan from the Windows host.
Restart SQL Server.
That's oversimplifying as I know there are more substeps but I think that would do it. As long as the LUN IDs are the same I think it would be rather easy to get the Windows Host to pick the LUNs up and assign the same path to them.
What would you use to accompish this? PowerShell? Ansible? If it swings the decision I do not have Ansible in my environment and would balance out standing that up against the amount of work that would be involved. If Ansible is worlds easier than PowerShell in terms of scripting this it might be easier to go that way.