执行exadata cell单元报错:
[root@cell cellbits]# rpm -ivh cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64.rpm
Preparing... ########################################### [100%]
Pre Installation steps in progress ...
error: %pre(cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping cell-11.2.3.2.0_LINUX.X64_120713-1
解决方法,可以通过 -v 增加调试功能解决:
[root@cell cellbits]# rpm -ivh cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64.rpm -v
D: ============== cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64.rpm
D: Expected size: 207051389 = lead(96)+sigs(180)+pad(4)+data(207051109)
D: Actual size: 207051389
D: cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64.rpm: Header SHA1 digest: OK (11922bcde5339b8b8d07d66797deea141bffe969)
D: added binary package [0]
D: found 0 source and 1 binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages rdonly mode=0x0
D: locked db index /var/lib/rpm/Packages
D: ========== +++ cell-11.2.3.2.0_LINUX.X64_120713-1 x86_64/linux 0x2
D: opening db index /var/lib/rpm/Depends create mode=0x0
D: opening db index /var/lib/rpm/Basenames rdonly mode=0x0
D: opening db index /var/lib/rpm/Pubkeys rdonly mode=0x0
D: read h# 42 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: /bin/bash YES (db files)
D: read h# 42 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: /bin/sh YES (db files)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: Requires: /bin/sh YES (cached)
D: read h# 518 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: /usr/bin/env YES (db files)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: /usr/bin/perl YES (db files)
D: opening db index /var/lib/rpm/Providename rdonly mode=0x0
D: read h# 94 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: dmidecode YES (db provides)
D: read h# 1273 Header sanity check: OK
D: Requires: jdk >= 1.5.0_12 YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: ld-linux-x86-64.so.2()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) YES (db provides)
D: read h# 164 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libaio.so.1()(64bit) YES (db provides)
D: read h# 164 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libaio.so.1(LIBAIO_0.1)(64bit) YES (db provides)
D: read h# 164 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libaio.so.1(LIBAIO_0.4)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libc.so.6()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libc.so.6(GLIBC_2.2.5)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libc.so.6(GLIBC_2.3)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libc.so.6(GLIBC_2.3.2)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libc.so.6(GLIBC_2.3.3)(64bit) YES (db provides)
D: Requires: libcell11.so()(64bit) YES (added provide)
D: Requires: libclntsh.so.11.1()(64bit) YES (added provide)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libdl.so.2()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libdl.so.2(GLIBC_2.2.5)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libdl.so.2(GLIBC_2.3.3)(64bit) YES (db provides)
D: read h# 1 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libgcc_s.so.1()(64bit) YES (db provides)
D: read h# 1 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libgcc_s.so.1(GCC_3.0)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libm.so.6()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libm.so.6(GLIBC_2.2.5)(64bit) YES (db provides)
D: Requires: libnnz11.so()(64bit) YES (added provide)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libnsl.so.1()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libnsl.so.1(GLIBC_2.2.5)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libpthread.so.0()(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libpthread.so.0(GLIBC_2.2.5)(64bit) YES (db provides)
D: read h# 17 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libpthread.so.0(GLIBC_2.3.2)(64bit) YES (db provides)
D: Requires: libskgxp11.so()(64bit) YES (added provide)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libstdc++.so.6()(64bit) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libstdc++.so.6(CXXABI_1.3)(64bit) YES (db provides)
D: read h# 27 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libstdc++.so.6(GLIBCXX_3.4)(64bit) YES (db provides)
D: read h# 516 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: libuuid.so.1()(64bit) YES (db provides)
D: read h# 712 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: net-snmp YES (db provides)
D: read h# 797 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: net-snmp-utils YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(English) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Env) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(File::Copy) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(File::stat) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Getopt::Long) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Getopt::Std) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(IO::File) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(List::Util) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Socket) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Time::HiRes) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(Time::localtime) YES (db provides)
D: Requires: perl(common_subs) YES (added provide)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(lib) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(strict) YES (db provides)
D: read h# 68 Header V3 DSA signature: NOKEY, key ID 1e5e0159
D: Requires: perl(warnings) YES (db provides)
D: Requires: rpmlib(CompressedFileNames) <= 3.0.4-1 YES (rpmlib provides)
D: Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 YES (rpmlib provides)
D: opening db index /var/lib/rpm/Conflictname rdonly mode=0x0
D: closed db index /var/lib/rpm/Pubkeys
D: closed db index /var/lib/rpm/Depends
D: closed db index /var/lib/rpm/Conflictname
D: closed db index /var/lib/rpm/Providename
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: ========== recording tsort relations
D: Requires: libcell11.so()(64bit) YES (added provide)
D: Requires: libclntsh.so.11.1()(64bit) YES (added provide)
D: Requires: libnnz11.so()(64bit) YES (added provide)
D: Requires: libskgxp11.so()(64bit) YES (added provide)
D: Requires: perl(common_subs) YES (added provide)
D: ========== tsorting packages (order, #predecessors, #succesors, tree, depth, breadth)
D: 0 0 0 0 1 0 +cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64
D: installing binary packages
D: opening db environment /var/lib/rpm/Packages joinenv
D: opening db index /var/lib/rpm/Packages create mode=0x42
D: mounted filesystems:
D: i dev bsize bavail iavail mount point
D: 0 0x0000fd00 4096 19885817 23473335 /
D: 1 0x00000003 4096 0 -1 /proc
D: 2 0x00000000 4096 0 -1 /sys
D: 3 0x0000000c 4096 0 -1 /dev/pts
D: 4 0x00000801 1024 72334 26065 /boot
D: 5 0x00000014 4096 1021275 1021274 /dev/shm
D: 6 0x00000015 4096 0 -1 /proc/sys/fs/binfmt_misc
D: 7 0x00000016 4096 0 -1 /var/lib/nfs/rpc_pipefs
D: sanity checking 1 elements
D: opening db index /var/lib/rpm/Name create mode=0x42
D: running pre-transaction scripts
D: computing 2105 file fingerprints
Preparing... D: computing file dispositions
D: opening db index /var/lib/rpm/Basenames create mode=0x42
########################################### [100%]
D: ========== +++ cell-11.2.3.2.0_LINUX.X64_120713-1 x86_64-linux 0x2
D: Expected size: 207051389 = lead(96)+sigs(180)+pad(4)+data(207051109)
D: Actual size: 207051389
D: cell-11.2.3.2.0_LINUX.X64_120713-1: Header SHA1 digest: OK (11922bcde5339b8b8d07d66797deea141bffe969)
D: install: cell-11.2.3.2.0_LINUX.X64_120713-1 has 2105 files, test = 0
D: opening db index /var/lib/rpm/Triggername create mode=0x42
D: install: %pre(cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64) asynchronous scriptlet start
D: install: %pre(cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64) execv(/bin/sh) pid 4906
+ '[' x86_64 == x86_64 ']'
++ rpm -q jdk
+ jdk_version=jdk-1.5.0_15-fcs
+ '[' jdk-1.5.0_15-fcs '!=' jdk-1.5.0_15-fcs ']'
+ v_new=11.2.3.2.0_LINUX.X64_120713
++ rpm -q --qf '%{VERSION}' cell
+ v_old='package cell is not installed'
++ echo package cell is not installed
++ awk -F _ '{print $1}'
+ v_old_numonly='package cell is not installed'
+ old_install_base='/opt/oracle/cellpackage cell is not installed'
+ echo 'Pre Installation steps in progress ...'
Pre Installation steps in progress ...
++ hostname
+ hostname=cell
+ ping -c1 cell
+ '[' 0 '!=' 0 ']'
+ '[' -d /opt/oracle/cell11.2.3.2.0_LINUX.X64_120713 ']'
+ /bin/rm -rf /opt/oracle/cell11.2.3.2.0_LINUX.X64_120713
+ sleep 1
+ mkdir -p /opt/oracle/cell11.2.3.2.0_LINUX.X64_120713
+ rpm -q sage
+ '[' 1 == 0 ']'
+ '[' '!' -d /var/log/oracle ']'
+ echo '/var/log/oracle does not exist or not found. Check it exists and is writable and retry.'
+ exit 1
D: install: waitpid(4906) rc 4906 status 100 secs 1.097
error: %pre(cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64) scriptlet failed, exit status 1
error: install: %pre scriptlet failed (2), skipping cell-11.2.3.2.0_LINUX.X64_120713-1
D: running post-transaction scripts
D: closed db index /var/lib/rpm/Triggername
D: closed db index /var/lib/rpm/Basenames
D: closed db index /var/lib/rpm/Name
D: closed db index /var/lib/rpm/Packages
D: closed db environment /var/lib/rpm/Packages
D: May free Score board((nil))
建立对应目录:
mkdir -p /var/log/oracle
再去安装,问题解决:
[root@cell cellbits]# rpm -ivh cell-11.2.3.2.0_LINUX.X64_120713-1.x86_64.rpm
Preparing... ########################################### [100%]
Pre Installation steps in progress ...
1:cell ########################################### [100%]
Post Installation steps in progress ...
Set cellusers group for /opt/oracle/cell11.2.3.2.0_LINUX.X64_120713/cellsrv/deploy/log directory
Set 775 permissions for /opt/oracle/cell11.2.3.2.0_LINUX.X64_120713/cellsrv/deploy/log directory
/
/
Installation SUCCESSFUL.
Starting RS and MS... as user celladmin
Done. Please Login as user celladmin and create cell to startup CELLSRV to complete cell configuration.
WARNING: Using the current shell as root to restart cell services.
Restart the cell services using a new shell.
[root@cell cellbits]#
|