ocfs2檔案系統問題總結(zt)
1: Starting O2CB cluster ocfs2: Failed
在安裝完ocfs2 後,配置o2cb 出錯:
[root@rac1 ocfs2]# /etc/init.d/o2cb configure
Configuring the O2CB driver.
This will configure the on-boot properties of the O2CB driver.
The following questions will determine whether the driver is loaded on
boot. The current values will be shown in brackets ('[]'). Hitting
will abort.
Load O2CB driver on boot (y/n) [y]:
Cluster to start on boot (Enter "none" to clear) [ocfs2]:
Specify heartbeat dead threshold (>=7) [7]:
Writing O2CB configuration: OK
Starting O2CB cluster ocfs2: Failed
Cluster ocfs2 created
o2cb_ctl: Configuration error discovered while populating cluster ocfs2. None of its nodes were considered local. A node is considered local when its node name in the configuration matches this machine's host name.
Stopping O2CB cluster ocfs2: OK
出現這中情況,應該是OCFS沒有配置,可以看一下,有一個圖形ocfs配置命令,首先要配置他,而且最好 用IP地址,不要用主機名!
也就是說,在啟動ocfs2時,ocfs節點配置檔案一定要配置好,如果沒有配置正確,就會報錯,同時在用圖形介面配置的時候,/etc/ocfs2/cluster.conf檔案最好是空檔案,要不然也會報錯!
2: mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
mount -t ocfs2 -o datavolume /dev/sdb1 /u02/oradata/orcl
ocfs2_hb_ctl: Bad magic number in superblock while reading uuid
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
ocfs2檔案檔案系統分割槽沒有格式化引起的錯誤,在掛載ocfs2檔案系統之前,用於這個檔案系統的分割槽一定要進行格式化.
掛載ocfs2檔案系統
mount -t ocfs2 -o datavolume /dev/sdc1 /u02/oradata/orcl
報如下錯誤:
ocfs2_hb_ctl: Unable to access cluster service while starting heartbeat
mount.ocfs2: Error when attempting to run /sbin/ocfs2_hb_ctl: "Operation not permitted"
3: Configuration assistant "Oracle Cluster Verification Utility" failed
10g rac 安裝請教 oracle 10.2.0.1 solaris 5.9 雙機 安裝crs最後一步有錯,不知如何解決?
LOG 資訊:
INFO: Configuration assistant "Oracle Cluster Verification Utility" failed
-----------------------------------------------------------------------------
*** Starting OUICA ***
Oracle Home set to /orabase/product/10.2
Configuration directory is set to /orabase/product/10.2/cfgtoollogs. All xml files under the directory will be processed
INFO: The "/orabase/product/10.2/cfgtoollogs/configToolFailedCommands" script. contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script. with passwords (if any) before executing the same.
-----------------------------------------------------------------------------
SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured.
1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.
2. Fix the errors causing these failures.
3. Select the failed assistants and click the 'Retry' button to retry them.
INFO: User Selected: Yes/OK
是不是vip地址沒有啟動造成的,建議在執行完orainstRoot.sh和root.sh命令後新開個視窗執行vipca,把crs服務都起來後再執行最後的verify步驟,可以嘗試一下。去crs的bin目錄下執行crs_stat -t 看看服務是不是都起了,我也覺得是vip沒起來
4: Failed to upgrade Oracle Cluster Registry configuration
在安裝CRS時,在第二個節點執行./root.sh時,出現如下提示,我在第一個節點執行正常.請大蝦指點一些,不勝感激!謝謝!
[root@RACtest2 crs]# ./root.sh
WARNING: directory '/app/oracle/product/10.2.0' is not owned by root
WARNING: directory '/app/oracle/product' is not owned by root
WARNING: directory '/app/oracle' is not owned by root
WARNING: directory '/app' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
PROT-1: Failed to initialize ocrconfig
Failed to upgrade Oracle Cluster Registry configuration
錯誤原因:是因為安裝crs的裝置許可權有問題,例如我的裝置用raw來放置ocr和vote,此時要設定好這些硬體裝置以及連線的檔案的許可權,下面是我的環境:
[root@rac2 oracrs]#
lrwxrwxrwx 1 root root 13 Jan 27 12:49 ocr.crs -> /dev/raw/raw1
lrwxrwxrwx 1 root root 13 Jan 26 13:31 vote.crs -> /dev/raw/raw2
chown root:oinstall /dev/raw/raw1
chown root:oinstall /dev/raw/raw2
chmod 660 /dev/raw/raw1
chmod 660 /dev/raw/raw2
其中/dev/sdb1放置ocr,/dev/sdb2放置vote.
[root@rac2 oracrs]# service rawdevices reload
Assigning devices:
/dev/raw/raw1 --> /dev/sdb1
/dev/raw/raw1: bound to major 8, minor 17
/dev/raw/raw2 --> /dev/sdb2
/dev/raw/raw2: bound to major 8, minor 18
Done
然後再次執行就ok了.
[root@rac2 oracrs]# /oracle/app/oracle/product/crs/root.sh
WARNING: directory '/oracle/app/oracle/product' is not owned by root
WARNING: directory '/oracle/app/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle/app/oracle/product' is not owned by root
WARNING: directory '/oracle/app/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: rac1 priv1 rac1
node 2: rac2 priv2 rac2
clscfg: Arguments check out successfully.
5: Startup will be queued to init within 90 seconds
在安裝的a節點上執行root.sh如下:
[root@rac2 OraHome1]# ./root.sh
WARNING: directory '/oracle' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/oracle' is not owned by root
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: rac1 vip1 rac1
node 2: rac2 vip2 rac2
clscfg: Arguments check out successfully.
NO KEYS WERE WRITTEN. Supply -force parameter to override.
-force is destructive and will destroy any previous cluster
configuration.
Oracle Cluster Registry for cluster has already been initialized
Startup will be queued to init within 90 seconds.
就掛起了,察看日誌ocrconfig_7758.log
Oracle Database 10g CRS Release 10.2.0.1.0 Production Copyright 1996, 2005 Oracle. All rights reserved.
2006-10-29 22:47:09.537: [ OCRCONF][3086919360]ocrconfig starts...
2006-10-29 22:47:09.541: [ OCRCONF][3086919360]Upgrading OCR data
2006-10-29 22:47:09.649: [ OCRRAW][3086919360]propriogid:1: INVALID FORMAT
2006-10-29 22:47:09.660: [ OCRRAW][3086919360]ibctx:1:ERROR: INVALID FORMAT
2006-10-29 22:47:09.660: [ OCRRAW][3086919360]proprinit roblem reading the bootblock or superbloc 22
2006-10-29 22:47:09.661: [ default][3086919360]a_init:7!: Backend init unsuccessful : [22]
2006-10-29 22:47:09.662: [ OCRCONF][3086919360]Exporting OCR data to [OCRUPGRADEFILE]
2006-10-29 22:47:09.663: [ OCRAPI][3086919360]a_init:7!: Backend init unsuccessful : [33]
2006-10-29 22:47:09.663: [ OCRCONF][3086919360]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not
configured]
2006-10-29 22:47:09.666: [ OCRRAW][3086919360]propriogid:1: INVALID FORMAT
2006-10-29 22:47:09.668: [ OCRRAW][3086919360]ibctx:1:ERROR: INVALID FORMAT
2006-10-29 22:47:09.668: [ OCRRAW][3086919360]proprinit roblem reading the bootblock or superbloc 22
2006-10-29 22:47:09.668: [ default][3086919360]a_init:7!: Backend init unsuccessful : [22]
2006-10-29 22:47:09.672: [ OCRRAW][3086919360]propriogid:1: INVALID FORMAT
2006-10-29 22:47:09.673: [ OCRRAW][3086919360]ibctx:1:ERROR: INVALID FORMAT
2006-10-29 22:47:09.673: [ OCRRAW][3086919360]proprinit roblem reading the bootblock or superbloc 22
首先檢查防火牆是否關閉:
檢查並關閉 UDP ICMP 拒絕
在 Linux 安裝期間,我指出不配置防火牆選項。預設情況下,配置防火牆的選項由安裝程式選擇。這使我吃了好幾次苦頭,因此我要仔細檢查防火牆選項是否未配置,並確保 udp ICMP 過濾已關閉。
如果 UDP ICMP 被防火牆阻塞或拒絕,Oracle 叢集件軟體將在執行幾分鐘之後崩潰。如果 Oracle 叢集件程式出現故障,您的
08/29/2005 22:17:19
oac_init:2: Could not connect to server, clsc retcode = 9
08/29/2005 22:17:19
a_init:12!: Client init unsuccessful : [32]
ibctx:1:ERROR: INVALID FORMAT
proprinit:problem reading the bootblock or superbloc 22
如果遇到此類錯誤,解決方法是移除 udp ICMP (iptables) 拒絕規則,或者只需關閉防火牆選項。之後,Oracle 叢集件軟體將開始正常工作,而不會崩潰。以下命令應該以 root 使用者帳戶的身份執行:
1. 檢查以確保防火牆選項關閉。如果防火牆選項已停用(如下面的示例所示),則不必繼續執行以下步驟。
# /etc/rc.d/init.d/iptables statusFirewall is stopped
2. 如果防火牆選項已啟用,您首先需要手動停用 UDP ICMP 拒絕:
# /etc/rc.d/init.d/iptables stopFlushing firewall rules: [ OK ]Setting chains to policy ACCEPT: filter [ OK ]Unloading iptables modules: [ OK ]
3. 然後,針對下一次伺服器重啟關閉 UDP ICMP 拒絕(應該始終被關閉):
# chkconfig iptables off
再次,如果不是上面的問題,
建議你先用dd把ocr和votedisk清除資訊,再給許可權,再執行 root.sh
給你看看我的第一個節點執行root.sh的反饋資訊:
[root@node1 crs10.2.0]# ./root.sh
WARNING: directory '/ora10g/product' is not owned by root
WARNING: directory '/ora10g' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/ora10g/product' is not owned by root
WARNING: directory '/ora10g' is not owned by root
assigning default hostname node1 for node 1.
assigning default hostname node2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node
node 1: node1 privnode1 node1
node 2: node2 privnode2 node2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /ocfs/votedisk/votedisk.dat
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
node1
CSS is inactive on these nodes.
node2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
[root@node1 crs10.2.0]#
6: CRS-0215: Could not start resource 'ora.orcl.orcl1.inst'.
$ srvctl start instance -d orcl -i orcl1
PRKP-1001 : 在節點 znawdb1 上啟動例項 orcl1 時出錯
CRS-0215: Could not start resource 'ora.orcl.orcl1.inst'.
出現這個問題的原因是因為裝載資料庫資料檔案的ocfs2檔案系統,或者是ASM例項沒有掛載的原因,例如,我的環境是raw+ASM,當沒有掛載ASM例項,然後用srvctl start asm –n rac1啟動了ASM,但是這個啟
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/756652/viewspace-281117/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ocfs2檔案系統常見問題解決方法
- Oracle叢集檔案系統(OCFS2)使用者指南(zt)Oracle
- ocfs2檔案系統使用詳解
- zt_zfs 檔案系統
- 使用 /proc 檔案系統來控制系統 (zt)
- Linux下加掛檔案系統的小結 (zt)Linux
- Godot 4.0 檔案系統特性的總結Go
- 電腦檔案系統的管理總結
- [zt] Linux 檔案系統精通指南Linux
- AIX檔案系統滿的問題分析AI
- Linux系統(一)檔案系統、壓縮、打包操作總結Linux
- Linux AS4上安裝 OCFS2叢集檔案系統Linux
- vue專案問題總結Vue
- 檔案系統變成RAW問題解決
- [zt] 總結logminer使用及各種問題處理
- 總結-理解和使用aix的日誌系統(zt)AI
- 吉特倉庫管理系統-.NET列印問題總結
- Linux as4上安裝 OCFS2叢集檔案系統(二)Linux
- Linux as4上安裝 OCFS2叢集檔案系統(一)Linux
- oracle rac將datafile建立到本地檔案系統問題處理總結-orastar-20170924OracleAST
- Maven Settings.xml檔案及常見問題總結MavenXML
- u盤的NTFS與exFAT檔案系統-總結向
- zt_redhat配置gfs_全域性檔案系統Redhat
- linux環境確定OCFS2檔案系統的BLOCK和cluster sizeLinuxBloC
- 作業系統寫題總結作業系統
- 系統檔案:亦真亦假的Svchost.exe(zt)
- 問題總結
- 停電導致aix檔案系統掛載問題AI
- oracle ocfs 叢集檔案系統新增資料檔案帶來的問題Oracle
- VFS檔案系統結構分析
- [zt] SQL Server日誌檔案總結及日誌滿的處理SQLServer
- vue專案中遇到的問題總結Vue
- uniapp專案所遇問題總結APP
- 幾個重要的Linux系統核心檔案介紹(zt)Linux
- ZT:reiserfs檔案系統反刪除(Undelete)操作的實踐delete
- 《資訊保安系統設計基礎》第二週問題總結
- 事務型系統由SQL遷移到NoSQL問題總結(轉)SQL
- hints提示總結 zt