Azure Marketplace Image for Linux Quick Start Guide
Introduction
This quick start guide describes how to configure DH2i’s bring-your-own-license (BYOL) and pay-as-you-go DxEnterprise Linux images available on Azure. Using this guide, the user will configure DxEnterprise on two servers (nodes) and join the second node into a cluster.
Prerequisites
-
An Azure Virtual Machine (VM) with DxEnterprise pre-installed. To create a DxEnterprise VM using a Marketplace Image, visit the Azure Marketplace and search for “DxEnterprise.”
-
A second DxEnterprise VM for joining two nodes into a cluster.
Configure DxEnterprise on the First Node
-
Use an SSH client to connect to the first server.
-
Run the
setup.sh
script to start DxEnterprise services.bash /opt/dh2i/bin/setup.sh
-
BYOL images only: Activate the server using the command
dxcli activate-server
.Example
dxcli activate-server AAAA-BBBB-CCCC-DDDD --accept-eula
-
Prepare the node so other members can join the cluster.
- NAT Join
- Local Join
cautionBring-your-own-license (BYOL) users should verify that their license supports NAT and tunneling features before setting a One-Time PassKey. To confirm license features, run
dxcli get-producttype
and verify that NAT and TUN are listed.Pay-as-you-go licenses on Azure and AWS already have NAT and tunneling enabled.
-
Use the command
dxcli set-otpk
to set a One-Time PassKey for the cluster. The passkey expires one hour after creation by default.Example
dxcli set-otpk
-
Optional: Set the cluster passkey using the command
dxcli cluster-set-secret
.infoSetting a cluster passkey is not required when doing NAT joins. However, a cluster passkey is still required for remote cluster management.
Example
dxcli cluster-set-secret
tipThe non-interactive version of this command is
dxcli cluster-set-secret-ex
.
Set the cluster passkey using the command
dxcli cluster-set-secret
.Example
dxcli cluster-set-secret
tipThe non-interactive version of this command is
dxcli cluster-set-secret-ex
.
Setup Second Node and Join to Cluster
-
Use an SSH client to connect to the second server.
-
Complete step two (and step three for BYOL images) of the previous section for the second node.
-
Join the second node to the cluster using
dxcli join-cluster
and follow the prompts.- NAT Join
- Local Join
Select Y when prompted to join via NAT proxy. Enter the OTPK to join the cluster.
Select N when prompted to join via NAT proxy. Enter the IP address and cluster passkey of the first server to join the cluster.
Example
dxcli join-cluster
tipThe non-interactive version of this command is
dxcli join-cluster-ex
.
Next Steps
- SQL Server Availability Groups with DxCLI Quick Start Guide
- SQL Server HA Instances for Linux on Azure Quick Start Guide
- Azure Load Balancer Quick Start Guide