11g rac multipath asmlib ASM asm_open error Operation not permitted
某生產庫,oracle linux,11.2.0.4 rac 一節點重啟之後不能正常啟動。
[root@test1 ~]# su - grid [grid@test1 ~]$ crsctl stat res -t CRS-4535: Cannot communicate with Cluster Ready Services CRS-4000: Command Status failed, or completed with errors.
正常節點如下:
[grid@test2 ~]$ crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.ARCH.dg ONLINE ONLINE test2 ora.DATA.dg ONLINE ONLINE test2 ora.LISTENER.lsnr ONLINE ONLINE test2 ora.OCR.dg ONLINE ONLINE test2 ora.asm ONLINE ONLINE test2 Started ora.gsd OFFLINE OFFLINE test2 ora.net1.network ONLINE ONLINE test2 ora.ons ONLINE ONLINE test2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE test2 ora.cvu 1 ONLINE ONLINE test2 ora.dgdb1.vip 1 ONLINE INTERMEDIATE test2 FAILED OVER ora.dgdb2.vip 1 ONLINE ONLINE test2 ora.oc4j 1 ONLINE ONLINE test2 ora.test.db 1 ONLINE OFFLINE 2 ONLINE ONLINE test2 Open ora.scan1.vip 1 ONLINE ONLINE test2
[grid@test1 grid]$ crsctl status resource -t CRS-4535: Cannot communicate with Cluster Ready Services CRS-4000: Command Status failed, or completed with errors.
檢查css服務狀態,可以看到連線失敗。
[grid@test1 grid]$ crsctl check css CRS-4530: Communications failure contacting Cluster Synchronization Services daemon
檢查cssd程式,可以看到沒有啟動
[grid@test1 grid]$ ps -ef |grep cssd root 22124 1 0 19:37 ? 00:00:00 /u01/app/11.2.0/grid/bin/cssdmonitor grid 22496 15743 0 19:40 pts/3 00:00:00 grep cssd [grid@test1 grid]$ crs_stat -p ora.cssd CRS-0184: Cannot communicate with the CRS daemon.
檢查cssd.log
[root@dgdb1 grid]# tail -f /u01/app/11.2.0/grid/log/test1/cssd/ocssd.log 2016-11-21 16:51:34.869: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:OCR1: 2016-11-21 16:51:34.869: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:OCR2: 2016-11-21 16:51:34.869: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:OCR3: 2016-11-21 16:51:34.869: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:TEST_ARCH1: 2016-11-21 16:51:34.869: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:TEST_DATA1: 2016-11-21 16:51:34.870: [ SKGFD][2561705728]Fetching asmlib disk :ORCL:TEST_DATA2: 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted ) 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted ) 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted ) 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted ) 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted ) 2016-11-21 16:51:34.870: [ SKGFD][2561705728]ERROR: -15(asmlib ASM:/opt/oracle/extapi/64/asm/orcl/1/libasm.so op asm_open error Operation not permitted
上面的錯誤資訊顯示asmlib asm出錯,沒有操作許可權,指定ASMLib在發現磁碟的時候需要忽略的盤和需要檢查的盤。在我們的環境中是使用了Multipath來對多塊磁碟做多路徑處理,因此需要包括dm開頭的磁碟,而忽略sd開頭的磁碟。這樣的問題也應該只會發生在使用了Multipath的磁碟上,修改/etc/sysconfig/oracleasm
[root@test bin]# vi /etc/sysconfig/oracleasm # # This is a configuration file for automatic loading of the Oracle # Automatic Storage Management library kernel driver. It is generated # By running /etc/init.d/oracleasm configure. Please use that method # to modify this file # # ORACLEASM_ENABLED: 'true' means to load the driver on boot. ORACLEASM_ENABLED=true # ORACLEASM_UID: Default user owning the /dev/oracleasm mount point. ORACLEASM_UID=grid # ORACLEASM_GID: Default group owning the /dev/oracleasm mount point. ORACLEASM_GID=asmadmin # ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot. ORACLEASM_SCANBOOT=true # ORACLEASM_SCANORDER: Matching patterns to order disk scanning ORACLEASM_SCANORDER="dm" --指定要掃描的磁碟匹配格式 # ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan ORACLEASM_SCANEXCLUDE="sd"--指定要排除掃描的磁碟匹配格式 # ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size # reported by the underlying disk instead of the physical. The default # is 'false' ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false
重新掛載asmlib
[root@test1 bin]# oracleasm exit Unmounting ASMlib driver filesystem: /dev/oracleasm Unloading module "oracleasm": oracleasm [root@test1 bin]# oracleasm init Loading module "oracleasm": oracleasm Configuring "oracleasm" to use device physical block size Mounting ASMlib driver filesystem: /dev/oracleasm
掃描磁碟
[root@test1 ~]# /etc/init.d/oracleasm scandisks Scanning the system for Oracle ASMLib disks: [ OK ] [root@test1 ~]# oracleasm listdisks OCR1 OCR2 OCR3 TEST_ARCH1 TEST_DATA1 TEST_DATA2
停止crs
root@test bin]# ./crsctl stop crs -f CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'dgdb1' CRS-2673: Attempting to stop 'ora.mdnsd' on 'dgdb1' CRS-2673: Attempting to stop 'ora.crf' on 'dgdb1' CRS-2677: Stop of 'ora.mdnsd' on 'dgdb1' succeeded CRS-2677: Stop of 'ora.crf' on 'dgdb1' succeeded CRS-2673: Attempting to stop 'ora.gipcd' on 'dgdb1' CRS-2677: Stop of 'ora.gipcd' on 'dgdb1' succeeded CRS-2673: Attempting to stop 'ora.gpnpd' on 'dgdb1' CRS-2677: Stop of 'ora.gpnpd' on 'dgdb1' succeeded CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'dgdb1' has completed CRS-4133: Oracle High Availability Services has been stopped.
啟動crs
[root@test1 bin]# ./crsctl start crs CRS-4123: Oracle High Availability Services has been started.
[grid@test1 ~]$ crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.ARCH.dg ONLINE ONLINE test1 ONLINE ONLINE test2 ora.DATA.dg ONLINE ONLINE test1 ONLINE ONLINE test2 ora.LISTENER.lsnr ONLINE ONLINE test1 ONLINE ONLINE test2 ora.OCR.dg ONLINE ONLINE test1 ONLINE ONLINE test2 ora.asm ONLINE ONLINE test1 Started ONLINE ONLINE test2 Started ora.gsd OFFLINE OFFLINE test1 OFFLINE OFFLINE test2 ora.net1.network ONLINE ONLINE test1 ONLINE ONLINE test2 ora.ons ONLINE ONLINE test1 ONLINE ONLINE test2 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE test2 ora.cvu 1 ONLINE ONLINE test2 ora.test1.vip 1 ONLINE ONLINE test1 ora.test2.vip 1 ONLINE ONLINE test2 ora.oc4j 1 ONLINE ONLINE test2 ora.test.db 1 ONLINE ONLINE test1 Open 2 ONLINE ONLINE test2 Open ora.scan1.vip 1 ONLINE ONLINE test2
到此該節點所有服務正常啟動
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26015009/viewspace-2128822/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-15186: ASMLIB error function = [asm_open], error = [1]ASMErrorFunction
- NFS mount results in "vmount: operation not permitted" errorNFSMITError
- macOS: sudo : Operation not permittedMacMIT
- yarn install 遇到的錯誤訊息 - Error EPERM operation not permitted, open .yarnrcYarnErrorMIT
- 【ASM】ASMLIB 系列ASM
- Failed to get D-Bus connection: Operation not permittedAIMIT
- chown: /usr/local: Operation not permitted問題解決MIT
- Mac 配置Maven遇到的zsh:operation not permitted:mvnMacMavenMIT
- ulimit: core file size: cannot modify limit: Operation not permittedMIT
- cygwin 多使用者 /bin/bash: Operation not permittedMIT
- -bash: ulimit: open files: cannot modify limit: Operation not permittedMIT
- Linux的multipath for ASMLinuxASM
- 安裝pods提示Operation not permitted usr bin xcodeprojMITXCode
- windows下安裝kibana出 "EPERM: operation not permittedWindowsMIT
- bundler安裝失敗,Operation not permitted - /usr/bin/***MIT
- docker安裝matlab mount failed: Operation not permitted.DockerMatlabAIMIT
- 11g rac standby asm---04ASM
- 使用npm install報錯-4048 operation not permitted解決NPMMIT
- ASM file metadata operationASM
- Using ASMLIB Management ASM DiskASM
- ASM using ASMLib and Raw DevicesASMdev
- RAC 11G ASM磁碟損壞恢復ASM
- RAC 11G ASM下修改spfile檔案ASM
- oracle asm Unable to mount ASMlib driver filesystemOracleASM
- root使用者操作檔案提示 changing permissions of '***': Operation not permittedMIT
- ionic3 ,win7下 npm install 報operation not permittedWin7NPMMIT
- 在Docker內部使用gdb偵錯程式報錯-Operation not permittedDockerMIT
- Oracle RAC asmlib包下載地址OracleASM
- tidb Error: Operation aborted by user answer '' (cliutil.operation_aborted)TiDBError
- [20210222]gdb ptrace Operation not permitted.txtMIT
- linux配置multipath 並安裝racLinux
- dbca建立oracle 11g rac發現不了asm磁碟OracleASM
- maridb Error 'Operation DROP USER failed forErrorAI
- 【ASM】ORA-15283: ASM operation requires compatible...ASMUI
- 使用OpenFiler來模擬儲存配置RAC中ASM共享盤及多路徑(multipath)的測試ASM
- -bash: ulimit: max user processes: cannot modify limit: Operation not permitted問題的處理MIT
- 【BUILD_ORACLE】使用ASMLib包搭建ASM磁碟UIOracleASM
- ASM學習筆記_配置ASMLIB磁碟組ASM筆記