iSCSI

iSCSI Ubuntu Initiator

For reasons I wanted to mount an iSCSI volume to an Ubuntu 22.04 VM. Yes, of course I could have just added another disk in ESXi but like I said, I have reasons!

VM Config
2 vCPU
4GB RAM
50GB boot disk
NIC1 untagged vm traffic
NIC2 iSCSI A – VLAN 100
NIC3 iSCSI B – VLAN 101

The goal is setup a multipath disk using the iSCSI A and B NICs to a SAN and ensure that the mount persists after a reboot. Working through multiple articles, I had some issues.

Setup Process

I intend to do a full write up of the steps I followed but here are the references I used and changes I made along the way.

I followed these IBM Steps. However this line needs to be changed.

#iscsiadm -m discovery -T sendtargets -p <target IP> # the T didn't work for me
iscsiadm -m discovery -t sendtargets -p <target IP> # lowercase t

In order to mount on reboot I followed the fstab step from here but adapted it for my needs

/dev/mapper/mpatha-part1 /mnt/ubuntu01-vol01 ext4 _netdev,rw 0 0

Leave a Reply

Your email address will not be published. Required fields are marked *