DOCUMENTATION: Extended procedures for canceling jobs that appear to be hung.

Problem

DOCUMENTATION: Extended procedures for canceling jobs that appear to be hung.

Solution

Manual(s):
Veritas NetBackup (tm) 5.0 System Administrator's Guide, Volume I for Windows
Veritas NetBackup (tm) 5.1 System Administrator's Guide, Volume I for Windows
Veritas NetBackup (tm) 6.0 System Administrator's Guide, Volume I for Windows
Veritas NetBackup (tm) 6.5 System Administrator's Guide, Volume I for Windows
Veritas NetBackup (tm) 7.0 System Administrator's Guide, Volume I for Windows

Page:  
N/A

Modification Type:
Addition

Modification:
To cancel uncompleted jobs in the Administration Console:
1. Open the Activity Monitor and select the Jobs tab
2. Select the uncompleted jobs you want to cancel. An uncompleted job is one that is in the Queued, Re-Queued, Active, Incomplete, Waiting for Retry or Suspended state.
3. Select Actions | Cancel Job.
4. To cancel all uncompleted jobs in the jobs list, click Actions | Cancel All Jobs

Another way to cancel a job is to use the bpdbjobs command from the following path:
install_path\NetBackup\bin\admincmd

To cancel a single job_id, enter the following command:
bpdbjobs -cancel <job_id>  

Here is an example of the command line canceling of job_id 11328:
bpdbjobs -cancel 11328

To cancel multiple job_id's, enter the following command:
bpdbjobs -cancel job_id,job_id,job_id    (The job_id is listed in the activity monitor's display.)

The following is an example of canceling multiple jobs 11328, 11329, 11330 from the command line (do not type a space after the comma):
bpdbjobs -cancel 11328,11329,11330

It is important to give jobs time to cancel.  Depending upon the job state, this could take several minutes.  If backup jobs fail to cancel, it may be necessary to go to the client itself and use Windows Task Manager to kill all running bpbkar32 processes (if there are no other desired backup jobs running on the client). There will be one bpbkar32 process for each running NetBackup stream.  Killing this process on the client side should cause the backup job to fail in the activity monitor of the Master Server.  Restore jobs invoke a tar32 process on the client that can be canceled if hung.

If jobs still fail to cancel, it may be necessary to stop NetBackup services on the Master Server when no other jobs are running and ensure that no NetBackup processes remain with the services stopped.  The bpps command can be used to display NetBackup Processes:

<install_dir>\NetBackup\bin\bpps

After stopping NetBackup services and exiting any open consoles, give the processes some time to terminate.  Then, use the bpps command to ensure that there are no remaining hung NetBackup processes (tracker.exe can remain and doesn't affect this issue).  If processes remain, use the following method to terminate them:

1.  First, attempt to end the hung process(es) using Windows Task Manager's "End Task" function.

2.  If the Task Manager is unsuccessful, use drwtsn32 to end the hung process(es).
  • Note the PID of the hung process(es) in the Windows Task Manager (Figure 1).  It may be necessary to add the "PID" column.
Figure 1
 
  • Click Start | Run
  • Type drwtsn32 -p <pid number> to end the process.
NOTE: drwtsn32 no longer exists on Windows 2008 and newer. For these systems the native windows command 'taskkill" can be used, as it applies to all of Windows 2003, 2008, 2008R2.  Example usage would be:
  • taskkill /IM bpdbm.exe  (to kill by process name)
  • taskkill /PID  4140 (to kill by PID number)

4.  If none of the above steps end the process, it may be necessary to reboot the NetBackup Master Server to ensure all processes are restarted.


Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)