升級內核要求>=4.4.8node
備註:解決 target__core__user.h 頭文件缺失問題 python
cp target__core__user.h /usr/include/linux/
linux
yum install ceph-devel -y
git
yum install cmake3 make gcc libnl3-devel glib2-devel kmod-devel zlib-devel -y
github
git clone [https://github.com/kitwestneat/tcmu-runner.git](https://github.com/kitwestneat/tcmu-runner.git)
code
2.2 編譯安裝get
cmake -DCMAKE_INSTALL_PREFIX=/usr -Dwith-glfs=false -Dwith-qcow=false -D SUPPORT_SYSTEMD=true .
源碼
make
it
make install
io
2.3 啓動tcmu-runner
systemctl start tcmu-runner
3.targetcli安裝
https://github.com/open-iscsi/targetcli-fb.git (v2.1-fb44)
https://github.com/open-iscsi/rtslib-fb.git (v2.1-fb61)
3.2 安裝
python setup.py install
targetcli ls
若是backstore出現user:rbd,則安裝OK 此時能夠查看help指令完成rbd-lun的建立。
權限 set attribute authentication=0 demo_mode_write_protect=0 generate_node_acls=1 cache_dynamic_acls=1