iSCSI Service and Client configuration (Redhat Liunx 7.0)

Source: Internet
Author: User

Providing iSCSI remote block storage services


iSCSI Block Storage Concepts


The Internet Small computer System Interface (iSCSI) is based on the TCP/IP protocol, simulating high-performance local storage buses, and reading and managing Remote Storage devices over IP networks. As a SAM protocol, iSCSI can provide storage services to Lan,wan.

At present, the highest transmission speed of Ethernet is up to 10-40g/s, which is comparable to the FC-connected San, and the future Ethernet speed can be up to 100g/s


Concept:


Initiator

iSCSI clients, connecting and using iSCSI remote fast devices, must be assigned a unique name (IQN)


Target

iSCSI storage resources on the iSCSI server side must have a unique name. A target can provide one or more fast devices, which are called LUNs. An iSCSI server can provide multiple target

Acl

Access to Target's control list, which can be verified by IP or password restrictions


Discovery

A list of target resources listed on the iSCSI server is initiated by initiator.

IQN

iSCSI specification naming, can be set to target or initiator

Iqn.yyyy-mm.com.xxx.domain[:optional_string]


Login

Initiator login found the target that was visited by the professor, after logging in, the remote target is recognized as a local block device, generally sd*


sd*


LUNs

The logical unit number is the number of the block device in target to distinguish the block device


Node

node, which can be a initiator or target

Portal

On a initiator or Tarhet node, a combination of IP and port is used to establish a connection between the initiator and target, which can be understood as an IP and port entry that accesses a target


Tpg

The IP address and port collection used by target portal group to listen to target. You can usually set a target to TPG to achieve the target's portal configuration



Configuration of an iSCSI service


1 Installing the relevant RPM package

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/C1/wKioL1cHia-zwZOaAAAf8uJlOI4474.png "title=" 1.png " alt= "Wkiol1chia-zwzoaaaaf8ujloi4474.png"/>


2. Start the target service and set up the firewall

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7E/C1/wKioL1cHic2RTXl6AABOTOSv3jA914.png "title=" 2.png " alt= "Wkiol1chic2rtxl6aabotosv3ja914.png"/>


3. Partitioning the/dev/sdb

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/C1/wKioL1cHik6T_hb7AAA-1SR9Vco356.png "title=" 3.png " alt= "Wkiol1chik6t_hb7aaa-1sr9vco356.png"/>



4. Change partitions to physical volumes, set up volume groups and logical volumes

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/C5/wKiom1cHibnAI-L4AABzEdzoSTA043.png "title=" 4.png " alt= "Wkiom1chibnai-l4aabzedzosta043.png"/>


5. Use TARGETCLI to enter the interactive interface

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/C1/wKioL1cHiyeRaNZQAABOoQzp9EY865.png "title=" 5.png " alt= "Wkiol1chiyeranzqaabooqzp9ey865.png"/>


6. Enter iSCSI to create a target service

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7E/C1/wKioL1cHi66A3nQDAAAodeb8yzw831.png "title=" 6.png " alt= "Wkiol1chi66a3nqdaaaodeb8yzw831.png"/>


7. Create a portals (equivalent to a network entry)

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7E/C1/wKioL1cHjAzAUI-RAABn_RLstMU004.png "title=" 7.png " alt= "Wkiol1chjazaui-raabn_rlstmu004.png"/>



8. Create a block name, bind the corresponding disk

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/C5/wKiom1cHjBvwFMSbAAA4JUZwk7Y530.png "title=" 8.png " alt= "Wkiom1chjbvwfmsbaaa4juzwk7y530.png"/>


9. Create a LUN (the logical unit number is to number the block device in target to distinguish the block device)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/C5/wKiom1cHjH2RT8ZwAABiivVeXiU672.png "title=" 9.png " alt= "Wkiom1chjh2rt8zwaabiivvexiu672.png"/>


10. Create an ACL that allows only one client to access

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7E/C5/wKiom1cHjOeAbT7VAAAtsM1FIHI078.png "title=" 10.png "alt=" Wkiom1chjoeabt7vaaatsm1fihi078.png "/>


11. Turn Off Password Authentication

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/C5/wKiom1cHjYXi9Gr6AAAn10eBbnA431.png "title=" 11.png "alt=" Wkiom1chjyxi9gr6aaan10ebbna431.png "/>


12. Turn off ACLs on TPG1

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7E/C5/wKiom1cHjWmwNUthAAAn8nThJE0519.png "title=" 12.png "alt=" Wkiom1chjwmwnuthaaan8nthje0519.png "/>


13. Complete configuration of the results

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/C5/wKiom1cHjcazcugYAACB82wt08k894.png "title=" 13.png "alt=" Wkiom1chjcazcugyaacb82wt08k894.png "/>






Configuration of two iSCSI clients


1. Install the RPM package

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/C5/wKiom1cHjiKTuNs9AACBqPKJy_g492.png "title=" 100. PNG "alt=" Wkiom1chjiktuns9aacbqpkjy_g492.png "/>


2. Edit/ETC/ISCSI/INITATORNAME.ISCSI

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/C5/wKiom1cHjlPzcGN-AAAsLBxQ4GM307.png "title=" 101. PNG "alt=" Wkiom1chjlpzcgn-aaaslbxq4gm307.png "/>



3. Start related services, connect the server and log on to the server

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7E/C5/wKiom1cHjs_ifABJAABGVXKlW00930.png "title=" 103. PNG "alt=" Wkiom1chjs_ifabjaabgvxklw00930.png "/>


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7E/C5/wKiom1cHkT_xn7C3AABCKeYKtv4922.png "title=" 104. PNG "alt=" Wkiom1chkt_xn7c3aabckeyktv4922.png "/>


4. View disk Information

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7E/C5/wKiom1cHjyrjOj_UAAA3BTlWnQ4252.png "title=" 105. PNG "alt=" Wkiom1chjyrjoj_uaaa3btlwnq4252.png "/>


5. Partition the/DEV/SDC (this is a device from the server)


6. Create a table of contents and format/DEV/SDC1

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7E/C1/wKioL1cHkELRKUr9AAA9hKYsFUE848.png "title=" 106. PNG "alt=" Wkiol1chkelrkur9aaa9hkysfue848.png "/>


7./DEC/SDC1 Permanent mount (edit/etc/fstab)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7E/C1/wKioL1cHkMLTLLD0AAA-pr115Dk742.png "title=" 107. PNG "alt=" Wkiol1chkmltlld0aaa-pr115dk742.png "/>


8. Final Mount

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7E/C1/wKioL1cHkQbxQO1-AAAsVigJsGc111.png "title=" 108. PNG "alt=" Wkiol1chkqbxqo1-aaasvigjsgc111.png "/>




This article from "Liunx Little Boy" blog, reprint please contact the author!

iSCSI Service and Client configuration (Redhat Liunx 7.0)

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.