Discussions specific to tape support
erottier
Lurker
Posts: 1
Liked: never
Joined: Apr 02, 2019 10:07 am
Contact:

Re: Recycle expired tapes to other pools

Post by erottier » Apr 02, 2019 11:48 am

Is there any news on this? I would love this feature.
I would guess this already should be discussed after all these months.

Maybe a roadmap? :)

Dima P.
Product Manager
Posts: 10957
Liked: 915 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Recycle expired tapes to other pools

Post by Dima P. » Apr 02, 2019 12:17 pm

Hello and welcome to the community erottier.

This feature is in the list of potential improvements but I cant provide any ETA. Consider your vote being added to this feature request, thank you!

segfault
Enthusiast
Posts: 29
Liked: 11 times
Joined: Dec 14, 2017 8:07 pm
Full Name: John Garner
Contact:

[MERGED] Move expired tapes to Free Pool

Post by segfault » May 28, 2019 3:01 pm 1 person likes this post

It would be nice if there was an option to have expired tapes moved back to the free pool.

I have a 6 month and a 2 year GFS pool. Invariably, one pool has expired tapes in it while a job assigned to the other pool is blocked, waiting for tapes.

This would automate my Monday morning routine of manually moving the expired tapes to the Free pool so that the blocked job can resume.

--john

veremin
Product Manager
Posts: 17226
Liked: 1506 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Recycle expired tapes to other pools

Post by veremin » May 28, 2019 6:52 pm

Hi, John, consider your vote counted. Thanks!

MihaiC.
Novice
Posts: 3
Liked: 2 times
Joined: Oct 19, 2018 6:40 am
Full Name: Mihai Cical
Contact:

Re: Recycle expired tapes to other pools

Post by MihaiC. » Jan 17, 2020 1:20 pm 1 person likes this post

Hello,
We received following reg key in a case not directly linked to this thread:

TapeGfsExpiredMediumSharing
Dword
HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication\
Set to 1 (decimal)

This should allow any Media Type to use any expired tapes found in the same specific Media Pool.
Unfortunately it still does not allow usage of any expired tapes, from any Media Pools, situation which could have been easily solved with a simple "Move expired tapes to Free Media Pool".
Hopefully it will help some happy case of only one GFS schedule for all their backup needs.

Considering that this thread started in 2014 and assuming that this reg key option was added in 2019 (0 results currently in google when searching for this key), here is hoping that in 2024 we will have the full requested feature that exists in other backup software since at least 2000-2005.

For all other situations of combinations using multiple GFS Media Pools and/or multiple simple Media Pools, feel free to use/update following power shell scripts to meet your needs, instead of performing manual tasks:

if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
asnp VeeamPSSnapin
Connect-VBRServer
$tape = Get-VBRTapeMedium | where {$_.isExpired -eq $True -and $_.ProtectedBySoftware -eq $False -and -Not $_.Description}
If($tape){
Move-VBRTapeMedium -Medium $tape -MediaPool Free -Confirm:$false
}
Disconnect-VBRServer

First line is for cases where the scripts needs admin permissions to run, you can remove it completely if it's not required for you.
$tape selection line has 2 exceptions in the example: protected tapes and / or with comments will not be selected for movement, even if they are expired. Feel free to remove/modify those exceptions as per your needs.
My recommendation would be to setup this script to run at the end of a Veeam job which runs more often than the backup to tape.
This will ensure that tapes expired while the backup to tape job is running will be moved to Free Media Pool.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests