[Rhce] iSCSI

Source: Internet
Author: User

------------------------------------------------------------
Server: Server Construction
Yum install SCSI-target-utils # package required for Installation

Service tgtd start # Start the tgtd Service
Chkconfig tgtd on # Set automatic start upon startup

Tgtadm -- LLD iSCSI -- op new -- Mode target -- tid1-T iqn.2011-11.Domain:ID# Domain: computer domain name, which cannot be omitted; id, computer name
Tgtadm -- LLD iSCSI -- op new -- Mode logicalunit -- tid1-- Lun 1-B/dev/sdb1
Tgtadm -- LLD iSCSI -- op bind -- Mode target -- tid1-I all

Tgtadm -- LLD iSCSI -- op show -- Mode target

TCP/IP 3260
------------------------------------------------------------
Client: client operations
Yum install iSCSI-initiator-utils

Service iSCSI start
Service iscsid start
Chkconfig iSCSI on
Chkconfig iscsid on

Iscsiadm-M discovery-T sendtargets-P 192.168.1.100 # query the available iSCSI list
Iscsiadm-M node-T iqn.2011-11. Domain: ID-P 192.168.1.100 -- login # Login

Iscsiadm-M node-T iqn.2011-11. Domain: ID-P 192.168.1.100 -- logout # log out
Iscsiadm-M node-O Delete-T iqn.2011-11. Domain: ID # Delete

Fdisk-L # partition the iSCSI disk.
Fdisk/dev/SDB
+/Dev/sdb1

Mkfs. ext4/dev/sdb1 # format
Tune2fs-L/dev/sdb1 # view UUID or use the blkid command
Mkdir/mnt/Data

Vim/etc/fstab
UUID = bef77748-8eae-4c7c-a671-5b8a9f0fe748/mnt/Data ext4_ Netdev0 0 # mount with UUID. Note the parameters.

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.