Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following example shows the configuration lines from the Internet Systems Consortium (ISC) DHCP server that is commonly available on UNIX systems. As shown below, the The next-server parameter defines the IP address of the Trivial File Transfer Protocol (TFTP) server and the filename parameter to define the bootstrap loader program to download .as shown below:

Code Block
languagebash
group {
   next-server 172.16.1.10;
   filename "/pxelinux.0";
   # Hosts allowed to network boot into Swarm
   host clusternode1 { hardware ethernet 00:90:cb:bf:45:26; }
   host clusternode2 { hardware ethernet 00:90:b2:92:09:e4; }
   host clusternode3 { hardware ethernet 00:90:0d:46:7a:b4; }
   }

In this example, the The Swarm nodes are explicitly defined by MAC address to prevent Swarm from initiating an unattended boot by other servers or workstations in this example.

Configuring PortFast on switch ports

PortFast is a switch port configuration parameter that enables a port to bypass the listening and learning Spanning Tree states so the port immediately forwards traffic.

If a storage cluster node is connected to a network switch, verify Verify PortFast is configured on the switch ports leading to each node if a storage cluster node . Otherwise, the is connected to a network switch. The extended time delay can prevent netboot from delivering the Swarm image to a PXE-enabled node in a timely manner if this condition is not met.

Configuring the TFTP server

The TFTP server transfers configuration or boot files between systems in a local environment. After configuring the DHCP server, configure the Configure the TFTP server to load the Swarm software onto the cluster nodes after configuring the DHCP server.

To set up the TFTP server:

...

TFTP server software is available in both free and commercial packages. UNIX distributions commonly include TFTP server software with the standard setup. For example, the The tftp-hpa package for UNIX can integrate with Swarm. Source code can be obtained from the Linux Kernel Archives website located at kernel.org/pub/software/network/tftp.

...

Creating the tftpboot directory hierarchy

After installing the TFTP server, configure Configure the server to access the network boot file directory after installing the TFTP server. This directory is typically labeled /tftpboot because TFTP is almost exclusively used for booting network devices.

...

The Swarm software distribution media includes the kernel and fsimage files, which contain the Swarm embedded operating system. Copy these files to the tftpboot/profiles/castor directory on the TFTP server so they load onto each Swarm node during bootup.

After copying the directory template and the Swarm software files, the The tftpboot directory on the TFTP server should contain these files after copying the directory template and the Swarm software files:

File name

Description

tftpboot/pxelinux.0

Boot loader program

tftpboot/profiles/castor/fsimage

Swarm software

tftpboot/profiles/castor/kernel

Swarm operating system kernel

tftpboot/pxelinux.cfg/default

PXELINUX configuration file

...

DHCP and boot server redundancy
Anchor
DHCP
DHCP

When setting up the DHCP server, configure Configure both a primary and secondary DHCP server when setting up the DHCP server. This configuration eliminates a single point of failure if one of the servers goes offline for any reason.

  • To set up the ISC DHCP daemon for redundancy, see See "Failover with ISC DHCP" at madboa.com/geek/dhcp-failover to set up the ISC DHCP daemon for redundancy.

  • To provide redundancy at the network booting layer, use the Use the primary and secondary DHCP servers as TFTP servers to provide redundancy at the network booting layer.
    When setting up the DHCP servers, set Set the next-server parameter in each server to specify a separate IP address when setting up the DHCP servers. When the primary or secondary DHCP server handles the PXE boot when it answers a DHCP query, it also handles the PXE boot.

  • To prevent any network interruptions, verify Verify the TFTP boot servers are located in the same broadcast domain (or VLAN) as the Swarm nodes or enable a DHCP relay server on the VLAN to prevent any network interruptions.

Setting up a configuration file server

Info

Platform Server

If Skip this section if using Platform Server, skip this section: the centralized configuration is set up.

Swarm supports centralized node configuration files on an HTTP or FTP server. This method allows booting from a network or a standard USB flash drive. A centralized configuration file server simplifies storage cluster administration by supporting configuration file updates and providing a method to group similar node configurations together.

To implement a configuration file server, set Set the value of the castor_cfg kernel configuration parameter to a URL that targets the configuration list file , to implement a configuration file server as described below.

PXE boot example

...

This is an example section of the syslinux.cfg located in the root directory on the USB flash drive.:

Code Block
languagebash
label normal
	kernel kernel
	append initrd=fsimage ramdisk_size=160000 root=/dev/ram0 
		castor_cfg=http://172.16.1.200/castor/cfg-list.txt

...

Disabling monitor power-saving activation

To disable the monitor power-saving feature from activating while connected to a Swarm storage node, add Add the following kernel option to the APPEND line in either the syslinux.cfg file on the Swarm USB key or in the PXE boot configuration file .When enabled, this to disable the monitor power-saving feature from activating while connected to a Swarm storage node.

This parameter tells the kernel to stop blanking the console when enabled:

Code Block
languagebash
consoleblank=0

This feature defaults to 10 minutes. A value of 0 disables the blank timer. Listed below are examples.:

PXE boot example

This is a PXELINUX configuration file from the tftpboot/pxelinux.cfg directory on the TFTP boot server with the console power saver disabled.

...