Questo contenuto non è disponibile nella lingua selezionata.
Chapter 9. Configuring additional devices in an IBM Z or IBM LinuxONE environment
After installing OpenShift Container Platform, you can configure additional devices for your cluster in an IBM Z® or IBM® LinuxONE environment, which is installed with z/VM. The following devices can be configured:
- Fibre Channel Protocol (FCP) host
- FCP LUN
- DASD
- qeth
You can configure devices by adding udev rules using the Machine Config Operator (MCO) or you can configure devices manually.
The procedures described here apply only to z/VM installations. If you have installed your cluster with RHEL KVM on IBM Z® or IBM® LinuxONE infrastructure, no additional configuration is needed inside the KVM guest after the devices were added to the KVM guests. However, both in z/VM and RHEL KVM environments the next steps to configure the Local Storage Operator and Kubernetes NMState Operator need to be applied.
9.1. Configuring additional devices using the Machine Config Operator (MCO) Copia collegamentoCollegamento copiato negli appunti!
Tasks in this section describe how to use features of the Machine Config Operator (MCO) to configure additional devices in an IBM Z® or IBM® LinuxONE environment. Configuring devices with the MCO is persistent but only allows specific configurations for compute nodes. MCO does not allow control plane nodes to have different configurations.
Prerequisites
- You are logged in to the cluster as a user with administrative privileges.
- The device must be available to the z/VM guest.
- The device is already attached.
-
The device is not included in the
cio_ignore
list, which can be set in the kernel parameters. You have created a
MachineConfig
object file with the following YAML:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.1.1. Configuring a Fibre Channel Protocol (FCP) host Copia collegamentoCollegamento copiato negli appunti!
The following is an example of how to configure an FCP host adapter with N_Port Identifier Virtualization (NPIV) by adding a udev rule.
Procedure
Take the following sample udev rule
441-zfcp-host-0.0.8000.rules
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Convert the rule to Base64 encoded by running the following command:
base64 /path/to/file/
$ base64 /path/to/file/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the following MCO sample profile into a YAML file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.1.2. Configuring an FCP LUN Copia collegamentoCollegamento copiato negli appunti!
The following is an example of how to configure an FCP LUN by adding a udev rule. You can add new FCP LUNs or add additional paths to LUNs that are already configured with multipathing.
Procedure
Take the following sample udev rule
41-zfcp-lun-0.0.8000:0x500507680d760026:0x00bc000000000000.rules
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Convert the rule to Base64 encoded by running the following command:
base64 /path/to/file/
$ base64 /path/to/file/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the following MCO sample profile into a YAML file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.1.3. Configuring DASD Copia collegamentoCollegamento copiato negli appunti!
The following is an example of how to configure a DASD device by adding a udev rule.
Procedure
Take the following sample udev rule
41-dasd-eckd-0.0.4444.rules
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Convert the rule to Base64 encoded by running the following command:
base64 /path/to/file/
$ base64 /path/to/file/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the following MCO sample profile into a YAML file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.1.4. Configuring qeth Copia collegamentoCollegamento copiato negli appunti!
The following is an example of how to configure a qeth device by adding a udev rule.
Procedure
Take the following sample udev rule
41-qeth-0.0.1000.rules
:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Convert the rule to Base64 encoded by running the following command:
base64 /path/to/file/
$ base64 /path/to/file/
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy the following MCO sample profile into a YAML file:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.2. Configuring additional devices manually Copia collegamentoCollegamento copiato negli appunti!
Tasks in this section describe how to manually configure additional devices in an IBM Z® or IBM® LinuxONE environment. This configuration method is persistent over node restarts but not OpenShift Container Platform native and you need to redo the steps if you replace the node.
Prerequisites
- You are logged in to the cluster as a user with administrative privileges.
- The device must be available to the node.
- In a z/VM environment, the device must be attached to the z/VM guest.
Procedure
Connect to the node via SSH by running the following command:
ssh <user>@<node_ip_address>
$ ssh <user>@<node_ip_address>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can also start a debug session to the node by running the following command:
oc debug node/<node_name>
$ oc debug node/<node_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To enable the devices with the
chzdev
command, enter the following command:sudo chzdev -e <device>
$ sudo chzdev -e <device>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
9.3. RoCE network Cards Copia collegamentoCollegamento copiato negli appunti!
RoCE (RDMA over Converged Ethernet) network cards do not need to be enabled and their interfaces can be configured with the Kubernetes NMState Operator whenever they are available in the node. For example, RoCE network cards are available if they are attached in a z/VM environment or passed through in a RHEL KVM environment.
9.4. Enabling multipathing for FCP LUNs Copia collegamentoCollegamento copiato negli appunti!
Tasks in this section describe how to manually configure additional devices in an IBM Z® or IBM® LinuxONE environment. This configuration method is persistent over node restarts but not OpenShift Container Platform native and you need to redo the steps if you replace the node.
On IBM Z® and IBM® LinuxONE, you can enable multipathing only if you configured your cluster for it during installation. For more information, see "Installing RHCOS and starting the OpenShift Container Platform bootstrap process" in Installing a cluster with z/VM on IBM Z® and IBM® LinuxONE.
Prerequisites
- You are logged in to the cluster as a user with administrative privileges.
- You have configured multiple paths to a LUN with either method explained above.
Procedure
Connect to the node via SSH by running the following command:
ssh <user>@<node_ip_address>
$ ssh <user>@<node_ip_address>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You can also start a debug session to the node by running the following command:
oc debug node/<node_name>
$ oc debug node/<node_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To enable multipathing, run the following command:
sudo /sbin/mpathconf --enable
$ sudo /sbin/mpathconf --enable
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To start the
multipathd
daemon, run the following command:sudo multipath
$ sudo multipath
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: To format your multipath device with fdisk, run the following command:
sudo fdisk /dev/mapper/mpatha
$ sudo fdisk /dev/mapper/mpatha
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
To verify that the devices have been grouped, run the following command:
sudo multipath -ll
$ sudo multipath -ll
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example output
Copy to Clipboard Copied! Toggle word wrap Toggle overflow