Highlighted

Net backup status 6

Hello,

Netbackup version 7.7.3

Solaris 10

I have encountered the following policy error:

02/06/2019 13:54:03 - Info nbjm (pid=869) starting backup job (jobid=258972) for client tooda1-vip, policy TO_ODA_ORA_BSCSDB_DB, schedule Full_1M
02/06/2019 13:54:03 - Info nbjm (pid=869) requesting MEDIA_SERVER_WITH_ATTRIBUTES resources from RB for backup job (jobid=258972, request id:{47A3905C-2A0E-11E9-8802-0010E02E3BFE})
02/06/2019 13:54:03 - requesting resource STU-STK-VTL
02/06/2019 13:54:03 - requesting resource tobckmng.NBU_CLIENT.MAXJOBS.tooda1-vip
02/06/2019 13:54:03 - requesting resource tobckmng.NBU_POLICY.MAXJOBS.TO_ODA_ORA_BSCSDB_DB
02/06/2019 13:54:03 - granted resource  tobckmng.NBU_CLIENT.MAXJOBS.tooda1-vip
02/06/2019 13:54:03 - granted resource  tobckmng.NBU_POLICY.MAXJOBS.TO_ODA_ORA_BSCSDB_DB
02/06/2019 13:54:03 - granted resource  STU-STK-VTL
02/06/2019 13:54:03 - estimated 0 kbytes needed
02/06/2019 13:54:03 - Info nbjm (pid=869) started backup (backupid=tooda1-vip_1549457643) job for client tooda1-vip, policy TO_ODA_ORA_BSCSDB_DB, schedule Full_1M on storage unit STU-STK-VTL
02/06/2019 13:54:03 - started process bpbrm (pid=21471)
02/06/2019 13:54:04 - Info bpbrm (pid=21471) tooda1-vip is the host to backup data from
02/06/2019 13:54:04 - Info bpbrm (pid=21471) reading file list for client
02/06/2019 13:54:04 - connecting
02/06/2019 13:54:05 - Info bpbrm (pid=21471) starting bphdb on client
02/06/2019 13:54:05 - Info bphdb (pid=65069) Backup started
02/06/2019 13:54:05 - Info bphdb (pid=65069) Processing /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup_BSCSDB.sh
02/06/2019 13:54:05 - Info bphdb (pid=65069) Waiting for the child status
02/06/2019 13:54:05 - connected; connect time: 0:00:00
02/06/2019 14:35:47 - Error bpbrm (pid=21471) from client tooda1-vip: ERR - Script exited with status = 1 <the requested operation was partially successful>
02/06/2019 14:35:47 - Error bpbrm (pid=21471) from client tooda1-vip: ERR - bphdb exit status = 6: the backup failed to back up the requested files
02/06/2019 14:35:48 - Info bphdb (pid=65069) done. status: 6: the backup failed to back up the requested files
02/06/2019 14:35:48 - end writing
the backup failed to back up the requested files  (6)

 

Does anyone have any idea how can I fix this?

6 Replies

Re: Net backup status 6

@CristianMarin27

We can unfortunately not tell you how to fix this. We can only try to point you in the right direction.

This is the problem:

ERR - Script exited with status = 1 

So, step 1 is for dba to double-check the script. 
There should be a variable in the script for the rman output file.
Look for the output file and check this as a start. 

You can also ask the dba to run the script directly on the Oracle server (as the Oracle user).
Does this work? 

Next step will be to run the script as root. 
When the backup is started from the master, the script will be run as root on the client (Oracle server).
It is therefore important to have the correct 'su - <oracle-user>  .... ' in the script. (As per the examples in the sample scripts.)

For further troubleshooting, create dbclient and bphdb  folders in /usr/openv/netbackup/logs and chmod 777. 
(See Troubleshooting chapter in NBU for Oracle manual.)

Re: Net backup status 6

Hello Marianne,

Thanks a lot, it`s a good start, I`ll follow your advises and keep you updated.

Regards

Re: Net backup status 6

Sorry for late response Smiley Sad

Script errror.out:


released channel: t0
released channel: t1
released channel: t2
released channel: t3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of Control File and SPFILE Autobackup command on t0 channel at 02/19/2019 15:10:30
ORA-00245: control file backup failed; target is likely on a local file system

 

bphdb and dbclient already exists:

drwxrwxrwt 2 root root 4096 Feb 19 02:56 bphdb
drwxrwxrwt 2 root root 4096 Feb 19 06:02 dbclient

Re: Net backup status 6

@CristianMarin27 

Can we take a step back - is this a new setup that has never worked before?

This error says to me that rman did not connect with NBU: 

ORA-00245: control file backup failed; target is likely on a local file system

Did you link NBU with Oracle libobk?
Is DBA using own script or modified NBU sample script?

Were any log files created in bphdb and/or dbclient folders during backup attempt? 

Re: Net backup status 6

Just to add, maybe helps:

The client which run the netbackup policy is a virtual one.

It`s something like ex: - "hostname" --> "hostname-vip" ( and this virtual (has own IP) client it`s on "hostname")

"is this a new setup that has never worked before?" - It is an old one and it worked in the past.

"Did you link NBU with Oracle libobk?
Is DBA using own script or modified NBU sample script?" - I didn`t manage this issue from the first day it appeared.

"Were any log files created in bphdb and/or dbclient folders during backup attempt?" - No log created.

Re: Net backup status 6

"Did you link NBU with Oracle libobk?
Is DBA using own script or modified NBU sample script?" - I didn`t manage this issue from the first day it appeared.

@CristianMarin27 

You need to work with your dba. Let him/her check the script and confirm that symbolic link is in place.
Other than creating a policy and ensuring that you have sufficient backup storage, there is nothing more for you to do.

If the backups worked before and nothing has changed on NBU side, then it means that the dba has changed something. 

Under these circumstances, I would go back to basics - as if this is a new config. I would go and sit with the dba and go through NBU for Oracle manual, starting with libobk link.  In a clustered environment, the linking must be done on all nodes.
Next step is to check the script and compare with sample scripts. Dba must do this. 
For clustered backups, there needs to be NB_ORA_CLIENT variable in the script (details in NBU for Oracle manual).

If this RAC environment, there is a separate chapter in NBU for Oracle manual.