Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel7

Using the pattern determined in network planning for the site, this zorctl scsctl initialization step will build a custom configuration file for dhcpd DHCP and restart that the service. The Changes in the configuration file changes will specify the pools and ranges which DHCP is to manage, as well as other DHCP response data to be used with PXE booting storage nodes.

...

To configure DHCP, use refer to the following command:

zorctl init dhcp

Info

As a reminder, to see the full list of options use zorctl init dhcp help

Required Parameters

The Swarm network requires to have an upper or lower (or both) reserved range defined. At least one of these parameters must be provided.

--dhcp-reserve-lower DHCP_RESERVE_LOWER

The number of IP addresses to reserve in the lower subnet range (default is 0)

steps:

  1. Set DHCP reserve lower range.

    Code Block
    languagebash
    scsctl init dhcp --dhcp-reserve-

...

The number of IP addresses to reserve in the upper subnet range (default is 0)

Additional DHCP Parameters

The following optional parameters allow further customization of the DHCP configuration.

--dhcp-lease-default DHCP_LEASE_DEFAULT

The default DHCP lease time for storage nodes, in seconds (default is 172800)

--dhcp-lease-max DHCP_LEASE_MAX

The maximum allowed DHCP lease time for storage nodes, in seconds (default is 604800)

--dhcp-transient-percent DHCP_TRANSIENT_PERCENT

The percentage of the DHCP managed range for transient clients (default is 50)

Other Optional Parameters

The following parameters are concerned with other related services and information about those services provided in DHCP responses. The default values come from the initialization wizard as well as the prior configuration scan, but the values may be overridden here.

--dns-domain DNS_DOMAIN

The DNS domain name for the Swarm cluster. This is typically a subdomain of a larger organization DNS domain.

--dns-servers DNS_SERVERS

A comma-delimited list of DNS servers to be used by Swarm. If spaces are included in the list, then the entire list will need to be wrapped in quotes.

--ntp-servers NTP_SERVERS

...

  1. lower=30 
    DHCP config updated
  2. Set the minimum size of the disk supported by the Swarm cluster. For example, the Swarm cluster supports a minimum of 16 GB disk size.

    Code Block
    languagebash
    scsctl storage config set -d ​​"disk.minGB=16" 
  3. Enable the nodeExporter for Prometheus.

    Code Block
    scsctl storage config set -d "metrics.enableNodeExporter=true" 
    scsctl storage config set -d "metrics.nodeExporterFrequency=120" 

Tip

Next, install a Swarm license.