Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Best Way To Mirror SQL Server?

Thread Tools
 
Search this Thread
 
Old 28 April 2004, 09:43 AM
  #1  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default Best Way To Mirror SQL Server?

As it says really.

Mirroring or clustering?

What costs associated?

Hardware not really an issue but full fault tolerance is the aim on a mission critical db.
Old 28 April 2004, 10:22 AM
  #2  
Iain
Scooby Regular
 
Iain's Avatar
 
Join Date: Nov 1998
Posts: 203
Likes: 0
Received 0 Likes on 0 Posts
Default

Is this a windows or Linux My Sql server.

I have a Linux MySQL datavbase that I have on multiple machines using the replication feature. Real time mirroring.

Iain
Old 28 April 2004, 10:24 AM
  #3  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

MS SQL2000
Old 28 April 2004, 11:06 AM
  #4  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Puff,

Do you need to mirror for backup/disaster recovery or do you want to have 100% uptime?

Stefan
Old 28 April 2004, 11:15 AM
  #5  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

We intend to run a 24/7 operation with an e-commerce solution. Both need to access the database. Downtime is not permitted (other than scheduled ).
Old 28 April 2004, 11:20 AM
  #6  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

SQL has it's own replication, but the question I'd have is how the front-end communicates with the database. If you had suplicate database servers running SQL, they will have different server names, database names, IP addresses, etc.. Either the app is designed to query either (or both), or clustering is used to provide a single entitiy to the app. There's also the question of duplicating the front-end.

We've designed a few web-solutions around .NET/Java and SQL/Oracle here, but I'd need to ask our gurus for advice on 24/7 operations.

Stefan
Old 28 April 2004, 11:44 AM
  #7  
Puff The Magic Wagon!
Moderator
Support Scoobynet!
Thread Starter
iTrader: (2)
 
Puff The Magic Wagon!'s Avatar
 
Join Date: May 2000
Location: From far, far away...
Posts: 16,978
Received 15 Likes on 9 Posts
Default

Sorry, made the point to emphasise the 24/7 aspect. We have one program, which includes a web front end, that accesses a single SQL database.

We wish to be fault tolerant so that is any component fails, it will not interfere with the running of the operation.

As you might guess, its courier related, so as we are service orientated, then we cannot afford to have unplanned for downtime, hence it needs to be as reliable as poss.

Trending Topics

Old 28 April 2004, 12:50 PM
  #8  
barrybudden
Scooby Regular
 
barrybudden's Avatar
 
Join Date: Oct 2002
Location: N.Ireland
Posts: 742
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Puff The Magic Wagon!
Sorry, made the point to emphasise the 24/7 aspect. We have one program, which includes a web front end, that accesses a single SQL database.

We wish to be fault tolerant so that is any component fails, it will not interfere with the running of the operation.

As you might guess, its courier related, so as we are service orientated, then we cannot afford to have unplanned for downtime, hence it needs to be as reliable as poss.
Going by what you have just said I think you should be looking down the road of a cluster server.
Old 28 April 2004, 12:53 PM
  #9  
barrybudden
Scooby Regular
 
barrybudden's Avatar
 
Join Date: Oct 2002
Location: N.Ireland
Posts: 742
Likes: 0
Received 0 Likes on 0 Posts
Default

These people sell some good stuff, might give you a few ideas.
http://www.rtsl.com/opencontent/defa...tion=SOLUTIONS
Old 28 April 2004, 04:28 PM
  #10  
Hanley
Scooby Regular
 
Hanley's Avatar
 
Join Date: May 2002
Location: Liverpool
Posts: 3,229
Likes: 0
Received 0 Likes on 0 Posts
Default

If you want full 24/7 uptime then you should be really looking at Clustering.

If clustering is not an option then you could consider Log Shipping (assuming you're using SQL Server 2000 Enterprise Edition)

Basically your prod db will backup the transaction log at pre-defined intervals set by you and copy it across to your standby server and restore it.

You have the added advantage that this standby server can also be a read-only copy of your db to avoid potential "accidents"
Old 28 April 2004, 04:41 PM
  #11  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Puff,

The lads I need to speak to are on a customers site all week. Do you know what the front-end is developed in and if this is being hosted by the customer?

Also, will the front-end be running on an MS platform (i.e. IIS)?

Stefan
Old 28 April 2004, 04:58 PM
  #12  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Spoke to a couple of SQL DBA's, but they say you could use SQL replication but it involves a manual changeover. They don't know anything about Windows or SQL clustering

Stefan
Old 28 April 2004, 06:20 PM
  #13  
Nog
Scooby Regular
 
Nog's Avatar
 
Join Date: Jul 2003
Posts: 141
Likes: 0
Received 0 Likes on 0 Posts
Smile

Neverfail??? Good s/ware.

http://us.neverfailgroup.com/products/NFFSQLS.asp


Nog
Old 28 April 2004, 07:31 PM
  #14  
ozzy
Scooby Regular
 
ozzy's Avatar
 
Join Date: Nov 1999
Location: Scotland, UK
Posts: 10,504
Likes: 0
Received 1 Like on 1 Post
Default

Frpm Neverfail webiste

In case of a failure of the active server the database will still be available, and database services as well as application services will be re-started on the passive server.
Which begs the question, how will your app know to switch between the active and passive servers automatically?

Perhaps Windows Clustering + SQL Cluster Services is an option

Stefan
Old 28 April 2004, 07:40 PM
  #15  
J1nxy
Scooby Regular
 
J1nxy's Avatar
 
Join Date: Sep 2002
Location: Northampton
Posts: 399
Likes: 0
Received 0 Likes on 0 Posts
Default

Have a look at Legatos www.legato.com replistor or Co-Standby server. They do local mirroring but can also do replication and failover across WAN links. In process of implementing for Exchange and have done real-time two way WAN based replication of file services for 5000 users using replistor. Automated failover in a matter of seconds and call also fail back. You can manual fail the services over giving you the chance to do upgrades etc

Steve
Old 28 April 2004, 09:01 PM
  #16  
NWMark
Scooby Regular
 
NWMark's Avatar
 
Join Date: Oct 2003
Location: Cheshire
Posts: 671
Likes: 0
Received 0 Likes on 0 Posts
Default

Not too sure what app/software is accessing the SQL Server but using ASP you can do the following.

Have two SQL Servers that replicate to each other so that they are both the same, obviously they will have different names, ips etc, but thats not a problem.

Then in the code that is accessing the SQL Server, initialise the link to the server at the beginning of the code or part od code that does the SQL processing you can then check whether this was a success or not. If it fails get the code to run the same initialise code but this time with the backup server details and hope this one is still up

Mark

Last edited by NWMark; 28 April 2004 at 09:04 PM.
Old 28 April 2004, 09:48 PM
  #17  
rs
Scooby Regular
 
rs's Avatar
 
Join Date: May 2001
Posts: 210
Likes: 0
Received 0 Likes on 0 Posts
Default

Take a look at Doubletake, we use it for DR purposes but it works well.

http://www.sunbeltsoftware.com/product.cfm?id=111
Old 29 April 2004, 12:33 AM
  #18  
TCMY95
Scooby Regular
 
TCMY95's Avatar
 
Join Date: Dec 2002
Location: North West
Posts: 101
Likes: 0
Received 0 Likes on 0 Posts
Default

Neverfail works really well..expensive though at 5k per server.

We also run a cluster and up until recently it has never given us any problems. When one of the servers fails the other fails to come up properly..we have to manually stop the dns and wins on the domain and then bring the other one back up...sort of defeats the object..lol
Old 29 April 2004, 09:33 AM
  #19  
rs
Scooby Regular
 
rs's Avatar
 
Join Date: May 2001
Posts: 210
Likes: 0
Received 0 Likes on 0 Posts
Default

I have implemented both Neverfail & Doubletake solutions and in my opinion DT is far less hassle and cheaper.

Rich
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
KAS35RSTI
Subaru
27
04 November 2021 07:12 PM
Frizzle-Dee
Essex Subaru Owners Club
13
09 March 2019 07:35 PM
Abx
Subaru
22
09 January 2016 05:42 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM



Quick Reply: Best Way To Mirror SQL Server?



All times are GMT +1. The time now is 12:00 PM.