代码改变世界

ls: 无法访问/usr/sbin/smartctl: 没有那个文件或目录

2016-12-29 13:33  AlfredZhao  阅读(...)  评论(...编辑  收藏

环境:RHEL6.5 + Oracle 11.2.0.4 RAC
在安装RAC时,检查时缺少包 cvuqdisk-1.0.9-1,oracle提供脚本修复安装。
但在执行时报错:

[root@oradb23 ~]# /tmp/CVU_11.2.0.4.0_grid/runfixup.sh 
Response file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.enable
Log file location: /tmp/CVU_11.2.0.4.0_grid/orarun.log
Installing Package /tmp/CVU_11.2.0.4.0_grid//cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]
ls: 无法访问/usr/sbin/smartctl: 没有那个文件或目录
/usr/sbin/smartctl not found.
error: %pre(cvuqdisk-1.0.9-1.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping cvuqdisk-1.0.9-1

google搜索发现是因为系统缺少smartmontools这个包。
使用yum 安装

[root@oradb23 ~]# yum install smartmontools
...
Installed:
  smartmontools.x86_64 1:5.43-1.el6                                                                                                                                                                                

Dependency Installed:
  mailx.x86_64 0:12.4-7.el6                                                                                                                                                                                        

Complete!

再次尝试安装成功

[root@oradb23 ~]# /tmp/CVU_11.2.0.4.0_grid/runfixup.sh 
Response file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.response
Enable file being used is :/tmp/CVU_11.2.0.4.0_grid/fixup.enable
Log file location: /tmp/CVU_11.2.0.4.0_grid/orarun.log
Installing Package /tmp/CVU_11.2.0.4.0_grid//cvuqdisk-1.0.9-1.rpm
Preparing...                ########################################### [100%]
   1:cvuqdisk               ########################################### [100%]

最后只需要在其他节点都yum安装smartmontools这个包,然后即可运行oracle提供的脚本成功安装cvuqdisk-1.0.9-1。