This is regarding NBU Image Cleanup job that no longer running on activity monitor.
In my case, this problem occurred since customer tried to change the date and time on server but wrong syntax; the year move ahead to 2023. The worst, he didn’t stop the NBU services, so suddenly a few backup policy are running also the image cleanup.
The image cleanup that ran on that day cleaned up most..if not all the images..around 966 images:
log.101923:12:48:48.825  <4> delete_expired_backups: image delete 45970 ms, image verify 0 ms, tir_info_remove 0 ms, copies delete 0 ms
log.101923:12:48:48.831  <4> delete_expired_backups: compression 0 ms, # of bptm calls 0
log.101923:12:48:48.831  <4> delete_expired_backups: deleted 966 expired records, compressed 0, tir removed 0, deleted 0 expired copies
log.101923:12:48:49.561  <2> delete_expired_backups: OVsystem(/usr/openv/netbackup/bin/admincmd/nbdelete -allvolumes -jobid 62120) successful
log.101923:12:48:49.573  <4> delete_expired_backups: Exiting
The date and time fixed on that day, but till last week, there are no image cleanup job was ran.
Tried to follow this guide but still no luck:
[GENERAL ERROR: The VERITAS NetBackup ™ image database does not clean up expired images on the expiration date:
[GENERAL ERROR: Image cleanup is no longer running:
The case was solved by today ^_^, if you got the same problem, what you need to do are:
1) Stop NBU
2) rm /usr/openv/netbackup/bin/cleanup.lock
3) rm /usr/openv/netbackup/bin/bpsched.d/lastClean
4) rm /usr/openv/netbackup/bin/bpsched.d/last_time_expired_media
5) rm /usr/openv/netbackup/bin/bpsched.d/cleanup (if exists)
6) rm /usr/openv/netbackup/db/jobs/pempersist
7) Restart NBU
8) Check if cleanup job runs by itself.
After finished on step number 7, on NBU GUI you will find Cleanup job running on activity monitor. To make sure, you have to wait till next couple hours, depend on the image cleanup interval configuration (default is 12 hours).