-
- Expert
- Posts: 133
- Liked: 1 time
- Joined: Dec 15, 2015 1:07 pm
- Contact:
Eject tape after erasing
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
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
-
- Product Manager
- Posts: 20689
- Liked: 2384 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Eject tape after erasing
You can write a simple PS script that will answer your requirements and run it on whatever basis you want to. Thanks.
-
- Expert
- Posts: 133
- Liked: 1 time
- Joined: Dec 15, 2015 1:07 pm
- Contact:
Re: Eject tape after erasing
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.
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.
-
- Product Manager
- Posts: 20689
- Liked: 2384 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Eject tape after erasing
Just run it via PowerShell.Where should I integrate that script?
Something like this should meet your expectations. Be aware, to provide both tape and drive names.How shall I eject a tape via script?
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
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.Why does Veeam behave in such a way.
Thanks.
-
- Expert
- Posts: 133
- Liked: 1 time
- Joined: Dec 15, 2015 1:07 pm
- Contact:
Re: Eject tape after erasing
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.
-
- Product Manager
- Posts: 20689
- Liked: 2384 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Eject tape after erasing
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.
Can you elaborate on what issues do you experience with us an erased medium staying in drive for further use?
Thanks.
-
- Product Manager
- Posts: 14828
- Liked: 1774 times
- Joined: Feb 04, 2013 2:07 pm
- Full Name: Dmitry Popov
- Location: Prague
- Contact:
Re: Eject tape after erasing
This might be not related, however several eject and export bugs were fixed in Update 1 – please make sure you are up to date.
-
- Lurker
- Posts: 2
- Liked: never
- Joined: Jan 27, 2014 6:28 pm
- Full Name: Dylan Davison
- Contact:
Re: Eject tape after erasing
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 usev.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.
Code: Select all
Eject-VBRTapeMedium
Code: Select all
Eject-VBRTapeDrive
-
- Product Manager
- Posts: 20689
- Liked: 2384 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Eject tape after erasing
Understood. However, I don't see us changing this behaviour in the nearest future. Anyway, thank you for providing further information; appreciated.
Who is online
Users browsing this forum: Baidu [Spider], sschlott and 58 guests