Zum Inhalt springen

Veeam move unprotected media to free pool

Veeam Backup & Replication does not automatically move tapes whose overwrite period has expired to the central “FreeMediaPool” from which all pools are used.

This can lead to free media being in a pool, while another cannot find free media.

The following short script finds all free media and moves them to the central FreePool.

cls
Add Veeam Snap InAdd-PSSnapin -Name VeeamPSSnapIn
define Media pool
s to process-myPoolsToProcess="Pool1"
,"GFS1","Pool2")#get all Veeam Media Pools with names in myPoolsToProcessPools Where-Object -in $myPoolsToProcess .for each ($myPool in $myPools ) - $
myMediaToProcess = Get-VBRTapeMedium -MediaPool -myPool.Name | Where-Object . . . . . . . . . . . . . . . . IsExpired -eq 1 -and . IsLocked -eq 0 -and . ProtectedBySoftware
-eq 0 -and . ProtectedByHardware -eq 0) - foreach
($myMediaTo
Proces in $myMediaToProc
ess) - #move media Move-VBRTapeMedium -Medium $myMediaToProces -MediaPool "Free"
-Confirm:$
false

Schreibe einen Kommentar