Discussions related to exporting backups to tape and backing up directly to tape.
Post Reply
UT2015
Expert
Posts: 133
Liked: 1 time
Joined: Dec 15, 2015 1:07 pm
Contact:

Eject tape after erasing

Post by UT2015 »

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
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Eject tape after erasing

Post by veremin »

You can write a simple PS script that will answer your requirements and run it on whatever basis you want to. Thanks.
UT2015
Expert
Posts: 133
Liked: 1 time
Joined: Dec 15, 2015 1:07 pm
Contact:

Re: Eject tape after erasing

Post by UT2015 »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Eject tape after erasing

Post by veremin »

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.
UT2015
Expert
Posts: 133
Liked: 1 time
Joined: Dec 15, 2015 1:07 pm
Contact:

Re: Eject tape after erasing

Post by UT2015 »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Eject tape after erasing

Post by veremin »

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.
Dima P.
Product Manager
Posts: 14396
Liked: 1568 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Eject tape after erasing

Post by Dima P. »

This might be not related, however several eject and export bugs were fixed in Update 1 – please make sure you are up to date.
Dylan Davison
Lurker
Posts: 2
Liked: never
Joined: Jan 27, 2014 6:28 pm
Full Name: Dylan Davison
Contact:

Re: Eject tape after erasing

Post by Dylan Davison »

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.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Eject tape after erasing

Post by veremin »

Understood. However, I don't see us changing this behaviour in the nearest future. Anyway, thank you for providing further information; appreciated.
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests