Forum Discussion

eddynfs's avatar
eddynfs
Level 2
8 years ago
Solved

Redirect SQL restore fail with status 5 and 2850

Hello folks,

I try to do a redirect SQL restore from one SQL Server to Another, but all restore jobs finish with status 5 and 2850. Beyond this, a detect a strange message in the LOG of Netbackup Database Extension like this

"DBMS MSG - ODBC return code <-1>, SQL State <37000>, SQL Message <5591><[Microsoft][ODBC SQL Server Driver][SQL Server]FILESTREAM feature is disabled.>."

Here are the settings of the environment where I am trying to restore:

Netbackup Server: Netbackup 7.6.0.4 in a Windows Server 2008 R2

The SQL Production Server: SQL Server 2012 hostend in a Windows Server 2008 R2 Enterprise

The SQL Destinantion Server: SQL Server 2012 hostend in a Windows Server 2008 R2 Enterprise

Do any of you understand it. Your help is much appreciated.

  • The only error ,could see from the logs attached is FILESTREAM disabled.

    Could you check on the source host from where the backups happened for Filestreaming option . 

    If the source is enabled with FILESTREAM option , please speak to your SQL DBA about enabling this option on the target host .

    Then you may try the restore.

6 Replies

  • Hello ,


    can you please check on the following things .

     

    1. The restore script on the destination SQL Host and triggered from there ?

    2. Have you created the No.restrictions file master server as you are doing the altertnate restore ?

    No.Restriction file path --> \Program Files\Veritas\Netbackup\db\altnames\

     

     

    • eddynfs's avatar
      eddynfs
      Level 2

      Hi P_Kesavan,

      1. The restore script on the destination SQL Host and triggered from there ? Yes

      2. Have you created the No.restrictions file master server as you are doing the altertnate restore ?

      No.Restriction file path --> \Program Files\Veritas\Netbackup\db\altnames\

      Yes.

      Follow the restore script on destionation SQL Server that I using:

      #
      # This is a template for the database MOVE command.
      #
      OPERATION RESTORE
      OBJECTTYPE DATABASE
      RESTORETYPE MOVE
      #
      # Replace the database name in the following line with the name of the database that you
      # want to move to. Also remove the hash mark <#> which precedes the keyword <DATABASE>.
      #
      DATABASE "Sharepoint_Portal_CMT1109"
      #
      # Replace the file path <E:\MSSQL11.MSSQLSERVER\MSSQL\DATA\Sharepoint_Portal_CMT.mdf>
      # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
      # The target of the MOVE keyword must be "Sharepoint_Portal_CMT".
      MOVE "Sharepoint_Portal_CMT"
      TO "C:\TEMP\netbackup_sql\Sharepoint_Portal_CMT1109.mdf"
      #
      #
      # Replace the file path <F:\Rbs_CMT>
      # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
      # The target of the MOVE keyword must be "RBSFilestreamFile".
      MOVEFILESTREAMDIR "RBSFilestreamFile"
      TO "C:\TEMP\netbackup_sql\Rbs_CMT"
      #
      #
      # Replace the file path <F:\Log\Sharepoint_Portal_CMT_log.ldf>
      # with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
      # The target of the MOVE keyword must be "Sharepoint_Portal_CMT_log".
      MOVE "Sharepoint_Portal_CMT_log"
      TO "C:\TEMP\netbackup_sql\Sharepoint_Portal_CMT_log1109.ldf"
      #
      # The following image is type: Full
      NBIMAGE "elnbsbsrv42.MSSQL7.ELNBSBSRV42.db.Sharepoint_Portal_CMT.~.7.001of002.20170911204939..C"
      SQLHOST "ELNBSBSRV42T"
      NBSERVER "ELNBSBSRV83"
      BROWSECLIENT "ELNBSBSRV42"
      MAXTRANSFERSIZE 6
      BLOCKSIZE 7
      RECOVEREDSTATE NOTRECOVERED
      NUMBUFS 2
      ENDOPER TRUE

      note: I was tried RECOVEREDSTATE with both RECOVERED ou NOTRECOVERED

      Thanks man.

      • P_Kesavan's avatar
        P_Kesavan
        Level 4

        The only error ,could see from the logs attached is FILESTREAM disabled.

        Could you check on the source host from where the backups happened for Filestreaming option . 

        If the source is enabled with FILESTREAM option , please speak to your SQL DBA about enabling this option on the target host .

        Then you may try the restore.

  • Could you share your C:\Program files\VERITAS\NetBackup\logs\dbclient\<log files> from the destination client, please? If the folder wasn't created create it, set logging on the destination client to max ( Start>Backup, Archive and restore >File>Netbackup Client Properties>Troubleshooting>  Set Verbose to 5, General to 2, database to 9) and re-run restore.