遇到了磁盘写的问题,服务器一直超时,找不到问题,怀疑是网络问题,和磁盘问题,通过排除法,确定是某一台机器有问题,下面开始分析是磁盘问题,还是网卡问题,网卡采用iperf去做测试,本例只讲磁盘的检测:
采用工具是fio测试磁盘的读写性能,本例只以顺序写为例测试。
先安装fio
$ apt-get install fio
#出现 [Y/n] 时输入y即可,安装信息如下所示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
formencode-i18n libbabeltrace-ctf1 libbabeltrace1 libcephfs2 libcurl3 libgoogle-perftools4 libjs-jquery libjs-sphinxdoc libjs-underscore libleveldb1v5 libpython2.7
libradosstriper1 librgw2 libsnappy1v5 libtcmalloc-minimal4 libunwind8 python-cephfs python-cffi-backend python-cherrypy3 python-cryptography python-dnspython python-enum34
python-flask python-formencode python-idna python-ipaddress python-itsdangerous python-jinja2 python-logutils python-mako python-markupsafe python-openssl python-paste
python-pastedeploy python-pastedeploy-tpl python-pecan python-prettytable python-pyasn1 python-rados python-rbd python-repoze.lru python-requests python-rgw python-routes
python-simplegeneric python-singledispatch python-tempita python-urllib3 python-waitress python-webob python-webtest python-werkzeug
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:<