Redhat 下 ASM oracleasm deletedisk -failed 的解決方法
在虛擬機器上搭建Oracle 11gR2 的RAC。 安裝Clusterware的時候出了一點錯誤。 所以強行把Clusterware 給刪除了。 清除了相關的目錄和檔案。 因為11gr2 的OCR是存放在ASM上 的,所以需要清除這部分資訊。
[root@rac2 ~]# oracleasm listdisks
CRS
DATA
FRA
[root@rac2 ~]# oracleasm deletedisk CRS
Clearing disk header: failed
Unable to clear disk "CRS"
[root@rac2 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@rac2 ~]# oracleasm listdisks
CRS
DATA
FRA
可是刪除 報Clearing disk header: failed錯誤。 嘗試把另一個節點的ASM 停止掉刪除,還是不行。
看了一下oracleasm的log:
[root@rac1 mapper]# tail -20 /var/log/oracleasm
Cleaning disk "DATA"
Validating disk "FRA"
Unmounting ASMlib driver filesystem: /dev/oracleasm
Unloading module "oracleasm": oracleasm
Disk "CRS" does not exist or is not instantiated
Clearing disk header: done
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Disk "FRA" does not exist or is not instantiated
Instantiating disk "FRA"
oracleasm-read-label: Unable to read device "/dev/sdb": Input/output error
oracleasm-read-label: Unable to read device "/dev/sdf": Input/output error
Disk "DATA" does not exist or is not instantiated
Instantiating disk "DATA"
oracleasm-read-label: Unable to read device "/dev/sdd": Input/output error
Disk "FRA" is a valid ASM disk
Disk "DATA" is a valid ASM disk
google了一下。 在Oracle 論壇上找到了解決方法:
Same problem with 11.2.0.1 on
x86-64 RH Linux 5.4.
Had to :
1. shutdown CRS on all nodes of the cluster (# ./crsctl stop
crs)
2. disable CRS from starting on reboot (# ./crsctl disable
crs)
3. Reboot all the servers (# shutdown -r now)
4. After reboot, stop ASMLIB (# service oracleasm stop)
5. Remove the disk using physical name rather than logical name
(service oracleasm deletedisk /dev/mapper/mpath01p1)
6. Restart ASMLIB (# service oracleasm start)
7. Enable CRS on re-boot (# ./crsctl disable crs)
因為我之前的Cluster已經刪除,所以直接停ASM server。 刪除就可以了。
[root@rac1 mapper]# service oracleasm stop
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
[root@rac1 mapper]# ls
control crs crsp1 data datap1 fra frap1
[root@rac1 mapper]# service oracleasm deletedisk /dev/mapper/crsp1
Removing ASM disk "/dev/mapper/crsp1": [ OK ]
[root@rac1 mapper]# service oracleasm start
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac1 mapper]# oracleasm listdisks
DATA
FRA
搞定。 到另一個節點檢視:
[root@rac2 ~]# oracleasm listdisks
CRS
DATA
FRA
[root@rac2 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Cleaning disk "CRS"
Scanning system for ASM disks...
[root@rac2 ~]# oracleasm listdisks
DATA
FRA
也同步了。 看來ASM 11在Linux 5.4 上還是有點問題。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-696076/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- pyenv BUILD FAILED解決方法UIAI
- Failed to execute aapt的奇怪解決方法AIAPT
- oracleasm createdisk ASM: Device is already labeled for ASM diskOracleASMdev
- Oracle ASM oracleasm createdisk "Device or resource busy"OracleASMdev
- FreeBSD系統下zfs: failed with error 6錯誤的解決方法AIError
- ASM Disk丟失的臨時解決方法ASM
- 在RedHat虛擬機器下單/雙引號打不出來的解決方法Redhat虛擬機
- 昨天裝RAC時遇到的一個錯誤Loading module "oracleasm": Unable to load module "oracleasm"[FAILED]OracleASMAI
- asm例項查詢asm相關檢視hang住解決方法ASM
- Oracle 11gR2 RAC ohasd failed to start 解決方法OracleAI
- RedHat下MySQL的基本使用方法分享RedhatMySql
- smplx 的 libGL error: MESA-LOADER: failed to open swrast 的解決方法ErrorAIAST
- Resolving failed: Temporary failure in name resolution 錯誤解決方法AI
- 建立asm磁碟 報錯 oracleasm-write-label: Unable to clear deviceASMOracledev
- git push出現unpack failed: error Missing tree錯誤的解決方法GitAIError
- RedHat虛擬機器打不開磁碟問題如何解決?RedHat虛擬機器打不開磁碟的解決方法Redhat虛擬機
- NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load xxxx錯誤解決方法ErrorAIXMLHTTP
- redhat enterprise 4下遷移oracle 10g到asmRedhatOracle 10gASM
- RedHat 4 as 下安裝Oracle11gR2,Cluster(ASM)和DatabaseRedhatOracleASMDatabase
- Start of resource “ora.asm -init” failed -ASMAI
- linux下SVN衝突的解決方法Linux
- iOS下的點選事件失效解決方法iOS事件
- win10系統開機提示critical service failed錯誤的解決方法Win10AI
- IMP-00017: following statement failed with ORACLE error 957錯誤的解決方法AIOracleError
- 解決ssh的"Write failed: Broken pipe"問題AI
- redhat6.5 DNS 問題解決RedhatDNS
- 解決:Failed to load ApplicationContextAIAPPContext
- CentOS 7 yum 無法下載的解決方法CentOS
- aix 下 無法使用backspace鍵的解決方法。AI
- redhat ping不通外網的解決辦法Redhat
- ORA-09817: Write to audit file failed 的解決AI
- socket write failed(24) _Netbackup的問題解決AI
- win10玩絕地求生提示failed to install battleye service解決方法Win10AIBAT
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- Fedora 20下解決使用者不在sudoers檔案中的解決方法
- RedHat 6* 修改系統時區解決Redhat
- RedHat5下安裝Mysql詳解RedhatMySql
- 解決:Failed to download metadata for repo ‘base‘AI