We need to add some volumes to our include list for each NetApp host on our VBR. So, I wrote some PowerShell to go ahead and loop through each NetApp Host on the VBR and run the following Veeam PowerShell commands to do this:
This to grab all the volumes for a NetApp Host
Code: Select all
$volumes = Get-NetAppInfrastructureVolume -Host $appHost
Code: Select all
$volumesToAdd = $volumes | Where-Object {$missingVolumes.Name -contains $_.Name}
Code: Select all
Set-NetAppHost -Host $appHost -VolumeScanType Include -IncludedVolume $volumesToAdd
Code: Select all
(Get-NetAppVolume -Host $appHost).Count
65
Code: Select all
(Get-NetAppVolume -Host $appHost).Count
57
Hoping I'm missing something like another parameter to actually not kill off the include list or something.
(side question) Is it normal that it takes like 2-5 minutes for the list to update after the command was successful?