I am currently writing a bunch of scripts to handle the various resources that are not known about by VMware SRM but still need to be part of the recovery plan as they are used by various VMs.
So far I have been working on the 'test' phase of the recovery plans. I can clone the various volumes, re-establish appropriate CIFS and NFS shares and mounts and undo it all at the end of the test.
I have started working on the real thing and have a question that I can not answer as I am not allowed to try it on a real production volume and my test volume doesn't have enough data or deltas in it to catch it when the relationship is not 'idle'.
Can one break-off a snapmirror that is not idle or do I need to do something like ?
Pseudo-code:
while ( GetNaSnapmirror filer:volume ).Status -ne 'idle' { Wait-a-bit }
Invoke-NaSnapMirrorBreak filer:volume
or maybe
while ( GetNaSnapmirror filer:volume ).State -ne 'broken-off' {
Invoke-NaSnapMirrorBreak filer:volume
Wait-a-bit
}
Any suggestions would be helpful.