There's a slight bug in replication jobs that useDisk Exclusions in V7 - the jobs won't run.. The workaround is to create the 'excluded' disk on the Replica - thin provisioned to prevent using up any space - so that the job still runs. Refer this post for more detail:
http://forums.veeam.com/viewtopic.php?f=2&t=17636
The problem is that after a successful job run, the disks on the replica are removed, so any subsequent jobs will fail unless they are manually re-added again. We have quite a few replication jobs, and manually recreating the disk for each job, after each run, until a fix is found, isn't really viable.
So I figured a post-job script to re-add the disks to the replica would be worth trying. I''m OK with powershell, but haven't had much experience with Veeam PS snap-in as yet..
Three questions come to mind:
- Can we piggy back off Veeam's PS shell to make VM vmdk changes, or do I have to shell into the PowerCLI?
- Rather than create an individual script for each Job, can we pass the current job name (that calls the script) as a parameter in the post-job activity command?
- Does anyone have any tips or snippets that might help me get started?
Code: Select all
$JobName (pipe in)
For each VM in JobName
For each VMDK in SOURCE VM
- If TARGET VM doesn't have matching disk at SCSI ID
- Create VMDK (thin provisioned, of same size/SCSI ID as source)
- End If
Next VMDK
Next VM
Andrew