Many people carry portable USB drives for their data. However, these drives are easily lost or forgotten, which can lead to data loss. A more robust solution, common in server environments, is the iSCSI Initiator. This technology was developed by the Internet Engineering Task Force (IETF), an unsung hero of internet standards.
iSCSI, which stands for Internet Small Computer System Interface, functions much like a portable USB drive. The key difference is that the storage is accessed over an IP network instead of being physically connected. This is a game-changer for server administration, as it allows for easy configuration of additional storage over the network.
This method significantly reduces the risk of data loss because the storage drives are located in centralized, professionally managed storage farms. This setup enables the creation of high-performance and resilient storage solutions, such as RAID configurations, without the need to physically carry drives.
/etc/netplan/50-cloud-init.yaml
.
sudo apt install open-iscsi
/etc/iscsi/initiatorname.iscsi
file:sudo echo 'InitiatorName=$(iscsi-iname):$(hostname)' | sed 's/.open-iscsi//;s/:.*:/:/' > /etc/iscsi/initiatorname.iscsi
sudo cat /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2025-06.com:srvinclab01
sudo systemctl restart iscsid
sudo systemctl status iscsid
sudo systemctl enable iscsid
sudo iscsiadm -m iface -I iSCSI-A -o new
sudo iscsiadm -m iface -I iSCSI-A --op=update -n iface.net_ifacename -v iscsia
sudo iscsiadm -I iSCSI-A -m discovery -t sendtargets -p 172.16.1.101
sudo iscsiadm -m node -T iqn.2023-24.com.storage:dh7r749e0j -p 172.16.1.101 -I iSCSI-A –login
sudo iscsiadm -m node -p 172.16.1.101 -o update -n node.startup -v automatic
sudo systemctl restart multipathd
sudo fdisk -l
sudo lsblk
sudo cat /etc/multipath.conf
sudo nano /etc/multipath.conf
sudo multipath -ll
Meet the Author
Vincent Chan has 22 years of experience in IT Architech, Operations, Consulting, Infrastructure Products Principle, and System Integration Solutions. He is passionate about solving challenges and constantly seeks to learn new technologies. His hobbies include photography. You can connect with him at vinc.chanmc@yahoo.com.
Tech Tips - By Vincent Chan
13 Jun 2025 (Fri)
Tech Tips - By Vincent Chan
10 Jun 2025 (Tue)
Tech Lifestyles - By Vincent Chan
03 Jun 2025 (Tue)
Tech Tips - By Vincent Chan
07 May 2025 (Wed)
Tech Tips - By Vincent Chan
06 May 2025 (Tue)
Tech Tips - By Vincent Chan
14 Apr 2025 (Mon)
Tech Lifestyles - By Vincent Chan
13 Apr 2025 (Sun)
Tech Tips - By Vincent Chan
24 Feb 2025 (Mon)
Tech Tips - By Vincent Chan
15 Feb 2025 (Sat)
Tech Tips - By Vincent Chan
13 Feb 2025 (Thu)
Subscribe to our newsletter and stay up-to-date with our VincLAB News!”