iSCSI Client
sudo dnf install iscsi-initiator-utils -y
sudo systemctl enable --now iscsid
systemctl status iscsid
Setup Hugepages
echo 1024 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo vm.nr_hugepages = 1024 | sudo tee -a /etc/sysctl.conf
Label Nodes
kubectl label node alex-cloud-sn-1 openebs.io/engine=mayastor &&
kubectl label node alex-cloud-sn-2 openebs.io/engine=mayastor &&
kubectl label node alex-cloud-sn-3 openebs.io/engine=mayastor
Opened Ports
sudo firewall-cmd --zone=public --permanent --add-port=10124/tcp
sudo firewall-cmd --zone=public --permanent --add-port=8420/tcp
sudo firewall-cmd --zone=public --permanent --add-port=4421/tcp
sudo firewall-cmd --reload
ZFS Installed
dnf install <https://zfsonlinux.org/epel/zfs-release-2-2$>(rpm --eval "%{dist}").noarch.rpm -y
dnf install zfs -y
/sbin/modprobe zfs
echo zfs > /etc/modules-load.d/zfs.conf
NVMe-TCP installed
dnf install nvme-cli kernel-modules-extra -y &&
modprobe nvme-tcp
echo nvme-tcp > /etc/modules-load.d/nvme.conf
The targeted device has to be ext4!
mkfs.ext4 /dev/sda2
kubectl delete crd lvmnodes.local.openebs.io &&
kubectl delete crd lvmsnapshots.local.openebs.io &&
kubectl delete crd lvmvolumes.local.openebs.io &&
kubectl delete crd zfsbackups.zfs.openebs.io &&
kubectl delete crd zfsnodes.zfs.openebs.io &&
kubectl delete crd zfsrestores.zfs.openebs.io &&
kubectl delete crd zfssnapshots.zfs.openebs.io &&
kubectl delete crd zfsvolumes.zfs.openebs.io &&
kubectl delete crd volumesnapshotclasses.snapshot.storage.k8s.io &&
kubectl delete crd volumesnapshotcontents.snapshot.storage.k8s.io &&
kubectl delete crd volumesnapshots.snapshot.storage.k8s.io
echo vm.swappiness=10 | sudo tee -a /etc/sysctl.conf
echo net.ipv4.tcp_tso_win_divisor=16 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p