Problem
The NetBackup Policy Execution Manager (nbpem) is having issues starting, crashing, or not running schedules as it should.
The nbpem service crashing and hanging can be caused by incomplete or corrupt configuration information in the cache, due to previous backup failures, program hangs or crashes, or upgrades.
One example being Image Cleanup jobs running every second (or image cleanup jobs running too often)
Solution
On the Master Server, clear the NetBackup Policy Execution Manager (nbpem) cache.
- Stop all NetBackup services.
- If you can't stop a service, then look for the processes corresponding to the services and kill them.
- In Windows, to see the name of the process that runs the service, run
Services.msc
, go to the service and choose Properties to see the process name.
Windows: (Kill a process using OS taskkill command.)
- Open the Command Prompt as the current user or as Administrator.
- Type
tasklist
to see the list of running processes and their Process ID (PID). - To kill a process by it's PID, type the command:
taskkill /F /PID pid_number
- To kill a process by it's name, type the command:
taskkill /IM "process_name" /F
Unix/Linux: (Kill a process using OS kill or killall commands.)
- Use pidof command with the application name (app_name) to find the running Process ID (PID):
pidof app_name
- To kill a process using the Process ID:
kill -9 PID
- To kill a process using the application name:
killall -9 app_name
- Then, remove the following files and directories:
Windows:
install_path\NetBackup\bin\bpsched.d\*
install_path\NetBackup\bin\bprd.d\*
install_path\NetBackup\db\jobs\pempersist2
install_path\NetBackup\db\jobs\restart\*
Unix/Linux:
/usr/openv/netbackup/bin/bpsched.d/*
/usr/openv/netbackup/bin/bprd.d/*
/usr/openv/netbackup/db/jobs/pempersist2
/usr/openv/netbackup/db/jobs/restart/*
- Start NetBackup services
- Confirm nbpem is running without any issues such stopping or crashing.
- Run the command below to force nbpem to re-read configurations and rebuild the cache:
Windows:
install_path\NetBackup\bin\admincmd\nbpemreq -updatepolicies
Unix/Linux:
/usr/openv/netbackup/bin/admincmd/nbpemreq -updatepolicies
- Wait at least 5 minutes after performing these steps to let nbpem rebuild itself and then backup jobs should start as scheduled.