LinuxiSCSItarget configuration process

Source: Internet
Author: User
Tags dmesg
The entire process of linuxiSCSItarget configuration-Linux Enterprise Application-Linux server application information. See the following for details. I. Install iSCSI target for Linux

1. Install
Installing iscsitarget is simple. You only need to extract it to the specified directory, and then enter the directory to execute the make and make install commands. However, some compilation errors may occur when iSCSI target is installed in FC8.

2. Configuration
[Root @ lianxi1999 iscsitarget-0.4.15] # vi/etc/ietd. conf
User userid superpassword
Target iqn.2001-04.com. example: storage. disk2.sys1. xyz
Lun 0/dev/sdb1 fileio
Alias lun0

3. Start the service
[Root @ lianxi1999] #/etc/init. d/iscsi-target start
Starting iSCSI target service: [OK]

4. Check for verification
[Root @ lianxi1999] # dmesg

ISCSI Enterprise Target Software-version 0.4.15
Iotype_init (92) register fileio
Iotype_init (92) register blockio
Iotype_init (92) register nullio
Parse_fileio_params (230) Unknown/dev/sdb1 fileio
Fileio_attach (268)-22

View logs:
[Root @ lianxi1999] # tailf/var/log/messages

5. modify the configuration file:
Target iqn.2001-04.com. example: storage. disk2.sys1. idisk
Lun 4 Path =/dev/sdb1, Type = fileio
Alias sdb

The dmesg information is as follows:
ISCSI Enterprise Target Software-version 0.4.15
Iotype_init (92) register fileio
Iotype_init (92) register blockio
Iotype_init (92) register nullio

View logs:
[Root @ lianxi1999] # tailf/var/log/messages

In this way, you can log on to the target through the initiator terminal.
Related Article

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.