lsblk You should see a new disk (e.g., /dev/sdc ). sudo mkfs.ext4 /dev/sdc sudo mkdir /mnt/iscsi-storage sudo mount /dev/sdc /mnt/iscsi-storage To make it persistent, add to /etc/fstab using the UUID or _netdev option. Part 4: Advanced Configuration – CakeOS 18 as a Secure iSCSI SAN For production environments, a basic install isn’t enough. Here are advanced tweaks for your iscsi cake 18 install : 4.1 CHAP Authentication (Two-Way) On target, enable mutual CHAP:
sudo vi /etc/iscsi/initiatorname.iscsi Make it match the ACL you created earlier:
targetcli /iscsi/iqn.2024-05.cakeos18:storage.target1/tpg1 set attribute authentication=1 /iscsi/iqn.2024-05.cakeos18:storage.target1/tpg1 set attribute generate_node_acls=0 /iscsi/iqn.2024-05.cakeos18:storage.target1/tpg1/acls/iqn.1994-05.com.redhat:client1 set auth userid=targetuser /iscsi/iqn.2024-05.cakeos18:storage.target1/tpg1/acls/iqn.1994-05.com.redhat:client1 set auth password=targetpass Then on initiator, configure /etc/iscsi/iscsid.conf : iscsi cake 18 install
sudo apt install targetcli-fb -y # Debian-based sudo dnf install targetcli -y # RHEL-based List available disks:
lsblk Assume /dev/sdb is our 100GB disk to share. Launch targetcli: lsblk You should see a new disk (e
sudo systemctl enable target For the initiator, enable automatic login:
By following this guide, you’ve not only installed iSCSI on CakeOS 18 but also learned how to secure, tune, and troubleshoot your storage network. As a next step, consider exploring multipathing (iSCSI MPIO) or integrating with virtualization platforms like Proxmox or Xen. Here are advanced tweaks for your iscsi cake 18 install : 4
Introduction In the world of enterprise storage networking, iSCSI (Internet Small Computer System Interface) remains a cornerstone technology. It allows you to transport SCSI commands over TCP/IP networks, effectively turning remote disk storage into local block devices. When you pair iSCSI with a robust, lightweight operating system like CakeOS 18 , you get a powerful, cost-effective Storage Area Network (SAN) solution.