基于 CentOS 7 x86_64 安装spdk环境, 需要支持rbd和rdma
环境 : gcc-4.8.5
- 下载源码文件(网络不稳定, git中途失败请重复多次运行)
1 | #git clone https://github.com/spdk/spdk |
- 安装必需环境
1 | sudo scripts/pkgdep.sh --all |
- 构建
1 | ./configure --with-rbd --with-rdma --with-ocf |
启动vhost target
1 | #HUGEMEM=4096 scripts/setup.sh |
troubleshooting
- 已经安装librbd,spdk却不识别librbd
1 | ./configure --with-rbd --with-rdma |
安装 librbd1-devel