Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

How to Deploy

Enlist the chassis and deploy them for management and orchestration to install Swarm Storage. Swarm Platform supports any chassis equipped with IPMI 2.0 or newer.

  1. Power on each chassis planned as a Swarm storage node. Each chassis PXE boots from the Platform server, enlists itself with Platform, and shuts itself down.

  2. List the chassis currently available to run Swarm after enlistment completes:

    platform list nodes

    The number of chassis returned is the value to use in the next step for -n, unless some are kept in reserve.

  3. Deploy Swarm Storage to the chassis being managed by Platform:

    platform deploy storage -v {#.#.# Version of Swarm Storage} -c {Path to cluster.cfg} -n {# Nodes To Deploy}
  4. At this point, the Platform will power on each of the nodes twice. The first power on is commissioning, involving hardware interrogation and other tasks, which ends with a power off. The second power on is to boot Swarm Storage on the chassis.

  5. Once Swarm is running, deploy Content Gateway, or, if not using Content Gateway, proceed to Deploying a Proxy.

    platform deploy proxy -b {Path to Service Proxy Bundle zip}

Power Control with ESXi 

With a VMware ESXi hypervisor, you may want to use local Storage VMs. These VMs enlist, but the power type is not detected by MAAS. Commissioning and deployment requires the "Manual" power type (see next), and requires manually powering on these VMs (shutdown works).

Using the native VMware power type is possible, but more complex: select it through the VMWare UI as well as the MAAS CLI, and use a valid (not self-signed) SSL certificate on the hypervisor. 

Using Manual Power Control

When a chassis is powered on for the first time, the Platform Server auto-detects which power mechanism to use when processing them for deployment. However, if a chassis has IPMI for power control of the chassis but you need Platform server to ignore IPMI, you must switch the deployment to manual power control (add the --manual flag to the platform deploy command) and then manually power on machines at the right time as they go through the lifecycle.

When using manual power control, you need to use CLI commands to know when to power on each chassis, so use the -y <system-id> flag, rather than -n <# of nodes>.

  1. Run the deploy command for an individual chassis, using the  --manual flag and the -y <system-id> flag.

  2. To know when to turn the chassis on, use the --state Commissioning flag:

    platform list nodes --state Commissioning
  3. As soon as the chassis appears in the list, you can power on the chassis.

  4. After you power on the chassis, it will go through commissioning and then power itself off.

  5. To know when to power on the chassis for the final time (to deploy the Storage software), use the --state Deploying flag:

    platform list nodes --state Deploying
  6. As soon as the chassis appears in the list, you can power on the chassis for the final time.

Tip

You can also use the following CLI command to follow the chassis through its lifecycle stages.

platform list nodes -y <system-id> --short

Changing Network Bonding Mode

By default, the Platform server will boot all Storage chassis using the "balance-alb" bonding mode. You can modify the default bonding mode to use for future deployments by using the following command:

platform add bonding-mode --default-bonding-mode "<bonding-mode-to-use>"

Note

This setting is not retroactive. Changing the default bonding mode only applies to the chassis that are deployed after the default mode is set.

Use a mode for the Linux bonding driver that is tested and supported for Swarm:

active-backup

Active-backup

balance-alb

(Platform default) Adaptive load balancing

802.3ad

IEEE 802.3ad

Bonding modes

See Network Devices and Priority for details on bonding modes.

To use a different bonding mode when deploying an individual chassis, override the default value by using the --bondingMode flag:

platform deploy storage -v <#.#.# Version of Swarm Storage> -c <Path to cluster.cfg> -y <system-id> --bondingMode "<bonding-mode-to-use>"

To modify the bonding mode for a chassis that's already deployed, run the add kernelparam command:

platform add kernelparam -y <system-id> --kernel_params "castor_net=<bonding_mode>"

After the command completes, restart the chassis.

Configuring Subclusters

After all the chassis have been deployed and are running, you can assign chassis to subclusters.

To assign a chassis to a subcluster, use the assign command:

Add to subcluster
platform subcluster assign -y <system-id> --subcluster <subcluster-name>

Note

Assignment is not immediate. Allow time for every node on the chassis to be migrated to the new subcluster.

To review the subcluster assignments, use the list command:

List subclusters
platform subcluster list
  • No labels