Quantcast
Channel: Symantec Connect - Backup and Recovery - Discussions
Viewing all articles
Browse latest Browse all 5847

full-diff restores of ms-sql database fails with 2809 status code

$
0
0
I need a solution

Hello,

we are facing a problem with full-diff restores of ms-sql database using MOVE scripts

Master Server is W2008 R2 with NBU 7.5.0.6, media servers as well

MS-SQL server : sql server 2008 on Windows 2003 R2 64bit SP2 with NBU 7.5.0.6, netbackup MS-SQL client installed

Here are the steps to backup and restore databases :

- source and dest clients are the same
- in the MOVE script, database is renamed and restored to another volume disk of the same source server
- the backup script is placed in a MS-SQL policy with "Perform snapshot backups" activated (snapshot method "auto")

What happens :

- full + diff backups are OK
- the full restore job is OK, but the diff restore fails with 2809 status code
- the restored database stays in "Restoring ..." mode

What I have been able to check :

- recovery model of ms-sql database is SIMPLE (we do not backup/restore transaction logs)
- account used to run the backup is the account that start Netbackup client service. This is a domain account which is
local administrators of the sql client server
- permissions and roles on the ms-sql database are correct

It behaves as if once files are restored from the full backup, when we run the diff restore access to files are not OK
(the restore fails right from the start) but ACLs on the restored files seem to be correct (I set everyone/full control just
after the full restore in my second test to try and prevent the diff restore to fail, but this doesnt work)

Do you have an idea of how to fix the issue ?
Here is the MOVE script I used :

#   
#  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 "N_Portal_Site_Content_104"
#  
#  Replace the file path <S:\CONTENT101\local\sqlserver\data\VM370SEAR\Portal_Site_Content_104_1.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Portal_Site_Content_104_1".  
MOVE  "Portal_Site_Content_104_1"
TO  "P:\local\TEMP_Restore\N_Portal_Site_Content_104_1.mdf"
#  
#  
#  Replace the file path <S:\CONTENT101\local\sqlserver\data\VM370SEAR\Portal_Site_Content_104_2.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Portal_Site_Content_104_2".  
MOVE  "Portal_Site_Content_104_2"
TO  "P:\local\TEMP_Restore\N_Portal_Site_Content_104_2.mdf"
#  
#  
#  Replace the file path <S:\CONTENT101\local\sqlserver\data\VM370SEAR\Portal_Site_Content_104_3.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Portal_Site_Content_104_3".  
MOVE  "Portal_Site_Content_104_3"
TO  "P:\local\TEMP_Restore\N_Portal_Site_Content_104_3.mdf"
#  
#  
#  Replace the file path <S:\CONTENT101\local\sqlserver\data\VM370SEAR\Portal_Site_Content_104_4.mdf>
#  with a new file path. Also remove the hash mark <#> which precedes the keyword <TO>.
#  The target of the MOVE keyword must be "Portal_Site_Content_104_4".  
MOVE  "Portal_Site_Content_104_4"
TO  "P:\local\TEMP_Restore\N_Portal_Site_Content_104_4.mdf"
#  
#  
#  Replace the file path <N:\local\sqlserver\data\VM370SEAR\Portal_Site_Content_104_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 "Portal_Site_Content_104 _log".  
MOVE  "Portal_Site_Content_104 _log"
TO  "P:\local\TEMP_Restore\N_Portal_Site_Content_104_log.ldf"
#  
# The following image is type: Full
NBIMAGE "fr0-ccssql-v02.MSSQL7.FR0-CCSSQL-V02\VM370SEAR.db.Portal_Site_Content_104.~.7.001of001.20131213205413..C"
SQLHOST "fr0-ccssql-v02"
SQLINSTANCE "VM370SEAR"
NBSERVER "FR0-SFSNBMA01"
BROWSECLIENT "fr0-ccssql-v02"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
RESTOREOPTION REPLACE
BACKUPMODEL SNAPSHOT
RECOVEREDSTATE NOTRECOVERED
TRACELEVEL MAX
NUMBUFS 2
ENDOPER TRUE
 
OPERATION RESTORE
OBJECTTYPE DATABASE
DUMPOPTION INCREMENTAL
DATABASE "Portal_Site_Content_104"
# The following image is type: Full database differential
NBIMAGE "fr0-ccssql-v02.MSSQL7.FR0-CCSSQL-V02\VM370SEAR.inc.Portal_Site_Content_104.~.7.001of001.20131226151449..C"
SQLHOST "fr0-ccssql-v02"
SQLINSTANCE "VM370SEAR"
NBSERVER "FR0-SFSNBMA01"
BROWSECLIENT "fr0-ccssql-v02"
MAXTRANSFERSIZE 6
BLOCKSIZE 7
RESTOREOPTION REPLACE
RECOVEREDSTATE RECOVERED
TRACELEVEL MAX
NUMBUFS 2
ENDOPER TRUE


Viewing all articles
Browse latest Browse all 5847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>