Page 1 of 1

bpbackup exit code 12 (file open failed)

Posted: Tue Oct 22, 2019 4:26 pm
by cah
While trying to back up on the server with NetBackup command bpbackup, I got an error:

Code: Select all

# /usr/openv/netbackup/bin/bpbackup -w -L /laxm1311/logs/progress.log /laxm1311/oracle/PRD/12102
EXIT STATUS 12: file open failed
It happened only when I was trying to write to /laxm1311/logs. If the log file resides in /tmp, it would work fine.

It turned out I have to add the directory to BPCD_WHITELIST_PATH in bp.conf.

Code: Select all

BPCD_WHITELIST_PATH = /laxm1361/logs
BPCD_WHITELIST_PATH = /laxm1311/logs
BPCD_WHITELIST_PATH = /laxm1321/logs
BPCD_WHITELIST_PATH = /laxm1341/logs
Each directory needs to be specified in a separate line in bp.conf.

After adding BPCD_WHITELIST_PATH , I was able to issue the bpbackup command successfully.