TGT + RBD + multiph

Source: Internet
Author: User

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

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.