cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

NetBackup 6.5.3 Oracle rman restore on alternate client failure

SurfRider66
Level 2
Hi:

I'm trying to configure an alternate client to restore a rman database, previously I installed the client and create the link requiered to use with oracle /usr/openv/netbackup/bin/libobk, but when i tried to get the restore I received the following message on rman.

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 07/07/2009 20:06:46
RMAN-03015: error occurred in stored script Memory Script
RMAN-10035: exception raised in RPC:
ORA-27191: sbtinfo2 returned error
Additional information: 2
ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5882
RMAN-10031: RPC Error: ORA-27191 occurred during call to DBMS_BACKUP_RESTORE.VALIDATIONVALIDATE

I turned on the dbclient logs

Veritas NetBackup for Oracle - Release 6.5 (2007072323)
System name: HP-UX
Node name: client09
Release: B.11.11
Version: U
Machine: 9000/800
User name: oracle
Client Host: client01-nbu

20:05:34.773 [25642] <2> int_LogSystemInfo: INF - leaving
20:05:34.773 [25642] <2> int_GetMMInfo: INF - entering
20:05:34.774 [25642] <2> int_GetMMInfo: INF - Initialized Signal
20:05:34.774 [25642] <2> int_GetMMInfo: INF - support for Proxy Copy enabled
20:05:34.774 [25642] <2> int_GetMMInfo: INF - leaving
20:05:34.774 [25642] <2> int_InitializeSbtFunctionPointers: INF - entering
20:05:34.774 [25642] <2> int_InitializeSbtFunctionPointers: INF - leaving
20:05:34.774 [25642] <2> sbtinit: INF - leaving
20:05:34.774 [25642] <2> sbtinit2: INF - entering
20:05:34.774 [25642] <2> sbtinit2: INF - leaving
20:06:45.642 [25640] <2> sbtinfo2: INF - entering
20:06:45.642 [25640] <2> sbtinfo2: INF - requesting image info for <FULL_RMAN2_DBASE_14823_1.bus>
20:06:45.642 [25640] <2> int_GetImageInfo2: INF - entering
20:06:45.642 [25640] <2> int_GetImageInfo2: INF - Image Information for file <FULL_RMAN2_DBASE_14823_1.bus> :
20:06:45.642 [25640] <2> xbsa_ValidateFeatureId: INF - entering
20:06:45.642 [25640] <4> VxBSAValidateFeatureId: INF - entering VxBSAValidateFeatureId
20:06:45.642 [25640] <4> bsa_checkFeatureId: INF - entering bsa_checkFeatureId
20:06:45.642 [25640] <4> VxBSAGetEnv: INF - entering GetEnv - BSA_SERVICE_HOST
20:06:45.642 [25640] <4> VxBSAGetEnv: INF - returning - client07
20:06:45.645 [25640] <2> vauth_get_user_name: vauth_comm.c.695: user_name: oracle
20:06:45.646 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.338: h_errno: 0 0x00000000
20:06:45.646 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.339: gethostbyname failed: client07
20:06:45.646 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.352: Function failed: 6 0x00000006
20:06:45.646 [25640] <2> vnet_init_connect_rec: vnet_vnetd.c.3642: vnet_cached_gethostbyname failed: 6 0x00000006
20:06:45.646 [25640] <2> vnet_connect_to_service_or_vnetd: vnet_vnetd.c.3518: vnet_init_connect_rec failed: 6 0x00000006
20:06:45.646 [25640] <2> nb_connect_to_vnetd_or_legacy: comm.c.2030: vnet_connect_to_vnetd_or_service failed: 6
20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07 automatically: 48
20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07
20:06:45.647 [25640] <2> bprd_connect: errno = 13 - Permission denied
20:06:45.647 [25640] <2> bprd_get_features: bprd_connect(client07) failed, cannot connect on socket (25)
20:06:45.647 [25640] <8> bsa_checkFeatureId: bprd_get_features() failed, retrying
20:06:45.647 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.285: host in failed cache: client07
20:06:45.647 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.286: Function failed: 5 0x00000005
20:06:45.647 [25640] <2> vnet_init_connect_rec: vnet_vnetd.c.3642: vnet_cached_gethostbyname failed: 5 0x00000005
20:06:45.647 [25640] <2> vnet_connect_to_service_or_vnetd: vnet_vnetd.c.3518: vnet_init_connect_rec failed: 5 0x00000005
20:06:45.647 [25640] <2> nb_connect_to_vnetd_or_legacy: comm.c.2030: vnet_connect_to_vnetd_or_service failed: 5
20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07 automatically: 11
20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07
20:06:45.648 [25640] <2> bprd_connect: errno = 13 - Permission denied
20:06:45.648 [25640] <2> bprd_get_features: bprd_connect(client07) failed, cannot connect on socket (25)
20:06:45.648 [25640] <8> bsa_checkFeatureId: bprd_get_features() failed, retrying
20:06:45.648 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.285: host in failed cache: client07
20:06:45.648 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.286: Function failed: 5 0x00000005
20:06:45.648 [25640] <2> vnet_init_connect_rec: vnet_vnetd.c.3642: vnet_cached_gethostbyname failed: 5 0x00000005
20:06:45.648 [25640] <2> vnet_connect_to_service_or_vnetd: vnet_vnetd.c.3518: vnet_init_connect_rec failed: 5 0x00000005
20:06:45.648 [25640] <2> nb_connect_to_vnetd_or_legacy: comm.c.2030: vnet_connect_to_vnetd_or_service failed: 5
20:06:45.648 [25640] <2> bprd_connect: Cannot connect to server client07 automatically: 11
20:06:45.648 [25640] <2> bprd_connect: Cannot connect to server client07
20:06:45.648 [25640] <2> bprd_connect: errno = 13 - Permission denied
20:06:45.648 [25640] <2> bprd_get_features: bprd_connect(client07) failed, cannot connect on socket (25)
20:06:45.648 [25640] <16> bsa_checkFeatureId: unable to check if feature <36> is licensed
20:06:45.648 [25640] <16> bsa_checkFeatureId: Server exit status = 25: cannot connect on socket
20:06:45.648 [25640] <2> xbsa_ProcessError: INF - entering
20:06:45.648 [25640] <2> xbsa_ProcessError: INF - leaving
20:06:45.648 [25640] <16> xbsa_ValidateFeatureId: ERR - VxBSAValidateFeatureId: Failed with error:
Server Status: cannot connect on socket
20:06:45.648 [25640] <2> xbsa_ValidateFeatureId: INF - leaving (3)

20:06:45.649 [25640] <16> int_GetImageInfo2: ERR - Failed to get info on backup file, FULL_RMAN2_DBASE_14823_1.bus.

20:06:45.649 [25640] <2> int_GetImageInfo2: INF - leaving
20:06:45.649 [25640] <2> int_DumpSbtInfo: INF - entering
20:06:45.649 [25640] <2> int_DumpSbtInfo: INF - leaving
20:06:45.649 [25640] <2> sbtinfo2: INF - leaving
20:06:45.649 [25640] <2> sbterror: INF - entering
20:06:45.649 [25640] <2> sbterror: INF - Error=7501: Failed to get info on backup file, FULL_RMAN2_DBASE_14823_1.bus.
.
20:06:45.649 [25640] <2> sbterror: INF - leaving
20:06:47.131 [25640] <2> sbtend: INF - entering
20:06:47.131 [25640] <2> int_FreeDuplexStrings: INF - entering
20:06:47.131 [25640] <2> int_FreeDuplexStrings: INF - leaving
20:06:47.132 [25640] <2> int_CleanupInfo2: INF - entering
20:06:47.132 [25640] <2> int_CleanupInfo2: INF - leaving
20:06:47.132 [25640] <4> sbtend: INF - --- END of SESSION ---
20:06:47.132 [25640] <2> sbtend: INF - leaving
20:06:47.132 [25640] <4> VxBSATerminate: INF - entering VxBSATerminate.
20:06:47.132 [25640] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_DEBUGFD
20:06:47.132 [25640] <4> VxBSAGetEnv: INF - returning -
20:06:47.142 [25641] <2> sbtend: INF - entering
20:06:47.142 [25641] <2> int_FreeDuplexStrings: INF - entering
20:06:47.142 [25641] <2> int_FreeDuplexStrings: INF - leaving
20:06:47.142 [25641] <4> sbtend: INF - --- END of SESSION ---
20:06:47.142 [25641] <2> sbtend: INF - leaving
20:06:47.142 [25641] <4> VxBSATerminate: INF - entering VxBSATerminate.
20:06:47.142 [25641] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_DEBUGFD
20:06:47.142 [25641] <4> VxBSAGetEnv: INF - returning -
20:06:47.148 [25642] <2> sbtend: INF - entering
20:06:47.149 [25642] <2> int_FreeDuplexStrings: INF - entering
20:06:47.149 [25642] <2> int_FreeDuplexStrings: INF - leaving
20:06:47.149 [25642] <4> sbtend: INF - --- END of SESSION ---
20:06:47.149 [25642] <2> sbtend: INF - leaving
20:06:47.149 [25642] <4> VxBSATerminate: INF - entering VxBSATerminate.
20:06:47.149 [25642] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_DEBUGFD
20:06:47.149 [25642] <4> VxBSAGetEnv: INF - returning -

I think the error is

20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07 automatically: 11
20:06:45.647 [25640] <2> bprd_connect: Cannot connect to server client07
20:06:45.648 [25640] <2> bprd_connect: errno = 13 - Permission denied
20:06:45.648 [25640] <2> bprd_get_features: bprd_connect(client07) failed, cannot connect on socket (25)
20:06:45.648 [25640] <8> bsa_checkFeatureId: bprd_get_features() failed, retrying
20:06:45.648 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.285: host in failed cache: client07
20:06:45.648 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.286: Function failed: 5 0x00000005
20:06:45.648 [25640] <2> vnet_init_connect_rec: vnet_vnetd.c.3642: vnet_cached_gethostbyname failed: 5 0x00000005
20:06:45.648 [25640] <2> vnet_connect_to_service_or_vnetd: vnet_vnetd.c.3518: vnet_init_connect_rec failed: 5 0x00000005
20:06:45.648 [25640] <2> nb_connect_to_vnetd_or_legacy: comm.c.2030: vnet_connect_to_vnetd_or_service failed: 5

I was looking for information about this error but I couldn't found it, somebody can help me to solve this, I'm really newbie with nbu. Thank you very much
1 ACCEPTED SOLUTION

Accepted Solutions

Nicolai
Moderator
Moderator
Partner    VIP   

I don't like No.Restriction as it give all users access to all data. Instead go to :

/usr/openv/netbackup/db/altname (if altnames doesn't exist - create it)

Create a file named the host you are restoring to. Contents of the file is the host you are restoring from.

E.g: Source whisky, destination tango

touch tango
echo "whisky" >> tango

Go to the client you are restoring to and verify access with bplist.

on Tango:
# bplist -C whisky -t 4 -l -R -s 06/01/2009 /

Yes "-C" mus be the host you are restoring from !

PS: If you have multiple actives NIC, make sure you set "REQUIRED_INTERFACE = "IP to use" in bp.conf

View solution in original post

5 REPLIES 5

Abesama
Level 6
Partner
20:06:45.646 [25640] <2> vnet_cached_gethostbyname: vnet_hosts.c.339: gethostbyname failed: client07

it is failing to resolve the master server's name "client07" in to IP address, and it's failing to connect to it.

check your DNS or hosts file, verify name resolution by running this

/usr/openv/netbackup/bin/bpclntcmd -hn client07 (this should return your master server's IP address)

also, for the alternate client restore, you need a file touched on the master server

touch /usr/openv/netbackup/db/altnames/No.Restrictions (do this with caution, this allows unrestricted restore from alternate clients)

cheers,

Abe

Marianne
Level 6
Partner    VIP    Accredited Certified
Are you able to do normal filesystem backup and restores for the Alt client? Verify basic comms (forward and reverse lookup in both diretions) before attempting RMAN restore.

rj_nbu
Level 6
Employee Accredited Certified
Abesama is right.  gethostbyname function failed with 48 - hostname not found error.

Question - client07 is your master server ?

Nicolai
Moderator
Moderator
Partner    VIP   

I don't like No.Restriction as it give all users access to all data. Instead go to :

/usr/openv/netbackup/db/altname (if altnames doesn't exist - create it)

Create a file named the host you are restoring to. Contents of the file is the host you are restoring from.

E.g: Source whisky, destination tango

touch tango
echo "whisky" >> tango

Go to the client you are restoring to and verify access with bplist.

on Tango:
# bplist -C whisky -t 4 -l -R -s 06/01/2009 /

Yes "-C" mus be the host you are restoring from !

PS: If you have multiple actives NIC, make sure you set "REQUIRED_INTERFACE = "IP to use" in bp.conf

SurfRider66
Level 2
Hi

I made diferent actions to solved it, Thank you very much for all the comments

1. /usr/openv/netbackup/bin/bpclntcmd -hn client07 returns the master information
2. I used /usr/openv/netbackup/db/altnames/No.Restrictions and make test between de main and alternate server.
3. I used /usr/openv/netbackup/db/altname just with client09 on client01-nbu.
4. Change the bp.conf with "REQUIRED_INTERFACE = "IP to use"
4. Restart daemons on master client07
5. Verify the content of the log file bpclient

16:44:11.464 [12163] <2> int_GetOracleVersion: INF - entering
16:44:11.464 [12163] <2> int_GetOracleVersion: INF - ORACLE_HOME= </oracle/app/server/product/10.2>
16:44:11.464 [12163] <2> int_GetOracleVersion: INF - Found </oracle/app/server/product/10.2/bin/rman>
16:44:11.464 [12163] <2> int_GetOracleVersion: INF - leaving
16:44:11.464 [12163] <2> int_LogSystemInfo: INF - entering
16:44:11.464 [12163] <2> int_LogSystemInfo: INF -
Veritas NetBackup for Oracle - Release 6.5 (2007072323)
System name: HP-UX
Node name: client09
Release: B.11.11
Version: U
Machine: 9000/800
User name: oracle
Client Host: client09-nbu

16:44:11.464 [12163] <2> int_LogSystemInfo: INF - leaving
16:44:11.464 [12163] <2> int_GetMMInfo: INF - entering
16:44:11.464 [12163] <2> int_GetMMInfo: INF - Initialized Signal
16:44:11.464 [12163] <2> int_GetMMInfo: INF - support for Proxy Copy enabled
16:44:11.464 [12163] <2> int_GetMMInfo: INF - leaving
16:44:11.464 [12163] <2> int_InitializeSbtFunctionPointers: INF - entering
16:44:11.464 [12163] <2> int_InitializeSbtFunctionPointers: INF - leaving
16:44:11.464 [12163] <2> sbtinit: INF - leaving
16:44:11.464 [12163] <2> sbtinit2: INF - entering
16:44:11.464 [12163] <2> sbtinit2: INF - leaving
16:44:13.004 [12165] <4> VxBSAInit: Veritas NetBackup XBSA Interface - 6.5 2007072321
16:44:13.004 [12165] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_API
16:44:13.004 [12165] <4> VxBSAGetEnv: INF - returning -
16:44:13.004 [12165] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_FEATURE_ID
16:44:13.004 [12165] <4> VxBSAGetEnv: INF - returning -
16:44:13.004 [12165] <4> InitializeClientInfo: NOT doing setsockopt() to set network buffer size
16:44:13.005 [12165] <4> VxBSAGetLocaleInfo: INF - entering VxBSAGetLocaleInfo
16:44:13.005 [12165] <4> VxBSASetEnvFromConfig: INF - entering VxBSASetEnvFromConfig
16:44:13.005 [12165] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_POLICY
16:44:13.005 [12165] <4> VxBSAGetEnv: INF - returning -
16:44:13.005 [12165] <4> VxBSAGetEnv: INF - entering GetEnv - NBBSA_SCHEDULE
16:44:13.005 [12165] <4> VxBSAGetEnv: INF - returning -
16:44:13.005 [12165] <4> dbc_GetServerClientConfig: entering dbc_GetServerClientConfig.
16:44:13.005 [12165] <4> dbc_GetServerClientConfig: ServerName: <client07>, ClientName: <client09-nbu>
16:44:13.010 [12165] <4> VxBSAGetEnv: INF - entering GetEnv - BSA_SERVICE_HOST
16:44:13.010 [12165] <4> VxBSAGetEnv: INF - returning - client07