iSCSI Client Configuration:
Yum Install Iscsi-initiator-utils
Vim/etc/iscsi/initiatorname.iscsi
Initiatorname = iqn.2014-11 ...:D esktop0
Systemctl Restart Iscsid.service
Systemctl enable ISCSID (communication with server)
Systemctl Restart iSCSI (read iSCSI files)
Systemctl Enable iSCSI
Iscsiadm-m DISCOVERY-T St (send target)-p SERVER0 can man iscsiadmin view
Yum-y Install tree
tree/var/lib/iscsi/
Systemctl Restart iSCSI
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
FDISK/DEV/SDA; N,p,+500m,w,partprobe
Mkfs.xfs/dev/sda1
Mkdir/iscsidisk; Blkid gets The UUID used to Mount
Vim/etc/fstab
UUID = "..."/iscsidisk xfs defaults, _netdev 0 0
Mount-a Check for Mount after reboot
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