2021-05-12 14:32:11
ls: 無法存取/usr/sbin/smartctl: 沒有那個檔案或目錄
2020-06-16 17:24:20
環境: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。
本文永久更新連結地址:http://www.linuxidc.com/Linux/2017-01/139141.htm
相關文章