Configure iSCSI Target (Server) & Initiator (Client) in Linux (RHEL 7) | Nehra Classes

preview_player
Показать описание
Install & Configure iSCSI Target (Server) as well as iSCSI Initiator (Client) in RHEL 7 (CentOS 7):
=========
iSCSI stands for Internet Small Computer Systems Interface.

iSCSI is a transport layer protocol that works on top of the Transport Control Protocol (TCP).
It enables block-level SCSI data transport between the iSCSI initiator and the storage target over TCP/IP networks.
iSCSI supports encrypting the network packets, and decrypts upon arrival at the target.

SCSI is a block-based set of commands that connects computing devices to networked storage, including spinning up storage media and data reads/writes.
The protocol uses initiators to send SCSI commands to storage device targets on remote servers.
Storage targets may be SAN, NAS, tape, general-purpose servers – both SSD and HDD – LUNs, or others.
The protocol allows admins to better utilize shared storage by allowing hosts to store data to remote networked storage, and virtualizes remote storage for applications that require direct attached storage.

NFS, Samba, AFS (NAS Based Tools) work at filesystem level, whereas iSCSI (SAN Based like AoE) works at block level.

iSCSI Target =) iSCSI Server
iSCSI initiator =) iSCSI Client

iSCSI Target (Server) Configuration: (RHEL 7): 192.168.1.104
-------------------------------------------------------------------------------
# yum repolist

Local Yum Repo Configuration:

# ifconfig

# hostnamectl

# yum install -y targetcli

# lsblk

OR

# fdisk -l

# targetcli

# ls
BLOCK = Block-device based LUN Storage Space like Disk e.g. /dev/sdb.
FILEIO = File based LUN Storage Space like file created with dd command.
PSCSI = (SCSI Pass-through) Physical Disk based LUN Storage Space like CD-ROM.
RamDisk= Ramdisk based LUN Storage Space for higher IO speed.

# /backstores/block create newlun /dev/sdb

# ls

# /iscsi create

# ls
iscsi
-iqn
-tpg1 = target portal group
-acl = provide the access to luns with the help of client iqn number
-luns = which lun has to mapped or to be accessed by client
-portals = network cards, ip address, port number
-0.0.0.0:3260

# ls

# ls

# exit

Client Configuration: (RHEL 7): 192.168.1.105
------------------------------------------------------------
# yum repolist

# ifconfig

# hostnamectl

# yum install -y iscsi-initiator-utils

# lsblk

OR

# fdisk -l

# iscsiadm --help

# iscsiadm -m discovery -t sendtargets -p 192.168.1.104

# lsblk

OR

# fdisk -l

# cat /proc/scsi/scsi

# mkdir -p /newlun

# mount /dev/sdb /newlun

# cd /newlun

# touch test{1..10}.txt

# mkdir aa bb cc dd

# ls -lh

================
Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications.
===============
Our Some Popular Videos:

NAVIC:

Learn Linux Fundamentals:

Concept of All RAID Levels:

Configure RAID-0 in Linux:

Configure RAID-1 in Linux:

Configure RAID-5 in Linux:

Configure RAID-6 in Linux:

Configure RAID-10 in Linux:

LVM Snapshot:
====================================================
Contact Us:

To Follow Vikas Nehra's Twitter Handle:👇

For Registration:👇

To Follow Our Twitter Handle:👇

To Visit Our Facebook Page:👇

To Follow Nehra Classes on Instagram:👇

To Our Visit Our Webpage:👇

Join Us on Telegram App: 👇

WhatsApp Us: 👇

Email Us:👇
============
©COPYRIGHT. ALL RIGHTS RESERVED.

#NehraClasses #LinuxTraining #Trending
Рекомендации по теме
Комментарии
Автор

Very Helpful. Worked exactly the way explained in the video. Thanks.

thiruardura
Автор

I just noticed that after adding the mount entry to /etc/fstab and rebooting the server, it didn't boot up. I have to remove that entry and only then the server was booting.

thiruardura
Автор

on centos7 target server iscsi disk is missing after reboot, what to do??

kanthakumara
Автор

professor I am very happy to learn a lot
HOW to Configure Challenge-Handshake Authentication Protocol?

winme
Автор

Hello, Just need to confirm:
Can we treat this FS as a Raw FS and can be used in cluster service?

Kdmathur
Автор

Sir,
I have created A iscsi target On centos .

* After I create iscsi target I give access from two client, Client-1, Client-2. I successfully connect and mount volume booth client There is no issue to connect. ( Booth client and server is on Centos )
But when I update or create file or folder on the mounted volume from client -1 it transfer done but when I see same volume from client -2 there is empty, there is no file or folder. Then I tried to send some file of folder from client -2 it's transfer fine, but I can't see those file from client-1 that I send from client -2, Still see old file that was I sent from Client-1. That means client-1 can not see client-2's file or folder and client-2 can not see cient-1's file or folder.
would you like to help me please about this?

biswasashim
Автор

Excellent lab it is very helpful to me

smrutiranjandas
Автор

Sir i have one question:
Suppose we have shared a 5gb lun from our iscsi server to one of our node, and from that node we save some data so technically that data will be stored in the iscsi server right? So is there any way we can see the data from our iscsi server as well??

sankhajitroy
Автор

Did they hacked you at the beginning ??

joshuasaimon