[TOC]
部署
环境
操作系统:Centos8-2.2004
1 | [root@node1 userspace-rcu-0.14.0]# uname -a |
前置准备:部署ceph集群
1 | [root@node1 userspace-rcu-0.14.0]# ceph -v |
安装依赖
1 | 编译依赖 |
userspace-rcu需要编译安装
1
2
3
4
5
6进入源码目录
./bootstrap # skip if using tarball
./configure
make
make install
ldconfigdoxygen需要编译安装
1
2
3
4
5
6tar -zxvf doxygen-Release_1_9_7.tar.gz
cd doxygen-Release_1_9_7
mkdir build && cd build
cmake -G "Unix Makefiles" ..
make
make install
下载源码
将ntirpc解压后,放入 /path/to/nfs-ganesha-x.x/src/libntirpc
1 | [root@node1 ganesha]# cp -r ntirpc-5.0/* nfs-ganesha-5.7/src/libntirpc/ |
若不指定NSL路径,则会报错
1
2
3
4 CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
NSL_LIBRARY (ADVANCED)
linked by target "ntirpc" in directory /root/ganesha/nfs-ganesha-5.7/src/libntirpc/src
1
2
3
4
5
6
7 /root/ganesha/nfs-ganesha-
5.7/src/libntirpc/src/work_pool.c:301:3: note: ‘assert’ is defined in header ‘<assert.h>’; did you forget to ‘#include <assert.h>’?
/root/ganesha/nfs-ganesha-5.7/src/libntirpc/src/work_pool.c:59:1:
+#include <assert.h>
/root/ganesha/nfs-ganesha-5.7/src/libntirpc/src/work_pool.c:301:3:
assert(!wpt->wakeup);在相应位置添加
#include <assert.h>