SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 Data loss during sql cluster failover
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

sql_519
Starting Member

India
2 Posts

Posted - 07/26/2013 :  13:35:07  Show Profile  Reply with Quote
Hi,
We have Active/Passive cluster setup on Win 2003 server and SQL 2005 version.We manually moved all the sql cluster groups and then MSDTC to other node.After the failover,some of the databases went to Recovery_pending state with error 5173(Log file cannot associate with primary database files).Also,we lost data from sql server error and agent log.
Will there be any data loss during the cluster failover (or) how to troubleshoot this.

prett
Posting Yak Master

USA
203 Posts

Posted - 07/31/2013 :  00:39:40  Show Profile  Visit prett's Homepage  Reply with Quote
It looks like log is missing or corrupt. To troubleshoot this problem, restore database from valid/clean backup. If you don't have backup then try below steps:

1. Detach the database
2. Delete the log file
3. Reattach the database again
Go to Top of Page

Shanky
Yak Posting Veteran

United Kingdom
72 Posts

Posted - 07/17/2014 :  11:29:31  Show Profile  Reply with Quote
Although it is very old post I will reply.
A Cluster failover which will eventually cause SQL server failover cannot have DATA LOSS as such. What can happen is when failover happens SQL server is stopped on current node and restated on new node (where it is failed over). During the failover if suppose an heavy insert is going in begin tran and commit when SQL server will come online on node 2 it will go throough crash recovery and rollback complete transaction. If insert is without begin tran commit it will work in auto commit mode and only rows which were inseretd before failover will be present not complete rows which user wanted as failover stopped the process. I cannot qualify this as data loss.

What you faced is different issue and you said you lost data from SQL server errorlog and agent log this is not possible unless the drive on which SQLAGENT.OUT file resides is unavaialble.

Hope this helps

Regards
Shanky
http://social.technet.microsoft.com/wiki/contents/articles/24253.list-of-articles-by-shanky.aspx
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000