ISCSI technology is a SCSI instruction set that is developed by IBM and used by hardware devices to run on the upper layer of the IP protocol, this command set allows you to run the SCSI protocol on an IP network so that it can select routes on high-speed Gigabit Ethernet. ISCSI is a new storage technology that combines existing SCSI interfaces with Ethernet technologies to allow servers to exchange data with storage devices using IP networks.
1. Install the iscsi service software and add a shared hard disk.
[Root @ node1 ~] # Yum install scsi-target-utils -- install software
[Root @ node1 ~] # Sfdisk-l/dev/sdb -- Newly Added Disk
Disk/dev/sdb: 66 cylinders, 255 heads, 63 sectors/track
[Root @ node1 ~] #
2. modify the configuration file on the server
[Root @ node1 ~] # Vim/etc/tgt/targets. conf -- modify the configuration file and add the following lines
<Target iqn.2014-01. node1: server.tar get4> --2014-01is the date, node1is the computer name, And server.tar get4 is freely written
Direct-store/dev/sdb-the hard disk to be shared, which can also be a partition or block device.
Write-cache off -- Do not write to the cache
Initiator-address 2.2.2.0/24 -- which network segment is allowed to access
</Target>
[Root @ node1 ~] #/Etc/init. d/tgtd restart
Stopping SCSI target daemon: [OK]
Starting SCSI target daemon: [OK]
[Root @ node1 ~] # Netstat-lutnp | grep 3260
Tcp 0 0 0.0.0.0: 3260 0.0.0.0: * LISTEN 1962/tgtd
Tcp 0 0: 3260: * LISTEN 1962/tgtd
[Root @ node1 ~] # Tgt-admin -- show | grep Target -- a shared storage is found.
Target 1: iqn.2014-01. node1: server.tar get4
[Root @ node1 ~] # Iptables-I INPUT-p tcp-s 2.2.2.0/24 -- dport 3260-j ACCEPT -- allow packet filtering
3. The client is a Windows system.
(1) download and install the Windows iSCSI client Tool
Free in http://linux.bkjia.com/
The username and password are both www.bkjia.com
The specific download directory is available at/July 6, 6.4/July 3/July 3/July 3/CentOS system storage server iSCSI
For the download method, see
(2) Open the page after installation
(3) write the IP address of the server
(4) Check the disk shared by the server. If not, check whether there are errors elsewhere.
(5) log on to the server's scsi Service
(6) you can see the new disk in the windows system. If you need to install the driver in the middle of the process, you need to install the driver and format the new disk.
(7) I can see the partition on my computer.
Web Service shared storage cluster architecture based on RHCS + iSCSI + CLVM
Configure iSCSI storage and multi-path functions in Linux
Build an ip san-based iSCSI Storage System
ISCSI connection failure Solution
Install CentOS 6.0 and configure the iSCSI service in Citrix XenServer
CentOS 5.3 mounts storage cabinets with iSCSI