TGT + RBD + multiph
I. Ceph installation Create RBD image, you can specify a format of 1 if you do not need to use some of the RBD features
root@node1:~# RBD Create--size 10240 testrbd/foo1--image-format 1
View RBD Image Information
root@node1:~# RBD Info testrbd/foo1
RBD image ' Foo1 ':
Size 10240 MB in 2560 objects
Order (4096 KB objects)
block_name_prefix:rb.0.191657.2ae8944a
Format:1
two. TGT installation, server-side installation support RBD tgt,ubuntu16.04 installation method
root@node0:/etc/tgt# Apt-get Install TGT-RBD
See if your TGT supports RBD
root@node0:/etc/tgt# tgtadm--lld iSCSI--mode system--op Show
Configure the TGT service separately on both host hosts and add configuration files
three. CentOS Multi-path configuration, client installation multipath, Centos6.4 installation method
Configure multipath.conf
Start the MULTIPATHD service
[Root@localhost ~]#/ETC/INIT.D/MULTIPATHD Restar
Configuration file explanation If you want to generate a mpath device, you need to turn on User_friendly_names Blcaklist on behalf of the blacklist, the disk in the blacklist will not be added to the multipath, such as the system disk
four. Client login and implementation of Multipath Iscisadm Login
[Root@localhost ~]# iscsiadm-m node-t iqn.2016-12.js-wx-smy:multipath.test--login
Lsblk found two more block devices, SDB,SDC
Scan Disk
[Root@localhost ~]# Multipath-v2
View Mulitpath Topologies
LSBLK view, you can see SDB,SDC merged into the/DEV/MAPPER/MPATHB