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 field- node.startupto- manual.- sudo sed -i 's/^node.startup = automatic$/node.startup = manual/' /etc/iscsi/iscsid.conf- Note: 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 of- MaxRecvDataSegmentLengthto 163,840 or above.
- Disable SELinux. - sudo setenforce 0 sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
- Load - 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