Technical/How-To Home Page Microsoft VCF Compute (vSphere) VCF Networking (NSX) Workloads

Microsoft SQL Server Failover Clustering on VCF 9.1 VM Service: VCF Automation Manual Implementation (Part 3)

Introduction

In this part of the series, we will build the two nodes MSSQL FCI Cluster via VMware Cloud Foundation (VCF) Automation and its IaaS Services Console.

What will you learn from this article?

By the end of part 3, you will be able to create a fully fledged infrastructure that is ready for MSSQL Server Failover Clustering via VCF Automation Manually.

The Configuration Iteration

Moving to VCF Automation is not just a simple abstraction of the Supervisor. It is a shift from the individual vSphere Administrator persona to the multi-tenancy personas. However, the data plane remains the same and the service layers will also remain the same.

VCF Automation does not change the MSSQL cluster; it changes the operating model, where:

  • The provider decides what an organization may use.
  • The organization administrator packages it within the context of Namespace(s).
  • The project user builds inside the Namespace packaging/limits/resources.

Step 01: Provider Administrator

The first person is the Provider Administrator, given that the region(s) were created, there is an additional configuration item that needs to be taken care of before proceeding to the organization configuration, and this is the Infrastructure Policy:

  • A Compute Policy must be pre-created in the vCenter, this could be a VM-to-VM anti-affinity, or VM-to-Host anti-affinity, depending on your requirements to separate. Either for extra availability, or for extra availability and licensing placement perhaps.
  • Via the Provider Portal -> Infrastructure Policies -> Create a new Infrastructure Policy.
  • Now given that the Organization has been created and provided with its region resources and networking capabilities:
    • Go to Organizations, select the organization, and open its Region Quota:
      • Make sure that you have configured the reservations in the assigned region quota, otherwise the Organization administrator will not be able to see the sql-fci-8c64g VM Class.
      • Theb optionally -> Under Infrastructure Policies, click Edit and add the newly created policy.

Step 02: Organization Administrator

Continuing with the second persona, the Organization Administrator will now prepare the organization level resources that will be consumed by the Project User(s).

  • Start by creating a Content Library if you haven’t done so, and then upload the Windows image to it.
    • Login as an Organization Administrator -> Build & Deploy -> Content Hub -> Content Libraries -> New.
    • Once the Content Library is created, click on it -> VM Images -> Upload.
  • Now on to the Namespace creation:
    • Go to Manage & Govern -> Namespace Class -> click New.
    • Set CPU and Memory limits and reservations that cover both nodes with room to spare (remember the VM class requirements).
    • Add the VM class sql-fci-8c64g.Add the storage class (policy).
    • Click Create.
  • Next will be the creation of the project:
    • Go to Manage & Govern -> Projects -> click on NEW and create a new project.
    • Once the project is created -> click on the project -> go to the Namespaces tab -> click on NEW NAMESPACE:
      • Provide the name for the Namespace.
      • Choose the namespace class.
      • Choose the region and check the zone added.
      • Choose the VPC type:
        • If the subnets were pre-created/existing, you add them directly in this phase.
        • If the subnets need to be created, you can create them later on after the Namespace creation is done.
        • Click Create (do note that VCF Automation adds a short suffix to the name, for example mssqlfci-prod-x7k2q, so use the full name from here on).
        • For the Infrastructure Policy, this can be added after the Namespace has been created by clicking on the Namespace name and scrolling down to Infrastructure Policies -> ADD, afterwards this will show when the VMs are going to be created.

Step 03: Project User (IaaS Services Console):

For the final persona, it is the role of the Project User(s) to start creating the required resources to build the MSSQL nodes.

  • A – Create the network subnets

If the subnets were not previously created and added to the Namespace as previously explained, then you will need to create the two primary and heartbeat subnets from within the Namespace itself.

  • Go to Build & Deploy -> Namespace that you have created -> Network -> Subnets -> NEW SUBNET, you will notice that the same UI and fields that were present to you via the Supervisor, are also present here via VCF Automation, so that there is consistency in terms of consuming those services.
  • B – Create the shared Volumes

For this specific deployment, the shared disks number, volume and sizes are there to serve the purpose of showcasing how it works, however in production, most likely you will have a completely different number of disks with different sizes and allocations based on your requirements.

  • Go to Build & Deploy -> Namespace that you have created -> Volume -> NEW VOLUME, you will notice that the same UI and fields that were present to you via the Supervisor, are also present here via VCF Automation, so that there is consistency in terms of consuming those services.
Volume NameCapacityAccess Mode
sqlfci01-data500 GBMultiple VMs / Pods (Read Write Many)
sqlfci01-home100 GBMultiple VMs / Pods (Read Write Many)
sqlfci01-quorum50 GBMultiple VMs / Pods (Read Write Many)
  • C – Create the VMs

We will be creating the two nodes, without attaching the Shared Volumes during creation, this step will be done later on (the following steps are to be repeated per VM):

  • Go to Build & Deploy -> Namespace that you have created -> Virtual Machine -> CREATE VM, you will notice that the same UI and fields that were present to you via the Supervisor, are also present here via VCF Automation, so that there is consistency in terms of consuming those services.
  • Pick the source type from where you will deploy this VM: choose OVF
  • Select the VM Class and VM Image:
    • Input the VM’s name.
    • Select the zone.
    • Select the Windows 2022 image.
    • Select the VM class.
    • Select the Storage Class
    • Change the Power State to Powered Off.
  • Advanced Settings (optional): you can configure Sysprep here if desired, otherwise skip to the next configuration window.
  • Network Configuration:
    • Edit the default eth0 interface and select the primary network and input the IP address.
    • Click on ADD NETWORK INTERFACE and select the heartbeat network and input the IP address.
    • Fill in the Global Network Settings as desired.
    • Review and confirm.
  • D – Attach the Shared Volumes

We will be attaching the three volumes that were created previously, and this action will be repeated on the two VMs.

  • Go to Build & Deploy -> Namespace that you have created -> Virtual Machine -> click on the MSSQL node VM, you will notice that the same UI and fields that were present to you via the Supervisor, are also present here via VCF Automation, so that there is consistency in terms of consuming those services.
  • Scroll down to Volumes.
  • Click on “ATTACH VOLUME”.
  • Select Choose from existing volumes, select sqlfci01-data and set Application Type to Microsoft WSFC.
  • Repeat the same steps for sqlfci01-home, then for sqlfci01-quorum (keep the order on both nodes).
  • E – Power On the VMs

Now that everything is set, you can change the state of the VMs from Powered Off to Powered On.

  • Go to Build & Deploy -> Namespace that you have created -> Virtual Machine -> click on the MSSQL node VM, you will notice that the same UI and fields that were present to you via the Supervisor, are also present here via VCF Automation, so that there is consistency in terms of consuming those services.
  • Toggle the Power State so that to change it to Powered On.
  • Repeat the same steps for the second MSSQL node VM.

MSSQL FCI Installation

From here you can work on the initial configuration of the Windows OS, and then follow Microsoft’s guidance for installing and configuring a two node Microsoft SQL Server Failover Cluster.

Up Next

Head over to Part 4, where we will build on the same topology via VCF Automation via the Blueprint Designer so that this can be consumed as a repeatable service for all project users without having to go through the manual iteration.


Discover more from VMware Cloud Foundation (VCF) Blog

Subscribe to get the latest posts sent to your email.