Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

How to find out what active backup jobs are using a tape drive needed for restore.

Updated: 21 May 2010 | 8 comments
cpachecofer's picture
0 0 Votes
Login to vote

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,

discussion Filed Under:

Comments

Andy Welburn's picture
06
Nov
2009
3 Votes +3
Login to vote

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 ..."

gavrilov's picture
06
Nov
2009
2 Votes +2
Login to vote

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}'`" ; done

It will give you this output:  Jobid -- MediaID
It works _ONLY_ for active jobs.

gavrilov's picture
06
Nov
2009
1 Vote +1
Login to vote

See my last message

See my last message

Karthikeyan Sundaram's picture
06
Nov
2009
5 Votes -3
Login to vote

Cool Buddy ! Check this ! No need of Active Drive

 Capture.JPG

Thanks, Karthikeyan Sundaram.

Karthikeyan Sundaram's picture
06
Nov
2009
4 Votes -4
Login to vote

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.

gavrilov's picture
06
Nov
2009
3 Votes +3
Login to vote

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}' ; done

Put 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.

 

cpachecofer's picture
10
Nov
2009
0 Votes 0
Login to vote

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 ******

VKumar's picture
10
Nov
2009
2 Votes -2
Login to vote

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....