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

相關文章
相關標籤/搜索