How does tcmu+librbd export iscsi volumes
This article will explain in detail how to export iscsi volumes from tcmu+librbd. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
Build tcmu+librbd environment 1. Environment
Upgrade kernel requirements > = 4.4.8
Note: resolve the missing target_core_user.h header file
Cp target_core_user.h / usr/include/linux/
two。 Installation depends on 2.1 ceph related
Yum install ceph-devel-y
2.1 other dependencies
Yum install cmake3 make gcc libnl3-devel glib2-devel kmod-devel zlib-devel-y
2.TCMU-runner compile and install 2.1to get the source code
Git clone https://github.com/kitwestneat/tcmu-runner.git
2.2 compilation and installation
Cmake-DCMAKEINSTALLPREFIX=/usr-Dwith-glfs=false-Dwith-qcow=false-D SUPPORT_SYSTEMD=true.
Make
Make install
2.3 start tcmu-runner
Systemctl start tcmu-runner
3.targetcli installation
3.1 download address
Https://github.com/open-iscsi/targetcli-fb.git (v2.1-fb44)
Https://github.com/open-iscsi/rtslib-fb.git (v2.1-fb61)
3.2 installation
Python setup.py install
3.3 run
Targetcli ls if user:rbd appears in backstore, install OK at this time to view the help directive to complete the creation of rbd-lun.
On how to export tcmu+librbd iscsi volume to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.