Script to rebuild a VDB

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
Hi,

Does anybody have a script that can be used to re-build a VDB? 

Quite often, our VDBS on a particular engine go into a failed state, which requires us to rebuild the VDB. It seems sensible to just grab the parameters from the existing VDB and just create a new one as a copy of the old one.

Has anyone (Delphix or the community) automated this yet?
Photo of Shamanth Hanchate

Shamanth Hanchate

  • 210 Points 100 badge 2x thumb
  • frustrated

Posted 2 years ago

  • 0
  • 1
Photo of Diego Loureda

Diego Loureda, Employee

  • 372 Points 250 badge 2x thumb
Hello Shamanth!

On your case the VDB is not in Running state because the refresh process fails. In order to make it available again you just need to run the Refresh process again. 
If refresh process fails in the middle, VDB is not ready and you won't be able to start it up. A full successful refresh is the only way to go there.

Hope this helps

Thanks
Diego
Photo of Adam Bowen

Adam Bowen, Official Rep

  • 17,420 Points 10k badge 2x thumb
To Diego's point, if you want an example of refreshing a vdb via a script, I just covered that in my blog post: https://community.delphix.com/delphix/topics/getting-started-with-the-delphix-python-module

But, there is a situation like you describe where an actual provision can fail and you fixed the issue and you just want to "do that provision again." I'll jot this down as an idea for another example for me to work on. 
Photo of Shamanth Hanchate

Shamanth Hanchate

  • 210 Points 100 badge 2x thumb
In our case, the refresh button is grayed out and the VDB is showing in an "INACTIVE" state. Can anything be done through the UI in this state?
Photo of Diego Loureda

Diego Loureda, Employee

  • 372 Points 250 badge 2x thumb
Let's have a quick call to discuss that Shamanth.

Thanks
Diego