linux编译安装fio(支持rbd引擎)
安装编译过程:
# rpm -qa|egrep 'gcc|wget|librbd'
# yum install gcc wget librbd1-devel
# wget http://brick.kernel.dk/snaps/fio-3.14.tar.gz ./
# tar -zxvf fio-3.14.tar.gz
# cd fio-3.14
# ./configure
.......
Rados engine yes
Rados Block Device engine yes
rbd_poll yes
rbd_invalidate_cache yes
.......
# make && make install
# which fio
/usr/local/bin/fio
# fio --enghelp
........
rados
rbd
........
如果最小化安装需要安装gcc:
Installing:
gcc
Installing for dependencies:
cpp
glibc-devel
glibc-headers
kernel-headers
libmpc
mpfr
Updating for dependencies:
glibc
glibc-common
libgcc
libgomp
下载fio工具:
git clone git://git.kernel.dk/fio.git
或者:
# wget http://brick.kernel.dk/snaps/fio-3.14.tar.gz
如果需要使用到ceph的rbd引擎,则需要安装相应的引擎 rpm包
在Jewel版本以及之前需要安装ceph-devel,如果没有添加ceph_jewel yum源,rpm包可以在http://download.ceph.com/rpm-jewel/el7/x86_64/找到
在Jewel版本之后版本则安装librbd-devel(librbd1-devel/librbd2-devel),默认base源里面有(安装前先确认一下是否存在rpm -qa|grep librbd)
Installing:
librbd1-devel
Installing for dependencies:
boost-iostreams
boost-random
boost-system
boost-thread
librados2
librados2-devel
librbd1