10g rac資料庫節點2 dgdata磁碟組裝載不成功問題處理詳細步驟
1:問題描述
兩節點Oracle 10g RAC資料庫,節點2上的asm dgdata磁碟組mount不成功,但節點1正常。
問題現象:在節點2上檢查磁碟組狀態為dismount和對磁碟組dgdata mount,報ORA-15040相關錯誤:
SQL> select name,state from v$asm_diskgroup;
NAME STATE
DGDATA DISMOUNTED
DGRECOVER MOUNTED
DGSYSTEM MOUNTED
SQL> alter diskgroup dgdata mount;
alter diskgroup dgdata mount*
ERROR at line 1:
ORA-15032: not all alterations performed
ORA-15040: diskgroup is incomplete
ORA-15042: ASM disk "46" is missing
ORA-15042: ASM disk "45" is missing
ORA-15042: ASM disk "44" is missing
ORA-15042: ASM disk "43" is missing
ORA-15042: ASM disk "42" is missing
ORA-15042: ASM disk "41" is missing
ORA-15042: ASM disk "40" is missing
ORA-15042: ASM disk "39" is missing
ORA-15042: ASM disk "38" is missing
ORA-15042: ASM disk "37" is missing
ORA-15042: ASM disk "36" is missing
ORA-15042: ASM disk "35" is missing
ORA-15042: ASM disk "34" is missing
ORA-15042: ASM disk "33" is missing
ORA-15042: ASM disk "32" is missing
ORA-15042: ASM disk "31" is missing
ORA-15042: ASM disk "30" is missing
ORA-15042: ASM disk "29" is missing
ORA-15042: ASM disk "28" is missing
ORA-15042: ASM disk "27" is missing
ORA-15042: ASM disk "26" is missing
2 處理過程
2.1 檢查dgdata磁碟組有哪些磁碟
檢查節點2 dgdata磁碟組能正常mount包括哪些磁碟
select name,path from v$asm_disk where name like 'DGDATA%' ;
DGDATA_0022 /dev/rhdisk36
DGDATA_0033 /dev/rhdisk47
DGDATA_0000 /dev/rhdisk10
DGDATA_0012 /dev/rhdisk13
DGDATA_0011 /dev/rhdisk17
DGDATA_0013 /dev/rhdisk14
DGDATA_0010 /dev/rhdisk16
DGDATA_0014 /dev/rhdisk18
DGDATA_0002 /dev/rhdisk23
DGDATA_0001 /dev/rhdisk22
DGDATA_0003 /dev/rhdisk24
DGDATA_0004 /dev/rhdisk25
DGDATA_0005 /dev/rhdisk26
DGDATA_0019 /dev/rhdisk33
DGDATA_0015 /dev/rhdisk28
DGDATA_0020 /dev/rhdisk34
DGDATA_0016 /dev/rhdisk29
DGDATA_0006 /dev/rhdisk30
DGDATA_0017 /dev/rhdisk31
DGDATA_0018 /dev/rhdisk32
DGDATA_0030 /dev/rhdisk44
DGDATA_0023 /dev/rhdisk37
DGDATA_0027 /dev/rhdisk41
DGDATA_0032 /dev/rhdisk46
DGDATA_0034 /dev/rhdisk48
DGDATA_0024 /dev/rhdisk38
DGDATA_0026 /dev/rhdisk40
DGDATA_0029 /dev/rhdisk43
DGDATA_0021 /dev/rhdisk35
DGDATA_0025 /dev/rhdisk39
DGDATA_0031 /dev/rhdisk45
DGDATA_0028 /dev/rhdisk42
DGDATA_0007 /dev/rhdisk7
DGDATA_0008 /dev/rhdisk8
DGDATA_0009 /dev/rhdisk9
DGDATA_0035 /dev/rhdisk49
DGDATA_0036 /dev/rhdisk50
DGDATA_0037 /dev/rhdisk51
DGDATA_0040 /dev/rhdisk54
DGDATA_0038 /dev/rhdisk52
DGDATA_0041 /dev/rhdisk55
DGDATA_0039 /dev/rhdisk53
DGDATA_0042 /dev/rhdisk56
DGDATA_0043 /dev/rhdisk57
DGDATA_0044 /dev/rhdisk58
DGDATA_0045 /dev/rhdisk59
DGDATA_0046 /dev/rhdisk60
DGDATA_0053 /dev/rhdisk79
DGDATA_0054 /dev/rhdisk80
DGDATA_0049 /dev/rhdisk75
DGDATA_0052 /dev/rhdisk78
DGDATA_0048 /dev/rhdisk74
DGDATA_0050 /dev/rhdisk76
DGDATA_0055 /dev/rhdisk81
DGDATA_0056 /dev/rhdisk82
DGDATA_0047 /dev/rhdisk73
DGDATA_0057 /dev/rhdisk83
DGDATA_0051 /dev/rhdisk77
58 rows select
2.2 檢查節點2所屬dgdata磁碟組磁碟屬性和許可權
ls -l /dev/rhdisk*
lsattr –El hdisk77
lsattr –El hdisk83
…………
然後和節點1節點相比較,屬性和許可權都正確,排除屬性和許可權的問題。
2.3 與使用者溝通
透過上面檢查,在還沒有確定問題原因和嘗試解決方案時,從使用者處瞭解到以下3點資訊:
1. 兩個節點主機都需要升級微碼,節點2平時是處於關閉狀態的,為了不影響應用,需要先在節點2上升級微碼完後,啟動crs和資料庫,接管應用,再關閉節點1上的資料庫和crs進行升級微碼操作,
2. 節點1上dgdata磁碟組能正常mount和dismount。
3. 節點2上dgdata磁碟組不能正常mount。
透過以上3點資訊,我可以判定dgdata磁碟組裡面的磁碟是沒有損壞的,而節點2由於一直處於關機狀態導致dgdata磁碟組資訊沒有同步,於是和使用者商量建議把節點2 dgdata磁碟組裡面的磁碟全部從主機上刪除,再重新掃描,修改磁碟屬性和賦予相關許可權,而且這樣做不存在任何風險。
以下為具體操作過程:
備註:千萬不能做chdev -l hdiskn -a pv=yes 操作,會導致磁碟頭資訊丟失,從而引起資料丟失。
2.4 節點2主機上刪除dgdata磁碟組裡面的磁碟
[root@dbzykf1:/oracle/20100410]#more rmdev.sh
rmdev -dl hdisk10
rmdev -dl hdisk13
rmdev -dl hdisk14
rmdev -dl hdisk16
rmdev -dl hdisk17
rmdev -dl hdisk18
rmdev -dl hdisk22
rmdev -dl hdisk23
rmdev -dl hdisk24
rmdev -dl hdisk25
rmdev -dl hdisk26
rmdev -dl hdisk28
rmdev -dl hdisk29
rmdev -dl hdisk30
rmdev -dl hdisk31
rmdev -dl hdisk32
rmdev -dl hdisk33
rmdev -dl hdisk34
rmdev -dl hdisk35
rmdev -dl hdisk36
rmdev -dl hdisk37
rmdev -dl hdisk38
rmdev -dl hdisk39
rmdev -dl hdisk40
rmdev -dl hdisk41
rmdev -dl hdisk42
rmdev -dl hdisk43
rmdev -dl hdisk44
rmdev -dl hdisk45
rmdev -dl hdisk46
rmdev -dl hdisk47
rmdev -dl hdisk48
rmdev -dl hdisk49
rmdev -dl hdisk50
rmdev -dl hdisk51
rmdev -dl hdisk52
rmdev -dl hdisk53
rmdev -dl hdisk54
rmdev -dl hdisk55
rmdev -dl hdisk56
rmdev -dl hdisk57
rmdev -dl hdisk58
rmdev -dl hdisk59
rmdev -dl hdisk60
rmdev -dl hdisk7
rmdev -dl hdisk73
rmdev -dl hdisk74
rmdev -dl hdisk75
rmdev -dl hdisk76
rmdev -dl hdisk77
rmdev -dl hdisk78
rmdev -dl hdisk79
rmdev -dl hdisk8
rmdev -dl hdisk80
rmdev -dl hdisk81
rmdev -dl hdisk82
rmdev -dl hdisk83
rmdev -dl hdisk9
2.5 重新掃描磁碟
cfgmgr -v
2.6 修改磁碟屬性
chdev -l hdisk10 -a reserve_policy=no_reserve
chdev -l hdisk13 -a reserve_policy=no_reserve
chdev -l hdisk14 -a reserve_policy=no_reserve
chdev -l hdisk16 -a reserve_policy=no_reserve
chdev -l hdisk17 -a reserve_policy=no_reserve
chdev -l hdisk18 -a reserve_policy=no_reserve
chdev -l hdisk22 -a reserve_policy=no_reserve
chdev -l hdisk23 -a reserve_policy=no_reserve
chdev -l hdisk24 -a reserve_policy=no_reserve
chdev -l hdisk25 -a reserve_policy=no_reserve
chdev -l hdisk26 -a reserve_policy=no_reserve
chdev -l hdisk28 -a reserve_policy=no_reserve
chdev -l hdisk29 -a reserve_policy=no_reserve
chdev -l hdisk30 -a reserve_policy=no_reserve
chdev -l hdisk31 -a reserve_policy=no_reserve
chdev -l hdisk32 -a reserve_policy=no_reserve
chdev -l hdisk33 -a reserve_policy=no_reserve
chdev -l hdisk34 -a reserve_policy=no_reserve
chdev -l hdisk35 -a reserve_policy=no_reserve
chdev -l hdisk36 -a reserve_policy=no_reserve
chdev -l hdisk37 -a reserve_policy=no_reserve
chdev -l hdisk38 -a reserve_policy=no_reserve
chdev -l hdisk39 -a reserve_policy=no_reserve
chdev -l hdisk40 -a reserve_policy=no_reserve
chdev -l hdisk41 -a reserve_policy=no_reserve
chdev -l hdisk42 -a reserve_policy=no_reserve
chdev -l hdisk43 -a reserve_policy=no_reserve
chdev -l hdisk44 -a reserve_policy=no_reserve
chdev -l hdisk45 -a reserve_policy=no_reserve
chdev -l hdisk46 -a reserve_policy=no_reserve
chdev -l hdisk47 -a reserve_policy=no_reserve
chdev -l hdisk48 -a reserve_policy=no_reserve
chdev -l hdisk49 -a reserve_policy=no_reserve
chdev -l hdisk50 -a reserve_policy=no_reserve
chdev -l hdisk51 -a reserve_policy=no_reserve
chdev -l hdisk52 -a reserve_policy=no_reserve
chdev -l hdisk53 -a reserve_policy=no_reserve
chdev -l hdisk54 -a reserve_policy=no_reserve
chdev -l hdisk55 -a reserve_policy=no_reserve
chdev -l hdisk56 -a reserve_policy=no_reserve
chdev -l hdisk57 -a reserve_policy=no_reserve
chdev -l hdisk58 -a reserve_policy=no_reserve
chdev -l hdisk59 -a reserve_policy=no_reserve
chdev -l hdisk60 -a reserve_policy=no_reserve
chdev -l hdisk7 -a reserve_policy=no_reserve
chdev -l hdisk73 -a reserve_policy=no_reserve
chdev -l hdisk74 -a reserve_policy=no_reserve
chdev -l hdisk75 -a reserve_policy=no_reserve
chdev -l hdisk76 -a reserve_policy=no_reserve
chdev -l hdisk77 -a reserve_policy=no_reserve
chdev -l hdisk78 -a reserve_policy=no_reserve
chdev -l hdisk79 -a reserve_policy=no_reserve
chdev -l hdisk8 -a reserve_policy=no_reserve
chdev -l hdisk80 -a reserve_policy=no_reserve
chdev -l hdisk81 -a reserve_policy=no_reserve
chdev -l hdisk82 -a reserve_policy=no_reserve
chdev -l hdisk83 -a reserve_policy=no_reserve
chdev -l hdisk9 -a reserve_policy=no_reserve
2.7 修改磁碟所屬使用者和許可權
chown oracle:dba /dev/rhdisk10
chown oracle:dba /dev/rhdisk13
chown oracle:dba /dev/rhdisk14
chown oracle:dba /dev/rhdisk16
chown oracle:dba /dev/rhdisk17
chown oracle:dba /dev/rhdisk18
chown oracle:dba /dev/rhdisk22
chown oracle:dba /dev/rhdisk23
chown oracle:dba /dev/rhdisk24
chown oracle:dba /dev/rhdisk25
chown oracle:dba /dev/rhdisk26
chown oracle:dba /dev/rhdisk28
chown oracle:dba /dev/rhdisk29
chown oracle:dba /dev/rhdisk30
chown oracle:dba /dev/rhdisk31
chown oracle:dba /dev/rhdisk32
chown oracle:dba /dev/rhdisk33
chown oracle:dba /dev/rhdisk34
chown oracle:dba /dev/rhdisk35
chown oracle:dba /dev/rhdisk36
chown oracle:dba /dev/rhdisk37
chown oracle:dba /dev/rhdisk38
chown oracle:dba /dev/rhdisk39
chown oracle:dba /dev/rhdisk40
chown oracle:dba /dev/rhdisk41
chown oracle:dba /dev/rhdisk42
chown oracle:dba /dev/rhdisk43
chown oracle:dba /dev/rhdisk44
chown oracle:dba /dev/rhdisk45
chown oracle:dba /dev/rhdisk46
chown oracle:dba /dev/rhdisk47
chown oracle:dba /dev/rhdisk48
chown oracle:dba /dev/rhdisk49
chown oracle:dba /dev/rhdisk50
chown oracle:dba /dev/rhdisk51
chown oracle:dba /dev/rhdisk52
chown oracle:dba /dev/rhdisk53
chown oracle:dba /dev/rhdisk54
chown oracle:dba /dev/rhdisk55
chown oracle:dba /dev/rhdisk56
chown oracle:dba /dev/rhdisk57
chown oracle:dba /dev/rhdisk58
chown oracle:dba /dev/rhdisk59
chown oracle:dba /dev/rhdisk60
chown oracle:dba /dev/rhdisk7
chown oracle:dba /dev/rhdisk73
chown oracle:dba /dev/rhdisk74
chown oracle:dba /dev/rhdisk75
chown oracle:dba /dev/rhdisk76
chown oracle:dba /dev/rhdisk77
chown oracle:dba /dev/rhdisk78
chown oracle:dba /dev/rhdisk79
chown oracle:dba /dev/rhdisk8
chown oracle:dba /dev/rhdisk80
chown oracle:dba /dev/rhdisk81
chown oracle:dba /dev/rhdisk82
chown oracle:dba /dev/rhdisk83
chown oracle:dba /dev/rhdisk9
chmod 660 /dev/rhdisk10
chmod 660 /dev/rhdisk13
chmod 660 /dev/rhdisk14
chmod 660 /dev/rhdisk16
chmod 660 /dev/rhdisk17
chmod 660 /dev/rhdisk18
chmod 660 /dev/rhdisk22
chmod 660 /dev/rhdisk23
chmod 660 /dev/rhdisk24
chmod 660 /dev/rhdisk25
chmod 660 /dev/rhdisk26
chmod 660 /dev/rhdisk28
chmod 660 /dev/rhdisk29
chmod 660 /dev/rhdisk30
chmod 660 /dev/rhdisk31
chmod 660 /dev/rhdisk32
chmod 660 /dev/rhdisk33
chmod 660 /dev/rhdisk34
chmod 660 /dev/rhdisk35
chmod 660 /dev/rhdisk36
chmod 660 /dev/rhdisk37
chmod 660 /dev/rhdisk38
chmod 660 /dev/rhdisk39
chmod 660 /dev/rhdisk40
chmod 660 /dev/rhdisk41
chmod 660 /dev/rhdisk42
chmod 660 /dev/rhdisk43
chmod 660 /dev/rhdisk44
chmod 660 /dev/rhdisk45
chmod 660 /dev/rhdisk46
chmod 660 /dev/rhdisk47
chmod 660 /dev/rhdisk48
chmod 660 /dev/rhdisk49
chmod 660 /dev/rhdisk50
chmod 660 /dev/rhdisk51
chmod 660 /dev/rhdisk52
chmod 660 /dev/rhdisk53
chmod 660 /dev/rhdisk54
chmod 660 /dev/rhdisk55
chmod 660 /dev/rhdisk56
chmod 660 /dev/rhdisk57
chmod 660 /dev/rhdisk58
chmod 660 /dev/rhdisk59
chmod 660 /dev/rhdisk60
chmod 660 /dev/rhdisk7
chmod 660 /dev/rhdisk73
chmod 660 /dev/rhdisk74
chmod 660 /dev/rhdisk75
chmod 660 /dev/rhdisk76
chmod 660 /dev/rhdisk77
chmod 660 /dev/rhdisk78
chmod 660 /dev/rhdisk79
chmod 660 /dev/rhdisk8
chmod 660 /dev/rhdisk80
chmod 660 /dev/rhdisk81
chmod 660 /dev/rhdisk82
chmod 660 /dev/rhdisk83
chmod 660 /dev/rhdisk9
2.8 關閉dbzykf1節點上的asm例項
Export ORACLE_SID= +ASM2
Sqlplus / as sysdba
Shutdown immediate
2.9 重新啟動dbzykf1節點上的asm例項和檢查磁碟組狀態
[oracle@dbzykf1:/oracle/app/oracle]$sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Sat Apr 10 16:39:24 2010
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> startup
ASM instance started
Total System Global Area 130023424 bytes
Fixed Size 2071104 bytes
Variable Size 102786496 bytes
ASM Cache 25165824 bytes
ASM diskgroups mounted
SQL> select name,state from v$asm_diskgroup;
NAME STATE
DGDATA MOUNTED
DGRECOVER MOUNTED
DGSYSTEM MOUNTED
磁碟組能正常mount,例項也正常開啟了,使用者非常滿意,可以進行下一個節點的主機升級微碼操作了。
3 總結
3.1 問題原因總結
首先判定節點2由於長期處於關機狀態,dgdata磁碟組資訊沒有同步,而導致dgdata磁碟組裝載不成功,還需進一步去研究和確認。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-645630/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 對ASM dgdata 磁碟組增加disk實施步驟ASM
- oracle 10g cluster rac vip始終在節點2的問題處理Oracle 10g
- oracle 10g rac 新增節點與刪除節點步驟Oracle 10g
- ORACLE資料庫升級詳細步驟Oracle資料庫
- oracle 11gR2 rac for aix 第二個節點執行root.sh不成功問題處理OracleAI
- oracle 10g rac+asm 歸檔路徑磁碟組空間滿問題處理Oracle 10gASM
- oracle em節點啟動不成功問題處理總結Oracle
- oracle 10g資料庫表空間遷移之詳細步驟Oracle 10g資料庫
- oracle 10g資料庫之表空間遷移詳細步驟Oracle 10g資料庫
- oracle 11gR2 rac 兩節點有一個節點down掉問題處理Oracle
- 處理rac資料庫一個節點監聽異常資料庫
- Centos MySQL資料庫遷移詳細步驟CentOSMySql資料庫
- rman複製資料庫詳細的步驟資料庫
- RAC磁碟頭損壞問題處理
- 詳解資料處理的六步驟
- 下載並安裝libevent開發庫詳細步驟
- oracle 11gR2 rac+asm 資料庫安裝配置步驟OracleASM資料庫
- oracle 10gR2 rac+asm 資料庫安裝配置步驟Oracle 10gASM資料庫
- oracle 10g crs啟動不成功問題處理Oracle 10g
- AS4 10g 單節點遷移到ASM RAC步驟總結ASM
- RAC資料庫新增ASM磁碟組(1)資料庫ASM
- Git學習2 --- Git安裝詳細步驟Git
- 詳細講解DB2資料庫效能監控的具體步驟DB2資料庫
- 11g 兩個節點RAC 搭建單例項DG詳細步驟以及注意事項單例
- 【問題處理】因ASM磁碟組空間不足導致資料庫例項無法啟動的故障處理ASM資料庫
- docker安裝portainer詳細步驟DockerAI
- MySQL的安裝步驟(詳細)MySql
- 2節點RAC安裝
- 處理Oracle 11gR2 RAC資料庫資源不能自動啟動的問題Oracle資料庫
- oracle grid 其中一個節點asm 磁碟組後設資料損壞處理案例OracleASM
- SQL Server 資料庫查詢死鎖的處理步驟SQLServer資料庫
- 使用create database語句建立資料庫的詳細操作步驟Database資料庫
- 【故障處理】RAC環境第二節點無法歸檔的詭異問題處理
- CentOS 7 安裝MongoDB詳細步驟CentOSMongoDB
- 安裝fbprophet模組詳細步驟
- Linux安裝JDK詳細步驟LinuxJDK
- 【故障處理】DBCA建庫詭異問題處理--rac環境不能建立rac庫
- 主機os重灌的節點加回RAC叢集步驟示例(11gR2 RAC)