Code 2
Code 2
Page 1 of 10
Table of Contents
1 Exit Status 2 for File System Backups...................................................................................................... 3 2 NetBackup for Lotus Notes database extension for UNIX........................................................................3 2.1 The directive BACKUP_TRANSACTION_LOGS is in the file list.......................................................3 2.2 A backup of the transaction logs was already active..........................................................................3 3 NetBackup for Microsoft SQL Server database extension for Windows...................................................4 3.1 New installations................................................................................................................................ 4 3.1.1 Using standard SQL Server security............................................................................................ 4 3.1.2 Using integrated SQL Server security.......................................................................................... 5 3.1.3 Hostname resolution problems.................................................................................................... 6 3.1.4 SQL Server in a cluster configuration.......................................................................................... 7 3.1.5 Backup is failing on the master database....................................................................................7 3.1.6 Backup works from client but fails when scheduled by master....................................................7 3.2 The problem began after a 4.5 MP1 (or newer) upgrade of a working installation.............................8 3.3 An existing installation stopped working............................................................................................. 8 3.3.1 The batch file is corrupted or missing mandatory parameters.....................................................9 4 Other NetBackup database agent............................................................................................................. 9 5 Logs to gather for a NetBackup support case........................................................................................... 9 5.1 Lotus Notes on UNIX.......................................................................................................................... 9 5.2 SQL Server on Windows.................................................................................................................... 9 6 Search.................................................................................................................................................... 10
Page 2 of 10
Page 3 of 10
Create the touch file /usr/openv/netbackup/NOSHM on the Lotus client and retry the backup. This will disable the use of shared memory. Upgrade NetBackup to version 4.5 MP6 or 4.5 FP6 so that the backup will run as the Domino administrator account. This change was required for compatibility with Domino version 6. The Domino server may have crashed during a backup leaving NetBackup waiting for Domino to reply.
The privileges of the account chosen for the NetBackup Client Service will also be used when performing file system backups, archives and restores for this host. Ensure that the account chosen for the NetBackup Client Service has full privileges for all local and mounted file systems that are to be backed up, archived or restored using a Windows policy. For NetBackup prior to version 4.5 MP1, a User DSN must be created for each database instance. See the NetBackup for Microsoft SQL Server manual for more information. Login failure example for sa user from the Windows logs: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG (5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<4> DBConnect: INF - Logging into SQL Server with DSN <NBMSSQL_3048_3368>, SQL userid <sa>. <16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return code <-1>, SQL State <28000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.> <32> CGlobalInformation::CreateDSN: ERR - Unable to login into SQL instance <ALGOL\> as user <sa> using standard connection
Page 4 of 10
<4> CGlobalInformation::DeleteDSN: INF - SQLConfigDataSource: SQL Server <4> CGlobalInformation::LogODBCAttributes: INF - SQLConfigDataSource keywordvalue pair : DSN=NBMSSQL_3048_3368 <4> CGlobalInformation::LogODBCAttributes: INF - SQLConfigDataSource keywordvalue pair : SERVER=ALGOL <4> CGlobalInformation::LogODBCAttributes: INF - SQLConfigDataSource keywordvalue pair : DESCRIPTION=NetBackup MS SQL Server <32> CDBbackrec::CDBbackrec: ERR - Error 64 has been returned from GetCurrentDSN ... <32> CGlobalInformation::DeleteCurrentDSN: ERR - Error removing ODBC data source name CONTINUATION: - Invalid DSN CONTINUATION: - Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed <4> CGlobalInformation::DSNCleanUp: INF - SQLDataSources did not fetch any ODBC user data source names
Login failure example for SYSTEM user from the Windows logs: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG ( 5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<4> DBConnect: INF - Logging into SQL Server with DSN <NBMSSQL_2620_1580>, SQL userid <SYSTEM>. <16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return code <-1>, SQL State <28000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\SYSTEM'.> <4> CGlobalInformation::ModifyDSN: INF - SQLConfigDataSource: SQL Server . <16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return code <-1>, SQL State <28000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.> <32> CGlobalInformation::CreateDSN: ERR - Unable to login into SQL instance <ALGOL\> as user <sa> using standard connection . <32> CGlobalInformation::DeleteCurrentDSN: ERR - Error removing ODBC data source name CONTINUATION: - Invalid DSN CONTINUATION: - Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed
Page 5 of 10
Login failure example for sa user from the Windows logs: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG (5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return code <-1>, SQL State <28000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'NT AUTHORITY\SYSTEM'.> <16> CODBCaccess::LogODBCerr: DBMS MSG - ODBC message. ODBC return code <-1>, SQL State <28000>, Message Text <[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.> <32> CDBbackrec::CDBbackrec: ERR - Error 64 has been returned from GetCurrentDSN <32> CGlobalInformation::DeleteCurrentDSN: ERR - Error removing ODBC data source name CONTINUATION: - Invalid DSN CONTINUATION: - Driver's ConfigDSN, ConfigDriver, or ConfigTranslator failed <4> CGlobalInformation::DSNCleanUp: INF - SQLDataSources did not fetch any ODBC user data source names
Page 6 of 10
3.1.6 Backup works from client but fails when scheduled by master.
Check path and spelling of the .bch file in the backup policy. Ensure that file specified in the backup policy includes the .bch extension. Example Windows log from the <install_path>\VERITAS\NetBackup\logs\bphdb\<date>.LOG file:
<2> logparams: -sb -rdbms sql_server -S donaldduck -to 300 -c algol-sql-server -s Full -clnt algol -FULL -b algol_1111167317 -jobid 3717 <4> bphdb sync_server: INF - BACKUP START <4> bphdb sync_server: INF - CONTINUE BACKUP message received. <2> bphdb get_filelist: INF - Read filename: <full> <2> bphdb get_filelist: INF - Read filename: <CONTINUE> <4> bphdb.do_launch_ex: INF - Processing f <16> bphdb.CreateProcessForNT: ERR - command failed: none of the requested files were backed up (2) <16> bphdb.do_launch_ex: ERR - exit status : (2) <16> bphdb Exit: ERR - bphdb exit status = 2: none of the requested files were backed up <4> bphdb Exit: INF - EXIT STATUS 2: none of the requested files were backed up
Page 7 of 10
<2> logparams: -sb -rdbms sql_server -S donaldduck -to 300 -c algol-sql-server -s Full -clnt algol -FULL -b algol_1111167519 -jobid 3718 <4> bphdb sync_server: INF - BACKUP START <4> bphdb sync_server: INF - CONTINUE BACKUP message received. <2> bphdb get_filelist: INF - Read filename: <C:\program files\mssql\backup_scripts\full.bch> <2> bphdb get_filelist: INF - Read filename: <CONTINUE> <4> bphdb.do_launch_ex: INF - Processing C <16> bphdb.CreateProcessForNT: ERR - command failed: none of the requested files were backed up (2) <16> bphdb.do_launch_ex: ERR - exit status : (2) <16> bphdb Exit: ERR - bphdb exit status = 2: none of the requested files were backed up
3.2 The problem began after a 4.5 MP1 (or newer) upgrade of a working installation.
Delete User DSNs created prior to the upgrade. User DSNs are now created as needed by the agent. Existing User DSNs must be removed after the upgrade. Do this by deleting the files in: <install_path>\NetBackup\dbext\mssql\dsns <install_path>\NetBackup\dbext\mssql\logins. Edit the existing batch files to remove the DSN entries. Add entries for SQLHOST and SQLINSTANCE (if appropriate). The following log entries can appear if user DSNs are not deleted after the upgrade. Example Windows log entry from: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG (5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<16> CDBbackrec::CDBbackrec: USER - SQL host\instance not available in batch file, registry, or NetBackup\dbext\mssql\DSN
Delete and recreate the existing batch files using the NetBackup SQL GUI if the suggestions above did not completely resolve the problem. Were the production batch files left in the default directory when the previous version was uninstalled? If so, recreate the batch files as this directory is cleared during the uninstallation of the older product. The following log entries can appear if the batch files were removed during the upgrade. Example Windows log entry from: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG (5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<16> OpenParmFile: USER - Failed trying to get read access to C:\Program Files\VERITAS\NetBackup\dbext\mssql\full.bch <32> OpenParmFile: ERR - Error in access: 2. The text follows: CONTINUATION: - The system cannot find the file specified. <4> CDBbackmain::dbbackup: INF - Results of executing <full.bch>: <0> operations succeeded. <0> operations failed.
Page 8 of 10
Example Windows log entry if the directories do not exist: <install_path>\VERITAS\NetBackup\logs\dbclient\<date>.LOG (5.0 and later) <install_path>\VERITAS\NetBackup\logs\dbbackup\<date>.LOG (4.5, 3.4)
<32> CProgress::CreateProgress: ERR - Error. Could not access jobs directory: C:\Program Files\VERITAS\NetBackup\Logs\user_ops\mssql\jobs\ <4> CDBbackmain::dbbackup: INF - Results of executing <full.bch>: <0> operations succeeded. <0> operations failed. <32> TerminateJobsFile: ERR - Error generated from CoreWrite writing 1BEGIN 0 1110569504 <32> CDBbackmain::dbbackup: ERR - Error generated while terminating jobs file (TerminateJobsFile)
Page 9 of 10
The <install_path>\NetBackup\logs \dbbackup\<date>.LOG file for NetBackup 4.5 and earlier) The <install_path>\NetBackup\logs \dbclient\<date>.LOG file. The <install_path>\NetBackup\logs\user_ops\MsSql\logs\* files.
On the SQL Server host, find and run the sqldiag.exe command. This creates a SQLdiag.txt file in the log folder of the SQL Server installation. Gather the SQLdiag.txt, VDI.log, and ERRORLOG from the SQL log directory and forward them to the Support Engineer.
6 Search
Click here to Search for other documents on Status 2
Also, click below to perform a search on the following relevant items: http://support.veritas.com/docs/256684 VERITAS NetBackup (tm) for SQL Server backups fail with "Status 2: none of the requested files were backed up" in the activity monitor when processing the SQL Server "master" database. http://support.veritas.com/docs/264618 When initiating a backup from the master server of a Microsoft SQL database policy using the VERITAS NetBackup (tm) MS SQL client running on Windows 2000 or Windows 2003 32-bit and Windows 2003 64-bit operating system, the backup fails with a status 2. http://support.veritas.com/docs/267870 VERITAS NetBackup (tm) for MS SQL Server backups fail with a status 2 when the number of databases that are being backed up exceeds 32. http://support.veritas.com/docs/247473 VERITAS NetBackup for MS-SQL Server database extension backup fails with Exit Status Code 2. http://support.veritas.com/docs/251375 VERITAS NetBackup for Microsoft SQL Server backups fail with a status 2 in the master server job monitor, and the same backup job fails with a status -1 in the Netbackup for MS SQL Server Client job monitor.
Page 10 of 10