Rocky Linux ISCSI / FIbre Channel Target Support

Hi everybody, this is for all the people who will need the iSCSI disk in Webmin for easy target administration with Rocky Linux / Alma Linux !

Special thanks to @smeier !

Install scsi-target-utils on Oracle Linux 8.3 / Alma Linux 8.3 – TESTED and CONFIRMED WORKING with the packages.

[root@storage ~]# wget https://srv-store5.gofile.io/download/Z5jGNy/scsi-target-utils-1.0.80-4.el8.x86_64.rpm
[root@storage ~]# yum install lsof perl perl-Config-General
[root@storage ~]# rpm -i scsi-target-utils-1.0.80-4.el8.x86_64.rpm

make a new file named tgtd and copy paste this :

#!/bin/sh

/usr/bin/systemctl {1} tgtd.service** **exit ?

Copy the tgtd file to /etc/init.d and after that make it executable 775

Make the service start at boot with the command below :
chkconfig tgtd on
Start the service :
systemctl start tgtd
to restart the service :
systemctl restart tgtd

for Webmin in Alma Linux do this from the URL : Webmin
For Oracle Linux just install via RPM .

yum -y install perl perl-Net-SSLeay openssl perl-Encode-Detect tar
install it manually with ./setup.sh /usr/local/webmin
after that have fun with your new iSCSI Target Server !

When you create the iSCSI please follow this : please try a targetname without uppercase characters and without any other special characters: “Uppercase characters are always mapped to lowercase characters.”
Keep the server hostname in lowercase, otherwise you will not be able to connect to the iSCSI disks created.

3 Likes