antony@notes:~/rancher$ cat "Longhorn-Installation-Requirements.md"
Longhorn Installation Requirements
Longhorn Installation Requirements
Minimum Recommended Hardware
- 3 nodes
- 4 vCPUs per node
- 4 GiB per node
- SSD/NVMe or similar performance block device on the node for storage (recommended)
- HDD/Spinning Disk or similar performance block device on the node for storage (verified)
- 500/250 max IOPS per volume (1 MiB I/O)
- 500/250 max throughput per volume (MiB/s)
SL Micro 6.0
# open-iscsi is installed, and the iscsid daemon is running on all the nodes.
$ rpm -qa | grep -E "open-iscsi|nfs-client"
open-iscsi-2.1.9-3.7.x86_64
nfs-client-2.6.3-36.15.x86_64
$ sudo systemctl enable --now iscsid
$ sudo systemctl is-active iscsid
# the following pkg must be installed
$ sudo bash -c "for i in bash curl findmnt grep awk blkid lsblk; do command -v \${i}; done | wc -l"
7
# Check NFSv4.1 or NFSv4.2 support is enabled in kernel
$ cat /boot/config-`uname -r`| grep -E "CONFIG_NFS_V4_1|CONFIG_NFS_V4_2"
CONFIG_NFS_V4_1=y
CONFIG_NFS_V4_2=y
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org"
# CONFIG_NFS_V4_1_MIGRATION is not set
# CONFIG_NFS_V4_2_READ_PLUS is not set
CONFIG_NFS_V4_2_SSC_HELPER=y
$ cat <<EOF | sudo tee -a /etc/modules-load.d/v2_data_engine_modules.conf
vfio_pci
uio_pci_generic
nvme-tcp
EOF
$ sudo reboot
$ sudo lsmod | grep -Ei "vfio_pci|uio_pci_generic|nvme_tcp"
nvme_tcp 61440 0
nvme_keyring 16384 1 nvme_tcp
nvme_fabrics 45056 1 nvme_tcp
nvme_core 233472 2 nvme_tcp,nvme_fabrics
uio_pci_generic 12288 0
vfio_pci 16384 0
vfio_pci_core 86016 1 vfio_pci
vfio 61440 3 vfio_pci_core,vfio_iommu_type1,vfio_pci
irqbypass 12288 2 vfio_pci_core,kvm
uio 32768 2 cnic,uio_pci_generic
$ sudo pvcreate pvcreate /dev/sdb
$ sudo vgcreate longhorn-vg /dev/sdb
$ sudo lvcreate -l 100%FREE -n longhorn-data longhorn-vg
$ sudo lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
longhorn-data longhorn-vg -wi-a----- 32.00g
$ sudo mkdir -p /var/lib/longhorn
$ sudo mkfs.xfs /dev/longhorn-vg/longhorn-data
$ sudo vi /etc/fstab
/dev/longhorn-vg/longhorn-data /var/lib/longhorn xfs defaults 0 0
$ sudo mount -a