In this post, I will discuss about the configuration of an initiator server. Before starting with this one, make sure that you have gone through my previous post about ISCSI target:
-------
SCENARIO:
------
ISCSI target : server with IP address 192.168.150.153
ISCSI initiator : client with IP address 192.168.150.152
------
STEP 1: Install the following package:
-------
yum install -y iscsi-initiator-utils
-------
STEP 2: Open the file, /etc/iscsi/initiatorname.iscsi and enter the initiator name configured as acl on target side.
STEP 3: Start iscsi service and enable it on boot.
------
systemctl start iscsi
systemctl enable iscsi
------
STEP 4: Execute the iscsiadm command in discovery mode with the server ip address.
STEP 5: Now, login to the LUN using iscsiadm and see the result using lsblk.
In dmesg, we can view the logs.
STEP 6: Now, you can see 2 disks sda and sdb is added. Create an xfs filesystem using the block device "/dev/sda" and mount it to directory named "iscsi".
Final result will be as below:
STEP 7: Enable the services on boot as below:
Kool :)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.