iSCSI GFS Shared Storage (staging)

Source: Internet
Author: User

CentOS Install iSCSI Server side

Yum Install Scsi-target-utils

Iscsi-initiator-utils

Client Installation

iscsi-initiator-utils


scsi-target-utils The main configuration files and commands in the package:

/ETC/TGT/TARGET.CONF: Primary configuration file

/usr/sbin/tgt-admin: Online query, delete target and other functions of the command

/USR/SBIN/TGTD: Main program that mainly provides iSCSI target service

Main configuration files and commands in Iscsi-initiator-utils:

/ETC/ISCSI/ISCSID.CONF: Primary configuration file

/SBIN/ISCSID: Primary service Program to start iSCSI Initiator

/SBIN/ISCSIADM: Managing the iSCSI Initiator management program

/ETC/INTIT.D/ISCSID: Main service process

/ETC/INIT.D/ISCSI: Start the script, you can make the discovered iSCSI target configuration take effect, generally directly use the script, initiator not executed, will call/etc/init.d/iscsid boot Initiat

Server-side Simple configuration

A variety of iSCSI components are available in the target configuration file, where the simplest implementation

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/58/98/wKiom1S00W7DSFOGAAA6UPZAQPA272.jpg "title=" Selection _ 002.png "alt=" Wkiom1s00w7dsfogaaa6upzaqpa272.jpg "/>

IQN (iSCSI qualified Name) is used to identify the server and client for iSCSI communication in the format
Iqn.yyyy-mm.com.reverse.domain:optional-extra-name
Device name, which is a shared disk
Permission control
Executing on the client
Found
[[Email protected] ~] #iscsiadm-M discovery-t sendtargets-p 192.168.0.165
192.168.0.165:3260,1 Iqn.2015-01.com.node0:server.target2
Connection
[Email protected] ~]# iscsiadm-m node-t iqn.2015-01.com.node0:server.target2-p 192.168.0.165-l
Logging in to [Iface:default, Target:iqn.2015-01.com.node0:server.target2, portal:192.168.0.165,3260] (multiple)
Login to [Iface:default, Target:iqn.2015-01.com.node0:server.target2, portal:192.168.0.165,3260] successful
Verify that DISK/DEV/SDA appears
[Email protected] ~]# fdisk-l
disk/dev/sda:10.7 GB, 10737418240 bytes
Heads, Sectors/track, 10240 cylinders
Units = Cylinders of 2048 * 1048576 bytes
Sector size (logical/physical): bytes/512 bytes
I/O size (minimum/optimal): bytes/512 bytes
Disk identifier:0x00000000

This article from "Wind Died" blog, declined reprint!

iSCSI GFS Shared Storage (staging)

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.