Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to use 2 sql server instances with datafiles on a SAN Expand / Collapse
Author
Message
Posted Thursday, November 12, 2009 11:44 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, December 30, 2009 6:02 AM
Points: 1, Visits: 7
Hi everyone,

I would like to set up 2 difference instance of sql servers on different servers sharing same datafiles in a IBM Storage device (SAN). This is basically for load balancing. I would like to use one server for
OLTP and another one for reporting. Please let me know any issues with this kind of configuration and kindly guide me how can i do this. Basiclly i want to know the sharing of datafiles for 2 different instances.


Thanks
Post #818020
Posted Thursday, November 12, 2009 11:55 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Monday, February 11, 2013 8:27 AM
Points: 1,646, Visits: 1,947
I do not think that you can share the Data / Log Files between 2 different servers at the same time.

Instead have use Replication on the OLTP and see that the replicated DB is used for replication.

You have SAN based snapshots that can help you to have the Datafiles cloned and then try to use them on the other Server.

Log Shipping/ DB Mirroring is can also be used but not a straightforward on, you need to further make changes on the destination to use it for read only purpose.



Bru Medishetty

Blog -- LearnSQLWithBru

Join on Facebook Page Facebook.com\LearnSQLWithBru

Twitter -- BruMedishetty
Post #818026
Posted Friday, November 13, 2009 5:16 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 10:11 AM
Points: 31,168, Visits: 15,611
Bru is correct. You cannot share the data files for load balancing. There is a shared READ system using a SAN for Enterprise edition, but it will not work for write files, only read only.

Bru has some good suggestions for you, but replication may be the best for a reporting situation.







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #818934
Posted Monday, July 19, 2010 2:03 AM


Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Friday, February 7, 2014 5:50 AM
Points: 52, Visits: 165
You have 3 options:
Replication
Logshipping
Database mirroring with database snapshot

Choose anyone for reporting.....ut yes again Trasactional Replication would be best option here
Post #954637
Posted Monday, July 19, 2010 12:44 PM


SSCoach

SSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoachSSCoach

Group: General Forum Members
Last Login: Today @ 2:53 PM
Points: 17,807, Visits: 15,726
There is a 3rd party appliance that helps to simulate load balancing. It in essence creates a replication type of setup and keeps multiple databases in sync on different servers. But the data and log files of each cannot be shared.

I can't remember the name of the vendor, but it is out there.




Jason AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server, MVP


SQL RNNR

Posting Performance Based Questions - Gail Shaw
Post #955038
Posted Monday, July 19, 2010 1:09 PM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, October 13, 2014 1:13 PM
Points: 101, Visits: 299
If you choose to use database mirroring with a database snapshot, then you need to ensure that none of your data files is over 64GB in size. There's a Windows sparse file issue that you can encounter. And my environment did, and it caused downtime as the transaction log filled up on the primary server since the mirroring records didn't get cleared from the tlog. We were using the database snapshot for internal folks to run some adhoc queries every now and then. We've avoided the sparse file issue by adding multiple data files (my 1TB database has 21 data files now), but we decided not to use a database snapshot on the mirror just in case.

I use transactional replication for all of our reporting needs.


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
Ramblings of a DBA (My SQL Server Blog)
Subscribe to my blog
Post #955049
Posted Tuesday, July 20, 2010 7:55 AM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Today @ 10:19 AM
Points: 4,399, Visits: 6,255
CirquedeSQLeil (7/19/2010)
There is a 3rd party appliance that helps to simulate load balancing. It in essence creates a replication type of setup and keeps multiple databases in sync on different servers. But the data and log files of each cannot be shared.

I can't remember the name of the vendor, but it is out there.


Xkoto or Gridscale maybe?


Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #955588
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse