Eject tape after erasing

Everything about backing up to tape

Eject tape after erasing

Veeam Logoby UT2015 » Tue Apr 05, 2016 7:33 am

Hi,

when manually selecting an online tape and erasing it (right mouse "Erase Tape") the tape is moved into the corresponding drive and it is erased, but it is not automatically ejected, it stays in the drive. It currently has to be ejected manually ("Eject Tape").

Is there a way to automatically eject it after erasing?

Regards,
UT2015
UT2015
Expert
 
Posts: 120
Liked: 1 time
Joined: Tue Dec 15, 2015 1:07 pm

Re: Eject tape after erasing

Veeam Logoby v.Eremin » Tue Apr 05, 2016 9:23 am

You can write a simple PS script that will answer your requirements and run it on whatever basis you want to. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Eject tape after erasing

Veeam Logoby UT2015 » Tue Apr 05, 2016 9:27 am

Where should I integrate that script?

How shall I eject a tape via script?

Why does Veeam behave in such a way. If multiple tapes are erased, all tapes except the last one are automatically ejected.
UT2015
Expert
 
Posts: 120
Liked: 1 time
Joined: Tue Dec 15, 2015 1:07 pm

Re: Eject tape after erasing

Veeam Logoby v.Eremin » Tue Apr 05, 2016 10:18 am

Where should I integrate that script?

Just run it via PowerShell.

How shall I eject a tape via script?

Something like this should meet your expectations. Be aware, to provide both tape and drive names.

Code: Select all
asnp VeeamPSSnapin
$Tape = Get-VBRTapeMedium -Name "Name of your Tape"
Erase-VBRTapeMedium -Medium $Tape -Wait
$Drive = Get-VBRTapeDrive -Name "Name of your Drive"
Eject-VBRTapeDrive -Drive $Drive


Why does Veeam behave in such a way.

It's by design. If you initiate erase operation, we expect that a tape will be used either now or during next job cycle. Thus, we leave media in the device.

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Eject tape after erasing

Veeam Logoby UT2015 » Wed Apr 06, 2016 6:27 am

But you changed the behaviour. We have used that function a lot in V8. In V8 always all tapes were automatically ejected. In V9 the last tape stays in the drive.
UT2015
Expert
 
Posts: 120
Liked: 1 time
Joined: Tue Dec 15, 2015 1:07 pm

Re: Eject tape after erasing

Veeam Logoby v.Eremin » Wed Apr 06, 2016 12:11 pm

We didn't change anything, as we've had this behaviour since version 7 and it's been always an intended one.

Can you elaborate on what issues do you experience with us an erased medium staying in drive for further use?

Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: Eject tape after erasing

Veeam Logoby Dima P. » Fri Apr 08, 2016 5:28 pm

This might be not related, however several eject and export bugs were fixed in Update 1 – please make sure you are up to date.
Dima P.
Veeam Software
 
Posts: 6242
Liked: 440 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: Eject tape after erasing

Veeam Logoby Dylan Davison » Wed Jun 01, 2016 8:59 pm

v.Eremin wrote:We didn't change anything, as we've had this behaviour since version 7 and it's been always an intended one.

Can you elaborate on what issues do you experience with us an erased medium staying in drive for further use?

Thanks.


1.It is very easy to accidentally fill the source slots in the library when changing tapes if the drives do not eject following inventory/erase jobs. Sometimes, you may run back to back erase or inventory jobs, or inventory followed by erase jobs. Keeping the tapes in the drives is problematic in these cases. Also, if you are scripting this, you should use
Code: Select all
Eject-VBRTapeMedium
instead of
Code: Select all
Eject-VBRTapeDrive


When you are converting from backup exec to Veeam, you may find as we did that you have to LONG erase ALL of your thousands of tapes at 2 hours per tape. To do this, you need to selectively pick un-erased tapes to avoid wasting time long erasing tapes. Doing this in powershell instead of with the GUI is a real hassle, so you are back to needing a way to eject tapes after all erase/inventory jobs.
Dylan Davison
Lurker
 
Posts: 2
Liked: never
Joined: Mon Jan 27, 2014 6:28 pm
Full Name: Dylan Davison

Re: Eject tape after erasing

Veeam Logoby v.Eremin » Thu Jun 02, 2016 10:59 am

Understood. However, I don't see us changing this behaviour in the nearest future. Anyway, thank you for providing further information; appreciated.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to Tape



Who is online

Users browsing this forum: No registered users and 4 guests