How to find out what active backup jobs are using a tape drive needed for restore.
Hello,
I would like to know if there is a command or way to find out backups jobs running on a specific tape drive.
We are using multiplexing and tapes are used for with more than one client and job at a time.
So, if I want to launch a restore and there are no available drives, how can I know all backups jobs using that drive?
Thanks,
Not sure if there's another way, but
there was a similar query the other day regarding which jobs are using specific media.
https://www-secure.symantec.com/connect/forums/which-job-using-media
You could use similar methodology to determine tape drives.
e.g.
bpdbjobs -all_columns|grep drive_name|cut -d "," -f1,5,6,7 (where fields 1,5,6 & 7 are JobID, Policy, Schedule & Client respectively)
would result in:
982850,Policy_1,Schedule_1,Client_1
982843,Policy_2,Schedule_2,Client_2
Regards Andy
"It's not too late to panic ..."
You can do it this way: for
You can do it this way:
for i in `bpdbjobs -noheader|grep -i backup|grep -i active|awk '{print $1}'`; do echo "$i -- `bpdbjobs -jobid $i -all_columns |awk -F, '{print $49}'|awk '{print $6}'`" ; doneIt will give you this output: Jobid -- MediaID
It works _ONLY_ for active jobs.
See my last message
See my last message
Cool Buddy ! Check this ! No need of Active Drive
Thanks,
Karthikeyan Sundaram.
Sorry Missed to Mark the Option - Click on Preview Media
Just go to Actions in BAR, and Select the Option Preview Media. That's you will be able to get the media details for restore with out active drives.
Mark my Comment as Solution If you are satisfied.
Thanks,
Karthikeyan Sundaram.
Your question is: How to
Your question is:
How to find out what active backup jobs are using a tape drive needed for restore.
I think this solution will be better.
If you know your drive name you simply can do this:
for i in `bpdbjobs -noheader|grep -i backup| grep -i active |awk '{print $1}'`; do bpdbjobs -jobid $i -all_columns |nawk -F, '/HP.ULTRIUM3-SCSI.000/ {print $1}' ; donePut your Drive name instead of HP.ULTRIUM3-SCSI.000
As a result you'll have a list of jobs and you can use it to cancell them from bpdbjobs.
Thank you very much for all
Thank you very much for all the solutions.
I'm sure they will be helpful for me.
****** Carpe Diem ******
Hi, this is a simple
Hi, this is a simple one
Follow the steps:
1) From restore window get the tape ID which are required for restore
2) on media server go to location /usr/openv/netbackup/bin/admincmd
3) type command ./nbrbutil -dump | grep -i <tape id>
4) from the output of the command search for "jobid=2629906".
5) you got the job id wich is using the given tape.
Cheers....
Would you like to reply?
Login or Register to post your comment.