在安裝rac的gi過程中出現了如下問題:
隨即查看日誌:
[grid@Rac-one trace]$ tail -50 /u01/app/oraInventory/logs/installActions2014-02-10_06-52-22PM.log
INFO: Configuration log directory - /u01/app/11.2.0/grid/cfgtoollogs
INFO: Exiting ConfigClient.init method
INFO: Calling event ConfigSessionInitialized
INFO: ConfigClient.registerOutErrStream method called
INFO: Updating Transient Parameters in the Aggregates
INFO: Updating Transient Parameters for oracle.crs
INFO: Updating Transient Parameters for oracle.assistants.netca.client
INFO: Updating Transient Parameters for OuiConfigVariables
INFO: Updating Transient Parameters for oracle.assistants.asm
INFO: Setting value to transient variable S_ASMMONITORPASSWORD
INFO: Setting value to transient variable S_ASMPASSWORD
INFO: Setting value to transient variable s_asmcaArgs
INFO: Setting value to transient variable s_ASMPasswordFlag
INFO: Setting value to transient variable s_ASMMonitorPasswordFlag
INFO: Successfully updated Transient Parameters in the Aggregates
INFO: Entering ConfigClient.getToolsList method
INFO: Selecting job named 'Automatic Storage Management Configuration Assistant' for retry
INFO: Selecting job named 'Oracle Cluster Verification Utility' for retry
INFO: Configuration log directory - /u01/app/11.2.0/grid/cfgtoollogs
INFO:
The Runconfig command constructed is /u01/app/11.2.0/grid/oui/bin/runConfig.sh ORACLE_HOME=/u01/app/11.2.0/grid MODE=perform ACTION=configure RERUN=true $*
INFO: Since the option is to overwrite the existing /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands file, backing it up
INFO: The backed up file name is /u01/app/11.2.0/grid/cfgtoollogs/configToolAllCommands.bak.2
INFO: Entering ConfigClient.executeSelectedToolsInAggregate method
INFO: ConfigClient.executeSelectedToolsInAggregate oAggregate=oracle.crs:oracle.crs:11.2.0.4.0:common
INFO: Entering ConfigClient.assignAction method
INFO: ConfigClient.assignAction actionref=[Loracle.sysman.emCfg.common.IActionReference;@22726ef8
INFO: ConfigClient.assignAction action is of type :configuration
INFO: Exiting ConfigClient.assignAction method
INFO: ConfigClient.executeSelectedToolsInAggregate action assigned
INFO: Started Plugin named: Automatic Storage Management Configuration Assistant
INFO: Found associated job
INFO: Starting 'Automatic Storage Management Configuration Assistant'
INFO: Starting 'Automatic Storage Management Configuration Assistant'
INFO: Executing ASMCA
INFO: Command /u01/app/11.2.0/grid/bin/asmca -silent -postConfigureASM -oui_internal
INFO: ... GenericInternalPlugIn.handleProcess() entered.
INFO: ... GenericInternalPlugIn: getting configAssistantParmas.
INFO: ... GenericInternalPlugIn: checking secretArguments.
INFO: ... GenericInternalPlugIn: starting read loop.
INFO: Read: SYS_PASSWORD_PROMPT
INFO: Processing: SYS_PASSWORD_PROMPT for argument tag -sysAsmPassword
INFO: Read: ASMSNMP_PASSWORD_PROMPT
INFO: Processing: ASMSNMP_PASSWORD_PROMPT for argument tag -asmMonitorPassword
INFO: End of argument passing to stdin
INFO: Read:
INFO: Read: ORA-01034: ORACLE not available
INFO: Read:
INFO: Read:
INFO: Completed Plugin named: Automatic Storage Management Configuration Assistant
[grid@Rac-one trace]$
此時懷疑是資料庫沒有啟動,但是為什麼沒有啟動呢?
查看alertasm日誌:
Mon Feb 10 21:07:51 2014
NOTE: No asm libraries found in the system
MEMORY_TARGET defaulting to 1128267776.
* instance_number obtained from CSS = 2, checking for the existence of node 0...
* node 0 does not exist. instance_number = 2
Starting ORACLE instance (normal)
WARNING: You are trying to use the MEMORY_TARGET feature. This feature requires the /dev/shm file system to be mounted for at least 1140850688 bytes. /dev/shm is either not mounted or is mounted with available space less than this size. Please fix this so that MEMORY_TARGET can work as expected. Current available is 403681280 and used is 120020992 bytes. Ensure that the mount point is /dev/shm for this directory.
Mon Feb 10 21:15:06 2014
Process m000 died, see its trace file
[grid@Rac-one trace]$
解決辦法修改增加/dev/shm大小:
在/etc/fstab中設定大小:
# /etc/fstab
# Created by anaconda on Sun Feb 9 12:31:22 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_racone-LogVol01 / ext4 defaults 1 1
UUID=31f86587-1ab9-432d-9892-a0319c4682cb /boot ext4 defaults 1 2
/dev/mapper/vg_racone-LogVol00 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults,size=1024M 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
~
~
重新mount一下:
[root@Rac-one logs]# mount -o remount /dev/shm
[root@Rac-one logs]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/vg_racone-LogVol01
20642428 15718704 3875148 81% /
tmpfs 1048576 117208 931368 12% /dev/shm
/dev/sda1 99150 51927 42103 56% /boot
/dev/sr0 3634730 3634730 0 100% /media/OL6.4 x86_64 Disc 1 20130225
[root@Rac-one logs]#
再次重試啟動一下執行個體,重新安裝問題依舊:
這是在回頭查看一下alert日誌才注意到:第一句就是問題關鍵:
NOTE: No asm libraries found in the system
隨即配置查看環境變數進行重新設定,問題得到解決:
export PATH
export PATH
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export PATH=$ORACLE_HOME/bin:$PATH:
export ORACLE_SID=+ASM1
export PATH=$ORACLE_HOME/bin:$PATH:
export TMP=/tmp
export TMPDIR=/tmp
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/ctx/lib
export LD_LIBRARY_PATH
stty erase ^H
umask 022
最終順利完成安裝: