tcmu+librbd ISCSI

tcmu+librbd环境搭建

1.环境

升级内核要求>=4.4.8node

备注:解决 target__core__user.h 头文件缺失问题 python

cp target__core__user.h /usr/include/linux/linux

2.安装依赖

2.1 ceph相关

yum install ceph-devel -ygit

2.1 其余依赖

yum install cmake3 make gcc libnl3-devel glib2-devel kmod-devel  zlib-devel -ygithub

2.TCMU-runner编译安装

2.1 获取源码

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 .源码

makeit

make installio

2.3 启动tcmu-runner

systemctl start tcmu-runner

3.targetcli安装

3.1下载地址

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

3.3 运行

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

相关文章
相关标签/搜索