SSAS DB Recovery

%3CLINGO-SUB%20id%3D%22lingo-sub-1281784%22%20slang%3D%22en-US%22%3ESSAS%20DB%20Recovery%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1281784%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%20I%20sure%20how%20this%20is%20an%20easy%20one.%20I%20am%20fairly%20familiar%20with%20SQL%20basics%20but%20very%20little%20regarding%20analysis%20services%20-%20essentially%20successfully%20installed%20it%20a%20few%20times%2C%20but%20nothing%20more.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20supporting%20a%20SQL%202016%20server%20with%20Analysis%20Services%20installed.%20I%20received%20a%20ticket%20indicating%20that%20the%20analysis%20services%20service%20would%20not%20start.%20Doing%20some%20digging%20I%20discovered%20is%20the%20....data%20folder%20there%20was%20a%20single%20dbname.o.xml%20(or%20something%20very%20similarly%20named%20xml%20file)%2C%20that%20had%20a%20file%20size%20of%20zero%20and%20was%20in%20fact%20%26nbsp%3Bempty.%20Some%20googling%20indicated%20I%20should%20delete%20this%20file.%20I%20actually%20copied%20it%20off%20and%20renamed%20the%20extension%20of%20the%20original%20file%20to%20txt.%20I%20was%20then%20able%20to%20successfully%20start%20the%20analysis%20services%20service.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELater%20in%20the%20afternoon%20I%20was%20notified%20that%20the%20%22database%20was%20missing%22%20and%20I%20was%20asked%20to%20%22restore%22%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20saw%20that%20the%20database%20folder%20was%20in%20that%20....data%20path.%20So%20my%20thinking%20it%20probably%20had%20to%20do%20with%20that%20file%20I%20renamed.....%20Since%20that%20files%20was%20empty%2C%20I%20went%20to%20the%20previous%20nights%20backup.%20I%20verified%20that%20the%20file%20had%20what%20looked%20to%20be%20valid%20contents%20and%20restored%20that%20single%20file.%20The%20analysis%20services%20database%20still%20did%20not%20show%20-%20so%2C%20I%20figured%20restarting%20the%20analysis%20services%20service%20my%20be%20a%20good%20thing%20to%20try.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20restarted%20the%20service%20successfully%20and%20still%20no%20database%20in%20SSMS.%20Even%20weirder%2C%20when%20I%20looked%20back%20at%20the%20file%20system%2C%20I%20saw%20that%20the%20file%20I%20restored%20was%20no%20longer%20there.%20I%20actually%20restored%20the%20file%20a%20number%20of%20times%20and%20restarted%20the%20service%20and%20verified%20that%20when%20the%20service%20starts%20it%20deletes%20that%20xml%20file.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20next%20course%20of%20action%20was%20to%20restore%20that%20xml%20file%20as%20well%20as%20the%20database%20folder%20within%20the%20...database%20folder%20from%20the%20previous%20nights%20backup.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERestarted%20the%20analysis%20services%20service%20and%20still%20no%20luck%20-%20even%20worse%2C%20not%20only%20did%20the%20start%20of%20the%20service%20delete%20the%20xml%20file%2C%20it%20also%20deleted%20that%20database's%20folder!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20really%20need%20to%20get%20this%20database%20restored.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENow%20this%20is%20where%20the%20story%20takes%20a%20turn%20for%20the%20ugly.%20Due%20to%20a%20problem%20with%20the%20VSS%20driver%20installed%20on%20the%20system%2C%20that%20application%20that%20was%20supposed%20to%20take%20application%20aware%20backups%20(VEEAM)%20has%20not%20been%20working%20for%20some%20time%2C%20so%20simply%20restoring%20the%20database%20with%20that%20system%20is%20not%20an%20option%20(file%20system%20restore%20is%20possible%20though).%20Because%20it%20was%20backed%20up%20with%20VEEAM%20there%20were%20no%20native%20SQL%20backups%20performed.%20Even%20worse%2C%20logs%20have%20never%20been%20truncated....%20These%20are%20very%20small%20databases%20(I've%20been%20told)....%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyways%2C%20I%20understand%20there%20are%20a%20number%20of%20things%20I%20need%20to%20address%20with%20this%20server%20but%20my%20immediate%20need%20is%20to%20get%20this%20one%20database%20back%20up%20and%20running.%20I%20have%20one%20idea%20that%20may%20not%20be%20feasible.....%20Any%20help%20would%20be%20greatly%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20and%20be%20safe%20all!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJim%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi. I sure how this is an easy one. I am fairly familiar with SQL basics but very little regarding analysis services - essentially successfully installed it a few times, but nothing more.

 

I am supporting a SQL 2016 server with Analysis Services installed. I received a ticket indicating that the analysis services service would not start. Doing some digging I discovered is the ....data folder there was a single dbname.o.xml (or something very similarly named xml file), that had a file size of zero and was in fact  empty. Some googling indicated I should delete this file. I actually copied it off and renamed the extension of the original file to txt. I was then able to successfully start the analysis services service.

 

Later in the afternoon I was notified that the "database was missing" and I was asked to "restore" it.

 

I saw that the database folder was in that ....data path. So my thinking it probably had to do with that file I renamed..... Since that files was empty, I went to the previous nights backup. I verified that the file had what looked to be valid contents and restored that single file. The analysis services database still did not show - so, I figured restarting the analysis services service my be a good thing to try.

 

I restarted the service successfully and still no database in SSMS. Even weirder, when I looked back at the file system, I saw that the file I restored was no longer there. I actually restored the file a number of times and restarted the service and verified that when the service starts it deletes that xml file.

 

My next course of action was to restore that xml file as well as the database folder within the ...database folder from the previous nights backup.

 

Restarted the analysis services service and still no luck - even worse, not only did the start of the service delete the xml file, it also deleted that database's folder!

 

I really need to get this database restored.

 

Now this is where the story takes a turn for the ugly. Due to a problem with the VSS driver installed on the system, that application that was supposed to take application aware backups (VEEAM) has not been working for some time, so simply restoring the database with that system is not an option (file system restore is possible though). Because it was backed up with VEEAM there were no native SQL backups performed. Even worse, logs have never been truncated.... These are very small databases (I've been told)....

 

Anyways, I understand there are a number of things I need to address with this server but my immediate need is to get this one database back up and running. I have one idea that may not be feasible..... Any help would be greatly appreciated!

 

Thank you and be safe all!

 

Jim

0 Replies