LINUX7/CENTOS7 iSCSI Network Storage Services

Source: Internet
Author: User

iSCSI Network Storage Services

iSCSI implements networked storage, which provides the storage end called target, using the storage end called initiator. Storage space is available on target, initiator is responsible for connecting iSCSI devices, creating file systems in iSCSI devices, and accessing data, which looks like a hard drive on the initiator.

Server-side configuration target, ready to be a storage device for iSCSI that is published as a LUN (can be a whole disk, a partition, a logical volume, or a RAID array).

I have prepared two logical volumes as iSCSI storage devices beforehand.

Install Target First

Start the service

Set up a firewall

Execute TARGETCLI Tool

Note: Enter help to see the TARGETCLI

Basic ideas:

Create a target, create a LUN on target, and connect a block to a LUN by first making the shared block

1, create the block is to publish the logic to roll up a name

Note: Give/dev/vg00/lv00 logic to roll up a name called Server0.disk1, to/dev/mypool/lv01 logic roll up a name called Server0.disk2

View the block as shown:

2. Create a IQN name to create an iSCSI object

View the iSCSI objects as shown in:

3. Set ACL bind iSCSI object to client IP or host name

Note: Iqn.2015-06.com.benet:client1 is the name of initiator and needs to be set in the client.

4. Creating LUNs and binding blocks

An iSCSI object can create multiple LUNs (LUN0, LUN1 ...). )。

Perform LS view

Start the Listener

Note: The 172.24.3.5 is an iSCSI server-side NIC IP

You can view the/etc/target/saveconfig.json configuration file, which holds the configuration of iSCSI.

Configuration on the initiator side:

1. Install the Software

#yum install-y Iscsi-initiator-utils

2. Give initiator a name

#vim/ETC/ISCSI/INITIATORNAME.ISCSI

The contents are as follows:

3. Start the service

#systemctl enable iSCSI; Systemctl start iSCSI

4. Discovery Storage

#iscsiadm-M discovery-t st-p 172.24.3.5

5. Login Storage

#iscsiadm-M node-t iqn.2015-06.com.benet:disk1-p 172.24.3.5-l

Note:-L is a connection to iSCSI target;-U indicates disconnection and iSCSI target connectivity

Verifying client iSCSI Connections

The rest of the operation is the same as managing the local disk.

If you are interested in this, please scan the QR code below for free for more details

LINUX7/CENTOS7 iSCSI Network Storage Services

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.