server name : server1.lab.com
ip adddress : 10.10.10.10/24
Require Package for target : targetcli-2.1.fb41-3.el7.noarch
Check this package is already installed or not.
If not installed, you have to install this package for your target server.
Check the service for target.
I have 1GB extra Storage /dev/sdb as shown in figure.
I want to share this /dev/sdb (1GB) to another server that requires share storage from this server.
Below are the steps we do for target server.
(1)backstores
- block
- fileio
- pscsi
- ramdisk
(3)loopback
(1) In backstores, create block for your share storage.
I created Name:ShareDisk and I used /dev/sdb for this block.
(2) create iscsi target name iqn.2019-10.lab.com:server1 (This is just a name)
(3) After creating iscsi target name, we have to create LUN mapping for this target.
That means which target is related to which backstores.
I mapped LUNs to ShareDisk which i created earlier.
After creating LUNs, we have to create ACLS for client access. You can limit or restirct ACLS for client.
In this tutorial, i want to access this share to iqn.2019-10.com.lab:desktop1 (This is initiator name from my client).This client only can access this iscsi share from target server.
Below shows how to see client initiator name in linux client server.
Final step is to create portal on target server for client discover.
"10.10.10.10" is my iscsi target server and "3260" is iscsi default port number.
After that you must enable iscsi port "3260" in firewall like this.
No comments:
Post a Comment