Linux (centos6.5) connectivity to iSCSI networked storage

Source: Internet
Author: User

Linux Connection ISCSI Networked Storage

Operating system platform: CentOS 6.5 x86_64

Storage Server Software version: Openfiler esa 2.99.1


Install the required package files

[Email protected]/]# Rpm-qa binutils

Binutils-2.20.51.0.2-5.36.el6.x86_64

[Email protected]/]# Rpm-qa xfsprogs

Xfsprogs-3.1.1-14.el6.x86_64

[email protected] yum.repos.d]# Yum install iscsi-initiator-utils

Updated:

Iscsi-initiator-utils.x86_64 0:6.2.0.873-13.el6

complete!

[email protected] yum.repos.d]# Yum install iscsi-initiator-utils-devel

Installed:

Iscsi-initiator-utils-devel.x86_64 0:6.2.0.873-13.el6

complete!

Enquiry ISCSI Target

[[email protected] yum.repos.d]# iscsiadm-mdiscovery-t sendtargets-p 172.16.94.195 Storage server IP Address, default port 3260

Starting iscsid: [ OK ]

172.16.94.195:3260,1iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1

172.16.94.195:3260,1iqn.2006-01.com.openfiler:tsn.4efa19910943

[Email protected] yum.repos.d]#

Login (i.e. mount):

Mount: iscsiadm-m node-t Target name - P Storage ip–l

To Remove: iscsiadm-m node-t Target name - P Storage Ip–u

[Email protected]/]# iscsiadm-m node-tiqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1-p 172.16.94.195-l

Logging in to [Iface:default, Target:iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1, portal:172.16.94.195,3260] ( multiple)

Login to [Iface:default, Target:iqn.2006-01.com.openfiler:tsn.a9e1e2fc1ac1, portal:172.16.94.195,3260]successful.

[Email protected]/]#

View all the ISCSI Connection:

[Email protected]/]# iscsiadm-m session

TCP: [1] 172.16.94.195:3260,1IQN.2006-01.COM.OPENFILER:TSN.A9E1E2FC1AC1 (Non-flash)

[Email protected]/]#

Result validation:

[Email protected]/]# fdisk-l

disk/dev/sda:107.4 GB, 107374182400 bytes

255 heads, Sectors/track, 13054cylinders

Units = Cylinders of 16065 * 8225280bytes

Sector size (logical/physical): bytes/512 bytes

I/O size (minimum/optimal): bytes/512bytes

Disk identifier:0x000ec831

Device Boot Start End Blocks Id System

/DEV/SDA1 * 1 512000 Linux

Partition 1 does not end on cylinderboundary.

/dev/sda2 13055 104344576 8e Linux LVM

........................

disk/dev/sdb: 4932 MB, 4932501504 bytes

Heads, Sectors/track, 1022 cylinders

Units = Cylinders of 9424 * 4825088bytes

Sector size (logical/physical): bytes/512 bytes

I/O size (minimum/optimal): bytes/512bytes

Disk identifier:0x00000000

[Email protected]/]#

Boot start:

# To manually startup of the session set to "Manual". The default is automatic.

Node.startup =automatic

# for "Automatic" startup nodes,setting the "Yes" would try logins on each

# available Iface until one succeeds, andthen stop. The default "No" would try

# logins on all availble ifacessimultaneously.

node.leading_login= No

HDD Auto Mount (Mount):

Edit file: Vim/etc/fstab

This article is from "Xin nuo" blog, please be sure to keep this source http://xinnuo.blog.51cto.com/4132978/1599917

Linux (centos6.5) connectivity to iSCSI networked storage

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.