Configure Storage Server with iSCSI.
Configure Storage Server with iSCSI.
in This Tutorial you will Learn " How To Configure Storage Server with iSCSI On Oracle Linux 9
Configure Storage Server with iSCSI.
Storage server with iSCSI on network is called iSCSI Target, Client Host that connects to iSCSI Target is called iSCSI Initiator.
+----------------------+ | +----------------------+
| [ iSCSI Target ] |192.168.1.50 | 192.168.1.40| [ iSCSI Initiator ] |
__________________________________________________________________________________________________________________________________
Server - Os: Oracle Linux Server 9.0 64Bit | IP -192.168.1.50 |Hostname - server.testbox.com
__________________________________________________________________________________________________________________________________
Configure iSCSI Target (Targetcli) -
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install targetcli
mkdir /var/lib/iscsi_disks
targetcli
cd backstores/fileio
create disk01 /var/lib/iscsi_disks/disk01.img 10G
cd /iscsi
create iqn.2023-03.server.testbox:dlp.target01
cd iqn.2023-03.server.testbox:dlp.target01/tpg1/luns
create /backstores/fileio/disk01
cd ../acls
create iqn.2023-03.server.testbox:node01.initiator01
cd iqn.2023-03.server.testbox:node01.initiator01
set auth userid=username
set auth password=password
exit
ss -napt | grep 3260
systemctl enable target
firewall-cmd --add-service=iscsi-target ; firewall-cmd --runtime-to-permanent
__________________________________________________________________________________________________________________________________
Configure iSCSI Initiator -
__________________________________________________________________________________________________________________________________
cat /etc/system-release ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install iscsi-initiator-utils
nano /etc/iscsi/initiatorname.iscsi
InitiatorName=iqn.2023-03.server.testbox:node01.initiator01
nano /etc/iscsi/iscsid.conf
node.session.auth.authmethod = CHAP
node.session.auth.username = username
node.session.auth.password = password
iscsiadm -m discovery -t sendtargets -p 192.168.1.50
iscsiadm -m node -o show
systemctl restart iscsid
iscsiadm -m node --login
iscsiadm -m session -o show
cat /proc/partitions
parted --script /dev/sdc "mklabel gpt"
parted --script /dev/sdc "mkpart primary 0% 100%"
mkfs.xfs -i size=1024 -s size=4096 /dev/sdc1
mount /dev/sdc1 /mnt
df -hT
Related Posts:
- How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5
- Configure NTP Server in Oracle Linux 9
- How To Install Magento 2.4 on Rocky Linux 8
- How To Install Docker on Oracle Linux Server 9
- How to Install WHM/cPanel in Almalinux?
- How To Install Kamailio SIP Server on Rocky Linux 8
- How To Install Ruby on Rails with PostgreSQL on Rocky Linux 8
- How To Install EMQX MQTT Broker on Rocky Linux 8
- How to Install and Configure RabbitMQ Server on Rocky Linux 8
- Setup Quick DNS Server On Rocky Linux 8.5 Using Dnsmasq
Latest Posts
- Server-Side Scripting: PHP, Node.js, Python – A Detailed Comparison
- Securing Your Website in 2024: Essential Strategies for Online Safety
- The Future of Web Development Technologies: Trends to Watch in 2024
- How Banks Handle Server-Side Operations and Ensure System Security: An Inside Look
- Tips for Writing Clean, Understandable, and Efficient Code: Avoiding Garbage Code
- Tailwind CSS: Revolutionizing Modern Web Design
- Basic Linux Commands for Beginners: A Starter Guide
- Dairy Farming Loan Apply
- BSNL Recharge Plan
- Bijli Bill Mafi Yojana Online Apply
Technical
- DevOps Roadmap
- How To Install and Configure an SNMP on Ubuntu 20.04
- Apple releases iOS 18 Developer Beta 2 with iPhone screen mirroring, RCS toggle,and more
- How to enable SNMP on Ubuntu Linux 18.04 and above
- How to Force HTTPS Using .htaccess (Updated 2024)
- Display All PHP Errors: Basic & Advanced Usage
- PHP alert
- MongoDB loads but breaks, returning status=14
- MongoDB database deleted automatically
- MongoDB all Error Solutions
Category