Iscsi — Cake 18 Install

sudo apt install fio -y Run a write test:

# Create a physical volume (if using a spare disk /dev/sdb) sudo pvcreate /dev/sdb # Create a volume group named 'iscsi-vg' sudo vgcreate iscsi-vg /dev/sdb # Create a logical volume named 'cake-lun' sudo lvcreate -L 50G -n cake-lun iscsi-vg Now launch the targetcli shell: iscsi cake 18 install

# /etc/netplan/01-netcfg.yaml network: version: 2 renderer: networkd ethernets: eth1: mtu: 9000 addresses: - 192.168.100.10/24 Run sudo netplan apply . Now move to your client machine. For Ubuntu 18.04 : sudo apt install fio -y Run a write

sudo fio --name=write_test --filename=/mnt/iscsi_cake/testfile --size=5G --rw=write --bs=1M --direct=1 --iodepth=32 On a properly tuned setup over 10GbE, you should see 800+ MB/s . Test 3: Multi-path I/O (Optional "Cake" Layer) For high availability, install multipath tools: Test 3: Multi-path I/O (Optional "Cake" Layer) For

sudo iscsiadm -m discovery -t sendtargets -p 192.168.100.10:3260 Expected output: 192.168.100.10:3260,1 iqn.2024.com.example:cake18target

# iSCSI Cake 18 network layer net.core.rmem_max = 134217728 net.core.wmem_max = 134217728 net.ipv4.tcp_rmem = 4096 87380 134217728 net.ipv4.tcp_wmem = 4096 65536 134217728 net.core.netdev_max_backlog = 5000 net.ipv4.tcp_sack = 1 net.ipv4.tcp_dsack = 1 net.ipv4.tcp_low_latency = 1 net.ipv4.tcp_timestamps = 0 Apply with: