7 Replies Latest reply on Dec 29, 2014 7:29 AM by sajidiqubal

    How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster

    JESX35 Enthusiast

      Hello All,

       

      Currently we will be attempting to migrate a SQL cluster of (2 systems) into are virtual enviroment.  We have been tracking the system requirements with Vmware Consolidation Tool and IO Meter to make sure our hosts have enough resources to accomidate this.  All the metrics coming back looks like it will run just fine virtulized as the cluster was just for failover purposes anyhow and not for performance purproses.  With that said a few questions have come up.

       

      1.)  What is the best way to virtulize this or to convert it (P2V)

           -  Should we just create a new Virtual Machine and install the same version of SQL and do a manual migration to the new SQL server and leave it as 1 SQL server with HA

           -  Or is there a way to P2V this kind of a setup ? if so what are the steps involved?

       

      2.)  If a P2V is possible I was under the impression that you will have to use a RAW mapping for the hard disks otherwise the cluster will not work ?  Can anyone speak to this? as I'm pretty sure I have clustered windows server 2008 without RAW mapping before but not with SQL

        • 1. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
          Brian Laws Enthusiast

          I've had to convert serveral SQL clusters into VMs. Unfortunately, it is not possible to do a P2V on a cluster node. At least not that I ever found. It ended up being a fresh build. This can be a major problem; however, it can be a blessing since it could enable a fresh server.

           

          Are you looking at taking a physical cluster and making a new VM cluster? In our environment, we were using clustering to protect against server failure. With HA, that issue goes away. So we actually converted all of our clusters into non-clustered VMs. Your host dies, it's restarted automatically on the other host. This doesn't protect against guest software issues, but that's not what we were clustering for. Do you really need to cluster in a VM? Something to consider.

           

          Brian

          • 2. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
            JESX35 Enthusiast

            Another quick question.  The Vmware SQL Clustering KB article says:

             

            vSphere MSCS Setup Limitations


            Before you set up MSCS, review the list of functionality that is not supported for this release, and any
            requirements and recommendations that apply to your configuration.
            The following environments and functionality are not supported for MSCS setups with this release of vSphere:
            n Clustering on iSCSI, FCoE, and NFS disks.
            n Mixed environments, such as configurations where one cluster node is running a different version of ESX/
            ESXi than another cluster node.
            n Use of MSCS in conjunction with VMware Fault Tolerance.
            n Migration with VMotion of clustered virtual machines.
            n N-Port ID Virtualization (NPIV)
            n With native multipathing (NMP), clustering is not supported when the path policy is set to round robin.
            n You must use hardware version 7 with ESX/ESXi 4.0.

             

            Can you not do clustering if your shared storage is iSCSI ? or can you not do RAW mapping with it to create the cluster ?

            • 3. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
              JESX35 Enthusiast

              Ya the whole reason for the psyhical server cluster was for failover as the it coudln't be down for any long period of time as it runs mots of are line of business applications.  So i'm thinking that is the best way to go and just create a new SQL server with HA and migrate the databases over

               

              Any other thoughts ?

              • 4. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
                FredPeterson Expert

                The other option is to create another node that is virtual and simply migrate the cluster completely to the new VM and then remove the physical nodes.   SQL will run "clustered" with just one node.  I think it will complain though.  Plus it leaves you the option to add another node in the future if desired.

                 

                If you wanted to eliminate the SAN disk and use VMDK on VMFS or NFS then simply add those disks separately to the VM, shut the cluster down, add them into the cluster and migrate databases/logs to the new disks and when all moved over, remove the mapping for the SAN disk.

                1 person found this helpful
                • 5. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
                  sajidiqubal Lurker

                  Recently we have done P2V of SQL Cluster node. We just need to take care of disk signatures and proper disk assignemnt from storage and VMware.

                  • 6. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
                    mikejroberts Enthusiast

                    I would avoid running it as a clustered node, unless you really require clustering for OS level redundancy.  For clustering to work (even with a single node), you have to enable SCSI bus sharing and that prevents vMotion for the VM.  That means that you will have to take an outage of your VM each time you need to do maintenance on the host.

                    • 7. Re: How to migrate SQL Cluster into Virtual SQL server or Virtual SQL Cluster
                      sajidiqubal Lurker

                      For the metro cluster environment os level clustring will avoid HA restart times. Services will failover to another node so only service failover window required.

                      For this specific environment ,we are using EMC vplex metro cluster(virtual storage). distributed volume is maintaining data consistency between sites.