How to reinstall domain master

I’m in a situation where I have a working UCS Domain Controller Master on a virtual environemnt that is broken and I can not export the VM from there. How can I re-build / install domain master without losing domain? I have secondary virtual environment where I installed Domain Controller Backup. Currently as soon as I shut down the Master it’s not possible to manage domain any more through the “slave”.