Iscsi installation Configuration

Source: Internet
Author: User

I. software required for the iSCSI server: SCSI-target-utils

Listening port: 3260

Client Authentication Method: 1, based on IP

2. User-based, chap (two-way authentication, server verification client, client verification server)

   

Software required for the iSCSI client: iSCSI-initiator-utils

Open-iSCSI


Ii. Server Configuration:

Prepare a target, which can be a partition.

Install SCSI-tartget-utils: Yum-y install SCSI-target-utils

Service is/etc/init. d/tgtd

The command line tool is tgtadm.

Start: Service tatd start


1. tgtadm modeled command:

Use -- mode to specify the mode

Common modes: Target, logicalunit, and accont

Target -- op

New, delete, show, update, bind, unbind

Logicalunit -- op

New, delete

Accont -- op

New, delete, bind, unbind

-- Initiator-address abbreviation -- I

Targetname:

Iqn. yyyy-Mm. <reversed. Domain Name> [: identifier]

Example: iqn.2014-10.com. zzc. Nokia: Test


Create target: tgtadm -- LLD iSCSI -- Mode target -- op new -- targetname iqn.2014-10.com. zzc. Nokia: Test -- TID 1

View: tgtadm -- LLD iSCSI -- Mode target -- op show

Create logicalunit: tgtadm -- LLD iSCSI -- Mode logicalunit -- op new -- TID 1 -- Lun 1 -- backing-store/dev/SDB

Create IP-based authentication: tgtadm -- LLD iscis -- Mode target -- op bind -- TID 1 -- initiator-Address 192.168.1.0/24

Client configuration: 1. Install iSCSI-initiator-utils Yum-y install iSCSI-initiator-utils.

Start Service: Service iSCSI start

Iscsiadm modeled command:

-M {discovery | node | session | iface}

Discovery: find out whether a service has target output and what target is output

Node: manages the association between a target and a root target.

Session: session management

Iface: Interface Management

For example, the target: iscsiadm-M discovery-D 2-T St-P 192.168.1.100

Log on to a target iscis-M node-T iqn.2014-10.com. zzc. Nokia: Test-P 192.168.1.100-l

Iscsi installation Configuration

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.