ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    SQL mirroring advise

    IT Discussion
    sql sql server 2012 sql 2012 standard mirroring sql mirroring replication
    5
    16
    3.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • AmbarishrhA
      Ambarishrh
      last edited by

      I am working with a third party on a project for a client. It is a SharePoint farm with SQL 2012 standard edition. I wish this were the enterprise version to use Always-On!

      So the company set up two DB servers and created a PowerShell script. Asked us to use that script whenever we deploy a new SP site, the script replicates the DB to the second server. I have not much experience with SQL other than basic installation, just learning with Always-On, but is there no way we could just automate the DB mirroring in such a way that any new DB created on server1 gets replicated to db2 server? I want to avoid any manual intervention at this DB level. This is not about automatic failover but to sync DB from server 1 to server 2.

      1 Reply Last reply Reply Quote 1
      • AmbarishrhA
        Ambarishrh
        last edited by

        I guess i found the answer!

        If its 2 servers and not on cluster, this is the only way, but if this was on a cluster and a shared storage, it would've been already automated with the fact that the redundancy is only available at the host level unless you add redundancy on the storage level as well. Hope this is correct!

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          I believe that that is correct, I've never heard of nor can reasonably imagine a non-clustered databases creation sync mechanism being in place.

          1 Reply Last reply Reply Quote 1
          • AmbarishrhA
            Ambarishrh
            last edited by

            In touch with them to find out the cluster option, i dont understand why the individual DB server setup was created in the first place! Anyone knows what could be the drawback of the clustered setup which is not Always-On?

            1 Reply Last reply Reply Quote 0
            • DashrenderD
              Dashrender
              last edited by

              Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

              Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

              AmbarishrhA 1 Reply Last reply Reply Quote 0
              • AmbarishrhA
                Ambarishrh @Dashrender
                last edited by

                @Dashrender said in SQL mirroring advise:

                Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                scottalanmillerS dafyreD 2 Replies Last reply Reply Quote 0
                • scottalanmillerS
                  scottalanmiller @Ambarishrh
                  last edited by

                  @Ambarishrh said in SQL mirroring advise:

                  @Dashrender said in SQL mirroring advise:

                  Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                  Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                  Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                  So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                  AmbarishrhA 1 Reply Last reply Reply Quote 1
                  • AmbarishrhA
                    Ambarishrh @scottalanmiller
                    last edited by

                    @scottalanmiller said in SQL mirroring advise:

                    @Ambarishrh said in SQL mirroring advise:

                    @Dashrender said in SQL mirroring advise:

                    Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                    Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                    Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                    So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                    Yes, we've told them this won't work and asked them to look at a clustered setup. Since the licenses are already in place and is SQL standard no option for Always-On. I want to know what would be the drawbacks for the clustered setup, as for sure there are some more advantages on Always-ON compared to the clustered setup.

                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                    • DashrenderD
                      Dashrender
                      last edited by

                      I'm confused - I thought you said Always-On required enterprise licenses?

                      Doesn't clustering also require enterprise licenses?

                      https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&sqi=2&ved=0ahUKEwiDlNvu_53PAhUCVT4KHV6cCaEQFggrMAA&url=http%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F9%2FC%2F6%2F9C6EB70A-8D52-48F4-9F04-08970411B7A3%2FSQL_Server_2016_Licensing_Guide_EN_US.pdf&usg=AFQjCNE7TV6zyxX4GudFPBW3z5SoQIRXhQ&sig2=dzzzIdRntxTHOsZIpVCNkg&bvm=bv.133178914,d.cWw&cad=rja

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @Ambarishrh
                        last edited by

                        @Ambarishrh said in SQL mirroring advise:

                        @scottalanmiller said in SQL mirroring advise:

                        @Ambarishrh said in SQL mirroring advise:

                        @Dashrender said in SQL mirroring advise:

                        Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                        Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                        Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                        So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                        Yes, we've told them this won't work and asked them to look at a clustered setup. Since the licenses are already in place and is SQL standard no option for Always-On. I want to know what would be the drawbacks for the clustered setup, as for sure there are some more advantages on Always-ON compared to the clustered setup.

                        Won't work... for what? What's the end goal?

                        AmbarishrhA 1 Reply Last reply Reply Quote 0
                        • dafyreD
                          dafyre @Ambarishrh
                          last edited by

                          @Ambarishrh said in SQL mirroring advise:

                          The downside here is that someone need to manually run the script for db mirroring of new databases

                          Scheduled task that runs every hour or so?

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • J
                            Jason Banned
                            last edited by

                            We replicate between none clustered SQL servers here but it's one way. All Onsite Clusters replicate back to the Corp Cluster every 30min or so. Two way would require a lot of Checks.

                            1 Reply Last reply Reply Quote 0
                            • scottalanmillerS
                              scottalanmiller @dafyre
                              last edited by

                              @dafyre said in SQL mirroring advise:

                              @Ambarishrh said in SQL mirroring advise:

                              The downside here is that someone need to manually run the script for db mirroring of new databases

                              Scheduled task that runs every hour or so?

                              How often are new databases created? Normally that's a once every few years thing. In companies that make new ones all of the time, normally there are DBAs that would do any mirroring and this would be trivial.

                              1 Reply Last reply Reply Quote 1
                              • AmbarishrhA
                                Ambarishrh @scottalanmiller
                                last edited by

                                @scottalanmiller said in SQL mirroring advise:

                                @Ambarishrh said in SQL mirroring advise:

                                @scottalanmiller said in SQL mirroring advise:

                                @Ambarishrh said in SQL mirroring advise:

                                @Dashrender said in SQL mirroring advise:

                                Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                                Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                                Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                                So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                                Yes, we've told them this won't work and asked them to look at a clustered setup. Since the licenses are already in place and is SQL standard no option for Always-On. I want to know what would be the drawbacks for the clustered setup, as for sure there are some more advantages on Always-ON compared to the clustered setup.

                                Won't work... for what? What's the end goal?

                                Won't work: Current stage its 2 separate DB servers and mirroring needs to be done by executing a script whenever there is a new db is created by SP.

                                End Goal: A fully automated failover setup giving high availability for the SharePoint solution

                                Just read this looks like a clean post explaining SQL Failover vs AlawaysON https://www.concurrency.com/blog/w/should-you-choose-a-sql-server-failover-cluster-in

                                scottalanmillerS 1 Reply Last reply Reply Quote 0
                                • scottalanmillerS
                                  scottalanmiller @Ambarishrh
                                  last edited by

                                  @Ambarishrh said in SQL mirroring advise:

                                  @scottalanmiller said in SQL mirroring advise:

                                  @Ambarishrh said in SQL mirroring advise:

                                  @scottalanmiller said in SQL mirroring advise:

                                  @Ambarishrh said in SQL mirroring advise:

                                  @Dashrender said in SQL mirroring advise:

                                  Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                                  Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                                  Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                                  So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                                  Yes, we've told them this won't work and asked them to look at a clustered setup. Since the licenses are already in place and is SQL standard no option for Always-On. I want to know what would be the drawbacks for the clustered setup, as for sure there are some more advantages on Always-ON compared to the clustered setup.

                                  Won't work... for what? What's the end goal?

                                  Won't work: Current stage its 2 separate DB servers and mirroring needs to be done by executing a script whenever there is a new db is created by SP.

                                  End Goal: A fully automated failover setup giving high availability for the SharePoint solution

                                  What they are doing is unrelated to their end goal. How does mirroring database creation help with failover. There isn't even a first step in preparing for a failover here. What is going on is totally something different.

                                  DashrenderD 1 Reply Last reply Reply Quote 1
                                  • DashrenderD
                                    Dashrender @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in SQL mirroring advise:

                                    @Ambarishrh said in SQL mirroring advise:

                                    @scottalanmiller said in SQL mirroring advise:

                                    @Ambarishrh said in SQL mirroring advise:

                                    @scottalanmiller said in SQL mirroring advise:

                                    @Ambarishrh said in SQL mirroring advise:

                                    @Dashrender said in SQL mirroring advise:

                                    Are the two SQL servers sitting side by side? If not, shared storage and low latency for it's use would be super expensive.

                                    Though I do wonder how their DR plan works if there isn't a cluster for the DB, what purpose does the second server serve? Warm spare?

                                    Yes the servers are side by side, basically just sits there, and when a new site is created on SP side, run the script which mirrors the new DB created on server 1 to server 2. Eventually they were planning to introduce the witness server once our testing is complete and then enable auto failover. The downside here is that someone need to manually run the script for db mirroring of new databases

                                    So the big thing here is that the databases are not mirrored, just the framework (schema) is at creation time. Very different from mirroring or clustering at that aspect level.

                                    Yes, we've told them this won't work and asked them to look at a clustered setup. Since the licenses are already in place and is SQL standard no option for Always-On. I want to know what would be the drawbacks for the clustered setup, as for sure there are some more advantages on Always-ON compared to the clustered setup.

                                    Won't work... for what? What's the end goal?

                                    Won't work: Current stage its 2 separate DB servers and mirroring needs to be done by executing a script whenever there is a new db is created by SP.

                                    End Goal: A fully automated failover setup giving high availability for the SharePoint solution

                                    What they are doing is unrelated to their end goal. How does mirroring database creation help with failover. There isn't even a first step in preparing for a failover here. What is going on is totally something different.

                                    Exactly what i was asking earlier.

                                    1 Reply Last reply Reply Quote 2
                                    • 1 / 1
                                    • First post
                                      Last post