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.startup
tomanual
.sudo sed -i 's/^node.startup = automatic$/node.startup = manual/' /etc/iscsi/iscsid.conf
Note: The value of
MaxRecvDataSegmentLength
in/etc/iscsi/iscsi.conf
is 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 ofMaxRecvDataSegmentLength
to 163,840 or above.Disable SELinux.
sudo setenforce 0 sudo sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
Load
iscsi_tcp
kernel module.sudo modprobe iscsi_tcp sudo bash -c 'echo iscsi_tcp > /etc/modprobe.d/iscsi-tcp.conf'
Start
iscsid
service.sudo systemctl enable --now iscsid