AWS Amazon Machine Images for Linux Quick Start Guide
Introduction
This quick start guide describes how to configure DH2i’s pay-as-you-go DxEnterprise Linux images available on AWS. Using this guide, the user will configure DxEnterprise on two servers (nodes) and join the second node into a cluster.
Prerequisites
-
An AWS Virtual Machine (VM) with DxEnterprise pre-installed. To create a DxEnterprise VM using a Marketplace Image, search for “DxEnterprise” in the Marketplace using the AWS search bar.
-
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.
-
Set the hostname for the instance by running the command
hostnamectl set-hostname <new_hostname>
. -
Run the
setup.sh
script to start DxEnterprise services and activate the server.bash /opt/dh2i/bin/setup.sh
-
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
.
Setup Second Node and Join to Cluster
-
Use an SSH client to connect to the second server.
-
Complete step two of the previous section for the second node.
-
Join the second node to the cluster using
dxcli join-cluster
and follow the prompts. Select Y when prompted to join via NAT proxy. Enter the OTPK to join the cluster.Example
dxcli join-cluster
infoThe 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 on Linux Quick Start Guide
- AWS Load Balancer Quick Start Guide