Unsolved
This post is more than 5 years old
70 Posts
0
10240
Trying to restore and got this failures any help
I am trying to use command line to restore some DB files
SQL2012-VDI backups
NW 8.0SP1
Full DB restore
nsrsqlrc -s "NWServer" -c "Client " -d "MSSQL$RD:DB name '='D:\SS2K12$SQL12\DBDATA\db.mdf', 'Works2012_Log'='E:\SS2K12$SQL12\DBTLOG\Works2012_DEV_log.ldf'" -t "Mon Jun 03 12:41:52 2013" "MSSQL$RD:Works2012"
43708:(pid 380):Start time: Mon Jun 03 12:43:56 2013
43621:(pid 380):Computer Name: xxxx User Name: xxxx
51281:(pid 380):nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054 savetime -1 not in media db
80282:(pid 380):nsrsqlrc.c(4026): Error getting backup endtime from media Database.
37740:(pid 380):Recover of ''Works2012_Log'='E:SS2K12$SQL12DBTLOGWorks2012_DEV_log' will be skipped be cause a full backup was not found.
51281:(pid 380):nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054 savetime -1 not in media db
80282:(pid 380):nsrsqlrc.c(4026): Error getting backup endtime from media Database.
37740:(pid 380):Recover of 'Jun' will be skipped because a full backup was not found.
51281:(pid 380):nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054 savetime -1 not in media db
80282:(pid 380):nsrsqlrc.c(4026): Error getting backup endtime from media Database.
37740:(pid 380):Recover of '03' will be skipped because a full backup was not found.
51281:(pid 380):nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054 savetime -1 not in media db
80282:(pid 380):nsrsqlrc.c(4026): Error getting backup endtime from media Database.
37740:(pid 380):Recover of '12:41:52' will be skipped because a full backup was not found.
51281:(pid 380):nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054 savetime -1 not in media db
80282:(pid 380):nsrsqlrc.c(4026): Error getting backup endtime from media Database.
37740:(pid 380):Recover of '2013 MSSQL$RD:AdventureWorks2012' will be skipped because a full backup was not found.
29307:(pid 380):At least 1 valid recover target is required
Restore operation finished with error(s). Refer to the module backup log file for details.
43709:(pid 380):Stop time: Mon Jun 03 12:44:04 2013
Please help me out
Thank you
rochettapochetta
10 Posts
0
January 26th, 2015 10:00
Thank you for your support Hrvoje
ble1
14.3K Posts
0
January 26th, 2015 10:00
Opet ticket with support. Depending on SQL version, you can also try NMM 8.2SP1.
rochettapochetta
10 Posts
0
January 26th, 2015 10:00
I always used savetime since the beginning. Last time I used sscreate cause I saw it's different, but, as shown, it didn't work,
I registered on support page e found the following known issue on NMM3.0 SP1 Release Notes (https://support.emc.com/docu50593_NetWorker_Module_for_Microsoft_3.0_SP1_Release_Notes.pdf?language=en_US )
----------------------
Error message displayed when recovering SQL VDI backup data (NW121054)
During point-in-time recovery of SQL VDI backup, the following error message appears in the recovery logs:
51281:(pid 5580):nsrsqlrc.c(7399): Could not get saveset record from mmdb; error: 0x00013884
savetime -1 not in media db
80282:(pid 5580):nsrsqlrc.c(4002): Error getting backup endtime from media Database.
However, the restore completes successfully.
----------------------
My problem is that my restore hangs, it's not the same scenario, but clearly there are some problems with NMM code.
CarlosRojas
1.7K Posts
0
January 28th, 2015 04:00
Hi rochettapochetta
One last suggestion:
Please run the following command to open NMSQL GUI in "Template" mode:
"C:\Program Files\EMC NetWorker\nsr\bin\nwmssql.exe" -t
Please change the installation path accordingly.
Once the NMSQL GUI opens, please configure the restore exactly as you would like to do it and then click "Restore".
No restore will actually start but instead you will get the exact command to be ran.
Copy the command, and please run it from command line (With Admin rights) but add debug flags at the beginning of the command, for example:
nsrsqlrc.exe -D5vvv ............
Just add -D5vvv right after the .exe and run the command.
Then you can share with us the output of the logs both networkr.raw and nsrsqlrc.raw files.
Also please the daemon.raw file from the client.
You would like also to check the Application event logs to see if there is any useful event.
Thank you,
Carlos
rochettapochetta
10 Posts
0
February 6th, 2015 09:00
Hi Carlos,
thanks for your answer.
Nwmssql.exe never uses and returns -z switch, that I need to use because my backup chain starts with a full backup that overlapped with a log backup.
If I simply use the command returned by nwmssql.exe, I get the following error at the first "restore log":
Error: The log in this backup set terminates at LSNxxxxx, which is too early to
apply to the database. A more recent log backup that includes LSN 2011000000355900001 can be restored..
... because it tries to restore the overlapped backup log, and not the subsequent.
So I added both -D5vvv and -z switches to string returnet by nwmssql -t, and executed it to restore the first valid backup log:
C:\Program Files\EMC NetWorker\nsr\bin\nsrsqlrc.exe" -D5vvv -s " " -c " " -f -S norecovery -d "MSSQL:CopyOf " -C " ' '=' ', '=' '" -z -t "Wed Jan 21 13:47:05 2015" "MSSQL: "
69893:(pid 5848):Invalid debug level specified. This option will be ignored.
43708:(pid 5848):Start time: Fri Feb 06 17:59:35 2015
43621:(pid 5848):Computer Name: User Name:
NSR_CLIENT: ;
NSR_SERVER:
>;
37725:(pid 5848):Recovering database ' ' into 'CopyOf ' ...
51281:(pid 5848):nsr/db_apps/bsmsql/nsrsqlrc.c(7638): Could not get saveset record from mmdb; error: 0x00014054
savetime -1 not in media db
80282:(pid 5848):nsr/db_apps/bsmsql/nsrsqlrc.c(4161): Error getting backup endtime from media Database.
4690:(pid 5848):RESTORE log [CopyOf ] FROM virtual_device='Legato#a5567427-5336-4c80-a028-a03af88ab833' WITH norecovery
35866:(pid 5848):The restore of database ' ' completed successfully.
29310:(pid 5848):
Received 264 KB 1 item(s) from NSR server (size information for snapshot(s) is not available).
43709:(pid 5848):Stop time: Fri Feb 06 18:01:01 2015
As you can see it does not recognize the debug flag, are you sure about that (I didn't find any docs with debug switches)?.
By the way it returns always the same error, but this time restore didn't hang and finished correctly.
Thank you Carlos