We use AWS VTL for backing up some of our larger SMB file shares (mainly AWS FSx for Windows) that run into a few terabytes each.
When running a tape backup job we’d run a powershell script to check there were at least 10 free tapes before starting each job (there’s around four or five chained jobs).
The script worked fine on VBR v12, but always returns “TooManyRequests” on v13.
I have found various “retry” scripts, but the VBR commands ALWAYS return “TooManyRequests” so never complete.
Is there now an alternative method to auto load blank tapes that didn’t exist in v12?
Our script that worked in v12:
# Get Library
$NOVA_Tape_Library = Get-VBRTapeLibrary -Name "Novasol Gateway-VTL V3"
# Get Number of Free Tapes
$NOVA_Free_Tapes = (Get-VBRTapeMediaPool -Name "Free").medium | where {$_.LibraryId -eq $NOVA_Tape_Library.Id}
# if number of free tapes < 10 import tapes and format for use?
if ($NOVA_Free_Tapes.length -lt 10) {
write-host "Import Tapes"
Import-VBRTapeMedium -Library $NOVA_Tape_Library -Wait
# need to wait longer
Start-Sleep -s 20
write-host "Convert 'Unrecognized' to 'Free'"
# Get Number of Unrecognized Tapes
$NOVA_Unrecognized_Tapes = ($NOVA_Tape_Library | Get-VBRTapeMediaPool -Name "Unrecognized").medium | where {$_.LibraryId -eq $NOVA_Tape_Library.Id}
$NOVA_Unrecognized_Tapes | Set-VBRTapeMedium -MarkAsFree
}Does anyone have any sort of fix for this?
Thanks,
Richie
