rhel 5.8 安装iotop CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine

今天想监控数据库服务器io,找到iotop,从iotop官方网站下了rpm包后发现不能用,官网上提示要求python2.7,一看服务器上才2.4的版本,于是下载了python2.7.5来编译安装,然后重新安装iotop的rpm包,终于发现能用了,可每个进程具体占用io情况没显示出来,下脚提示“CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %”,查到http://blog.yufeng.info/archives/2138这里说我的这个内核应该是支持的啊,查到http://www.redhat.com/archives/epel-devel-list/2010-January/msg00015.html说python2.4+iotop-0.4可以,而且再次证实“the necessary kernel support has been backported in RHEL5”服务器内核支持,后来仔细再想,应该是包安装有问题,应该在光盘里自带了iotop的rpm包才对,一搜光盘果然找到,为iotop-0.4.3-4.el5.noarch.rpm,安装时提示需要python-ctypes ,接着在光盘里找到python-ctypes-1.0.2-3.el5.x86_64.rpm,先后安装后,iotop终于出来,真是有点小曲折,以后应要记住先找万能的光盘里的rpm包。

最后总结之--rhel 5.8 安装iotop步骤:

1、从光盘cp出iotop-0.4.3-4.el5.noarch.rpm和python-ctypes-1.0.2-3.el5.x86_64.rpm

2、rpm -i python-ctypes-1.0.2-3.el5.x86_64.rpm

3、rpm -i iotop-0.4.3-4.el5.noarch.rpm

搞定!

最后的最后附上rpm包给需要的兄弟。

猜你喜欢

转载自sjwpython.iteye.com/blog/1868177
5.8