报错:/usr/sbin/smartctl not found.error:error: install: %pre scriptlet failed (2), skipping cvuqdisk


[root@oracle-rac02 logs]# sh /u01/app/oraInventory/orainstRoot.sh

shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Creating the Oracle inventory pointer file (/etc/oraInst.loc)
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@oracle-rac02 logs]# echo $?
0
[root@oracle-rac02 logs]# sh /u01/app/11.2.0/grid/root
root.sh root.sh.old rootupgrade.sh
[root@oracle-rac02 logs]# sh /u01/app/11.2.0/grid/root.sh
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
shell-init: error retrieving current directory: getcwd: cannot access parent directories: 没有那个文件或目录
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
User ignored Prerequisites during installation
Installing Trace File Analyzer
OLR initialization - successful
Adding Clusterware entries to upstart
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node oracle-rac01, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Preparing packages for installation...
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

Configure Oracle Grid Infrastructure for a Cluster ... succeeded


解决:

[root@oracle-rac02 u01]# yum install smartmontools
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* epel: mirror01.idc.hinet.net
* extras: mirrors.cn99.com
* rpmfusion-free-updates: ftp.sjtu.edu.cn
* rpmfusion-nonfree-updates: mirror.lzu.edu.cn
* updates: mirrors.aliyun.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package smartmontools.x86_64 1:5.43-3.el6 will be installed
--> Processing Dependency: mailx for package: 1:smartmontools-5.43-3.el6.x86_64
--> Running transaction check
---> Package mailx.x86_64 0:12.4-8.el6_6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved


Package Arch Version Repository Size

Installing:
smartmontools x86_64 1:5.43-3.el6 base 512 k
Installing for dependencies:
mailx x86_64 12.4-8.el6_6 base 235 k

Transaction Summary

Install 2 Package(s)

Total download size: 747 k
Installed size: 2.0 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): mailx-12.4-8.el6_6.x86_64.rpm | 235 kB 00:00
(2/2): smartmontools-5.43-3.el6.x86_64.rpm | 512 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 379 kB/s | 747 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mailx-12.4-8.el6_6.x86_64 1/2
Installing : 1:smartmontools-5.43-3.el6.x86_64 2/2
Verifying : 1:smartmontools-5.43-3.el6.x86_64 1/2
Verifying : mailx-12.4-8.el6_6.x86_64 2/2

Installed:
smartmontools.x86_64 1:5.43-3.el6

Dependency Installed:
mailx.x86_64 0:12.4-8.el6_6

Complete!
[root@oracle-rac02 u01]# rpm -ivh cvuqdisk-1.0.9-1.rpm
Preparing... ########################################### [100%]
1:cvuqdisk ########################################### [100%]

你可能感兴趣的:(报错:/usr/sbin/smartctl not found.error:error: install: %pre scriptlet failed (2), skipping cvuqdisk)