RHCE7.0 answer to the iSCSI client

Source: Internet
Author: User

iSCSI Client Configuration:

  1. Yum Install Iscsi-initiator-utils

  2. Vim/etc/iscsi/initiatorname.iscsi

    Initiatorname = iqn.2014-11 ...:D esktop0

  3. Systemctl Restart Iscsid.service

    Systemctl enable ISCSID (communication with server)

    Systemctl Restart iSCSI (read iSCSI files)

    Systemctl Enable iSCSI

  4. Iscsiadm-m DISCOVERY-T St (send target)-p SERVER0 can man iscsiadmin view

  5. Yum-y Install tree

    tree/var/lib/iscsi/

  6. Systemctl Restart iSCSI

  7. Fdisk-l can see the/DEV/SDA disk, as long as the iSCSI open and/VAR/LIB/ISCSI content is still in, then the boot will have iSCSI disk

  8. FDISK/DEV/SDA; N,p,+500m,w,partprobe

    Mkfs.xfs/dev/sda1

    Mkdir/iscsidisk; Blkid gets The UUID used to Mount

  9. Vim/etc/fstab

    UUID = "..."/iscsidisk xfs defaults, _netdev 0 0

  10. Mount-a Check for Mount after reboot

  11. You can use it when you make an error: rm-rf/var/lib/iscsi/* and redo it again.

RHCE7.0 answer to the iSCSI client

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.