v7 - Eject Tape option is greyed out

Everything about backing up to tape

Re: v7 - Eject Tape option is greyed out

Veeam Logoby Dima P. » Wed Aug 21, 2013 9:41 am

Hello all, currently we have Eject media option disabled for standalone drives. However, we will research the possibility of providing the support of this option for standalone drives based on the provided feedback. Thank you!
Dima P.
Veeam Software
 
Posts: 6242
Liked: 440 times
Joined: Mon Feb 04, 2013 2:07 pm
Location: SPb
Full Name: Dmitry Popov

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Wed Aug 21, 2013 12:01 pm

I have managed to find a piece of software (reccomended by Dell) that kind of does the job. It is called "rwrite", if you download the utility and run the following command

Code: Select all
C:\rWrite>mt.exe eject Tape1


it ejects the tape as expected but only when all Veeam services are stopped unfortunatly :( so half way there. I am going to do some more testing to see if I can get it working as expected.
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Wed Aug 21, 2013 12:19 pm 1 person likes this post

Okay, I think there must have been something locked elsewhere as it seems to be working now as long as run as an admin. The code I have is in powershell and is:

Code: Select all
#load module for Veeam
asnp VeeamPSSnapin

#Get Inventory of left drive within Veeam
$Drive1 = Get-VBRTapeDrive | Where {$_.deviceid -eq "f5869f4a-acc9-4446-9d03-02cfe0ef28b8"}
$Drive1 | Start-VBRTapeInventory

#start of code to eject tapes with rWrite software

#change directory
cd C:\rWrite

#inventory the drives themselves, not through Veeam
.\mt.exe load Tape0

#eject the drives themselves, not through Veeam
.\mt.exe eject Tape0

#back to veam to inventory again

#Get Inventory of left drive within Veeam
$Drive1 = Get-VBRTapeDrive | Where {$_.deviceid -eq "f5869f4a-acc9-4446-9d03-02cfe0ef28b8"}
$Drive1 | Start-VBRTapeInventory


I am no great coder so who knows if this is any good or not. I have two drives so this is to eject one of them. The only thing is I cannot see anywhere in the backup to tape job to say run X after the job completes unlike in the normal backup job, am I missing anything?

Cheers
Mark
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby sbaumgartner » Wed Aug 21, 2013 12:25 pm

Could u post me pleas the link of that tool ? Thank you
sbaumgartner
Novice
 
Posts: 3
Liked: never
Joined: Thu Nov 08, 2012 10:35 am

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Wed Aug 21, 2013 12:47 pm

They sent me the link direct for me to get everything from their servers. I have asked if they can direct me to a public page to download it.

I have uploaded the files that they gave me https://drive.google.com/folderview?id= ... sp=sharing which you can look at. I take no responsability for the files stored there, use them at your own risk :)
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby v.Eremin » Wed Aug 21, 2013 2:10 pm

Has anyone had any experience with this tool?

Based on the corresponding IBM User Guide, scripting has been enabled since 4.0 release of ITDT utility. As far as I can understand, the syntax should be as following:

Code: Select all
itdt -f filename [Open Mode] Subcommand [Subcommand ...]


Note: "filename" should be a device special file for the drive/changer or the device address (host bus target lun), open mode - 1 (read/write) and subcommand - unload (the subcommand that rewinds and unloads the tape media).

I’ve to admit that my IBM-related knowledge leaves much to be desired, so, it’s quite possible that syntax has to be corrected slightly. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Wed Aug 21, 2013 2:37 pm

yea that is where i struggled with it. I asked Dell to help out with it as they sell their drives but they werent much use. I have set up some schedulded tasks to do a daily inventory and also to eject the tape which will hopefully do the job but we will see what tonight has in hold.

The problem is that I have had to set up as a scheduled task to run at a specific time as I can't see a way for the tape backup job to initial the job (unlike a VM backup job where you can).

Please remember my coding skills are very very basic! Here is what i've got for the daily inventory though
Code: Select all
$TapeID1="f5869f4a-acc9-4446-9d03-02cfe0ef28b8"
$TapeID2="dda137c0-c6f3-4fb4-ac4f-517d53f2bc56"

#load module for Veeam
asnp VeeamPSSnapin

#Check to see if the left drive is in use and collect the information from it
$VBRDrive1 = Get-VBRTapeDrive | Where {$_.deviceid -eq $TapeID1 -and $_.IsLocked -like "False"}
$VBRDrive2 = Get-VBRTapeDrive | Where {$_.deviceid -eq $TapeID2 -and $_.IsLocked -like "False"}

#Run Invnetory
$VBRDrive1 | Start-VBRTapeInventory
$VBRDrive2 | Start-VBRTapeInventory


And here is what I have for the eject
Code: Select all
$TapeNumber="Tape0"
$TapeID="f5869f4a-acc9-4446-9d03-02cfe0ef28b8"

#load module for Veeam
asnp VeeamPSSnapin

#Check to see if the left drive is in use and collect the information from it
$VBRDrive1 = Get-VBRTapeDrive | Where {$_.deviceid -eq $TapeID}
$DellDrive1 = Get-VBRTapeDrive | Where {$_.deviceid -eq $TapeID -and $_.IsLocked -like "True"}
#Veeam Inventory for the drives
$VBRDrive1 | Start-VBRTapeInventory

#Check if drive is in use
if ($DellDrive1 -eq $Null)  {$MTDrive = $TapeNumber} else {$MTDrive = "Tape-1"} #give false value if it is in use

#change directory
cd C:\rWrite

#inventory the drives themselves, not through Veeam
.\mt.exe load $MTDrive

#eject the drives themselves, not through Veeam
.\mt.exe eject $MTDrive

#back to veam to inventory again

#Get Inventory of left drive within Veeam
$VBRDrive1 | Start-VBRTapeInventory



Everything seems to be working as I wanted (other than it automatically running after the tape backup has finished) but we will see what happens tonight!
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby v.Eremin » Wed Aug 21, 2013 2:50 pm

I can't see a way for the tape backup job to initial the job (unlike a VM backup job where you can).

You can leave a given tape job without any schedule and initiate its start with the following command, instead:

Code: Select all
Get-VBRTapeJob –name “Name of your Tape Job” | Start-VBRJob

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

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Wed Aug 21, 2013 2:54 pm

That was the only way I could think of doing it as well but I didnt want to push much more out of the console really. I dont mind having the eject / inventories outside of it for now until it is able to be pulled in, but I would rather keep the scheduling of the jobs themselves inside the console itself really.
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby v.Eremin » Wed Aug 21, 2013 3:01 pm

Yep, makes sense. I was just trying to provide you with another possible option. Thanks.
v.Eremin
Veeam Software
 
Posts: 13266
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin

Re: v7 - Eject Tape option is greyed out

Veeam Logoby sbbots » Wed Aug 21, 2013 4:02 pm 1 person likes this post

marksmithuk wrote:We use the fact that the tape has ejected to show the end users that the job has completed and they are safe to remove the tape.

Same here. At a remote site I have a few chosen users who swap tapes for me. If the tape is still in the drive they assume the job is still running, if it is ejected then they know it is done.

So I agree, there should be an option to eject tapes after job completion on stand-alone drives.
sbbots
Enthusiast
 
Posts: 96
Liked: 25 times
Joined: Fri Aug 16, 2013 5:44 pm
Full Name: Matt B

Re: v7 - Eject Tape option is greyed out

Veeam Logoby Peter_Riederer » Thu Aug 22, 2013 2:58 pm

Just a small experience from todays customer visit:

- Tape for Monday Backup was loaded, as shown in Tapedrive in Veeam B&R
- actually loaded was tape for Wednesday backup
- Wednesday tape backup was shown successful, but nothing was transfered to tape, either the tape was ejected from the drive (Eject option in Backup was not selected)

wednesday tape is a member of Media Pool Nieberler$Tag which is selected for incremental backups

Image

Today i entered the Thursdays Tape and did an inventory scan before, Veeam now knows the right tape for today.
will check tomorrow if backup and transfer was successfull.
Peter_Riederer
Influencer
 
Posts: 14
Liked: 4 times
Joined: Mon Aug 19, 2013 11:44 am
Location: Munich, Germany
Full Name: Peter Riederer

Re: v7 - Eject Tape option is greyed out

Veeam Logoby marksmithuk » Thu Aug 22, 2013 3:07 pm

Mine was doing the same in a standard drive (no libary / barcodes), so i assumed it wasnt able to record it correctly. I have scraped the media labling etc for now.
marksmithuk
Enthusiast
 
Posts: 26
Liked: 3 times
Joined: Fri Apr 15, 2011 2:15 pm
Location: Devon, UK
Full Name: Mark Smith

Re: v7 - Eject Tape option is greyed out

Veeam Logoby PatrickL » Fri Aug 23, 2013 12:24 pm

I had this problem too.

21/08/2013 15:33:36 :: 0 directories and 0 files backed up successfully

The issue was for me that i was using the BackupExec driver for the tape drive.
I removed it and installed the default Microsoft one.
This solved the problem for me.

The strange thing is that Veeam should give an error, but does not.
I was also unable to do a manual tape inventory.
PatrickL
Lurker
 
Posts: 1
Liked: never
Joined: Fri Aug 23, 2013 12:14 pm
Full Name: Patrick Leclef

Re: v7 - Eject Tape option is greyed out

Veeam Logoby Peter_Riederer » Fri Aug 23, 2013 1:22 pm

i had the same problem with the original ibm driver, as in my first post mentioned.
with the backup exec driver, the trive was not shown in veeam.
Peter_Riederer
Influencer
 
Posts: 14
Liked: 4 times
Joined: Mon Aug 19, 2013 11:44 am
Location: Munich, Germany
Full Name: Peter Riederer

PreviousNext

Return to Tape



Who is online

Users browsing this forum: No registered users and 7 guests