ses-azure

ses-azure

Scripts to build and manage a SUSE Enterprise Storage cluster on Azure

How to Use the Scripts

These are bash scripts, so obviously they need Linux or a bash shell on whatever platform you’re using. The script names should be self-explanatory. They also require the Azure CLI to be installed, and a file named variables.sh in the same directory.

Specific Scripts

Name Notes
build_node.sh This is just a copy of https://github.com/dmbyte/SES-scripts/blob/master/clusterbuilder/buildit.sh.
create_cluster.sh Create the cluster by running create_nics.sh, create_vms.sh, and create_disks.sh.
create_disks.sh Create and attach disks ot all the OSD nodes. You need to specify how many OSD nodes and how many disks per node.
create_nics.sh Create vNICs with accelerated networking for admin, test, and OSD VMs. You need to specify how many of each VM type.
create_test_vms.sh Create VMs to be used as test clients for the cluster. You need to specify how many VMs to create.
create_vms.sh Create admin, test, and OSD VMs. You need to specify how many of each VM type to create.
delete_disks.sh Delete all disks in the specified resource group.
delete_vms.sh Delete all VMs in the specified resource group.
detach_disks.sh Detach disks from all the OSD nodes. You need to specify how many OSD nodes and how disks per node.
reattach_disks.sh Attach existing disks to all the OSD nodes. You need to specify how many OSD nodes and how disks per node.
resize_vms.sh Resize the OSD VMs. You need to specify how many OSD nodes.
setup node Not an actual script, but contains snippets that can be used to register and deploy code on the nodes once created.
shutdown_vms.sh Shutdown all VMs in the specified resource group.
startup_vms.sh Start up all VMs in the specified resource group.
variables.sh See below for required contents.

Variables.sh Content

#/bin/sh

# Resource group for the cluster
export RESOURCE_GROUP=$PREFIX-resource-group

# Availability set for the cluster
export AVAILABILITY_SET=$PREFIX-availability-set

# Username to log in to the nodes
export USERNAME=

# Password to log in to the nodes
export PASSWORD=

# TODO: Use SSH key to log in

# Network security group to use for all nodes
export NSG=$PREFIX-nsg

# Location for the nodes
export LOCATION=

# Name of VNet
export VNET=$PREFIX-vnet

# Name of Subnet
export SUBNET=$PREFIX-subnet

# URN of Image
export IMAGE=

Notes on accessing Ceph Dashboard

The OSD nodes are built without public internet IP addresses, so they will need to be accessed via port routing on the admin node.
Using SSH, you can use a command like this:

sh -L 8443:<prefix>-osd-<n>:8443 -L 3000:<prefix>-admin:3000 sesadmin@<prefix>-admin-public-ip.eastus.cloudapp.azure.com

And then hit https://localhost:8443/ to access the dashboard. You will also need an entry in your /etc/hosts file to map the
admin node’s public IP address to the internal name of the admin host, like so:

<ip address>	<prefix>-admin.internal.cloudapp.net

Visit original content creator repository
https://github.com/nbornstein/ses-azure

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *