Set Up Worker Node
Before setting up open-iscsi for the worker nodes, ensure all requirements in Prerequisites are met.
- On the node console, run the following command to install
open-iscsi.
sudo yum install iscsi-initiator-utils -y
sudo apt-get install open-iscsi -y
Edit the file
/etc/iscsi/iscsid.conf. Set the value of the fieldnode.startuptomanual.sudo sed -i 's/^node.startup = automatic$/node.startup = manual/' /etc/iscsi/iscsid.confNote: The value of
MaxRecvDataSegmentLengthin/etc/iscsi/iscsi.confis set at 32,768 by default, and the maximum number of PVs is limited to 80,000 in IOMesh. To create PVs more than 80,000 in IOMesh, it is recommended to set the value ofMaxRecvDataSegmentLengthto 163,840 or above.Disable SELinux.
sudo setenforce 0 sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/configLoad
iscsi_tcpkernel module.sudo modprobe iscsi_tcp sudo bash -c 'echo iscsi_tcp > /etc/modprobe.d/iscsi-tcp.conf'Start
iscsidservice.sudo systemctl enable --now iscsid