Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to use 2 sql server instances with datafiles on a SAN


How to use 2 sql server instances with datafiles on a SAN

Author
Message
bijucherian_in
bijucherian_in
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
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
Bru Medishetty
Bru Medishetty
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1662 Visits: 1950
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
Steve Jones
Steve Jones
SSC-Dedicated
SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)SSC-Dedicated (36K reputation)

Group: Administrators
Points: 36260 Visits: 18752
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
My Blog: www.voiceofthedba.com
Manvendra
Manvendra
Valued Member
Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)Valued Member (52 reputation)

Group: General Forum Members
Points: 52 Visits: 172
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
SQLRNNR
SQLRNNR
SSC-Insane
SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)SSC-Insane (21K reputation)

Group: General Forum Members
Points: 21105 Visits: 18259
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

Tara Kizer
Tara Kizer
SSC-Enthusiastic
SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)SSC-Enthusiastic (101 reputation)

Group: General Forum Members
Points: 101 Visits: 338
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
TheSQLGuru
TheSQLGuru
SSCertifiable
SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)SSCertifiable (6K reputation)

Group: General Forum Members
Points: 6000 Visits: 8314
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search