Set Up Worker Node
Once you have confirmed that all requirements in Prerequisites are met, set up open-iscsi
for each worker node on which IOMesh will be installed and running.
It is important to note that if you intend for IOMesh to provide storage to other nodes within this Kubernetes cluster, you will also need to set up open-iscsi
for those nodes.
- 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