tcmu+librbd ISCSI
tcmu+librbd环境搭建 1.环境 升级内核要求>=4.4.8 备注:解决 target__core__user.h 头文件缺失问题 cp target__core__user.h /usr/include/linux/ 2.安装依赖 2.1 ceph相关 yum install ceph-devel -y 2.1 其他依赖 yum install cmake3 make gcc libnl3-devel glib2-devel kmod-devel zlib-devel -y 2.TCMU-runner编译安装 2.1 获取源码 git clone [https://github.com/kitwestneat/tcmu-runner.git](https://github.com/kitwestneat/tcmu-runner.git) 2.2 编译安装 cmake -DCMAKE_INSTALL_PREFIX=/usr -Dwith-glfs=false -Dwith-qcow=false -D SUPPORT_SYSTEMD=true . make make install 2.3 启动tcmu-runner systemctl start tcmu-runner 3.targetcli安装 3.1下载地址 https://github.com/open-iscsi