【RAC】 oracleasm 工具對應的日誌記錄
因為刪除Clusterware之後,ocr還在磁碟中,使用dd命令格式化磁碟,但是oracle提供了oracleasm工具,所以看看oracleasm deletedisk的操作具體做了什麼
------------------------------------------------------------------
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL101
Removing ASM disk "VOL101": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL102
Removing ASM disk "VOL102": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL103
Removing ASM disk "VOL103": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL104
Removing ASM disk "VOL104": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL201
Removing ASM disk "VOL201": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL202
Removing ASM disk "VOL202": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL203
Removing ASM disk "VOL203": [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm deletedisk VOL204
Removing ASM disk "VOL204": [ OK ]
對應日誌:deletedisk操作刪除了磁碟的頭部資訊。
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
Clearing disk header: done
Dropping disk: done
--------------------------------------------------------------------
[root@rac1 ~]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
對應日誌:
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Cleaning any stale ASM disks...
對應/var/log/oracleasm 的日誌記錄:
-------------------------------------------------------------------
關於重啟oracleasm 的日誌記錄:
[root@rac1 dev]# service oracleasm stop
Dropping Oracle ASMLib disks: [ OK ]
Shutting down the Oracle ASMLib driver: [ OK ]
對應日誌:
Unmounting ASMlib driver filesystem: /dev/oracleasm
Unloading module "oracleasm": oracleasm
-------------------------------------------------------------------
[root@rac1 dev]# service oracleasm start
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
對應日誌:
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
下面是建立asm磁碟的日誌記錄:
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL101 /dev/sdc1
Marking disk "VOL101" as an ASM disk: [ OK ]
[root@rac1 dev]#/etc/init.d/oracleasm createdisk VOL102 /dev/sdc2
Marking disk "VOL102" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL103 /dev/sdd1
Marking disk "VOL103" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL104 /dev/sdd2
Marking disk "VOL104" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL201 /dev/sde1
Marking disk "VOL201" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL202 /dev/sde2
Marking disk "VOL202" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL203 /dev/sdf1
Marking disk "VOL203" as an ASM disk: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm createdisk VOL204 /dev/sdf2
Marking disk "VOL204" as an ASM disk: [ OK ]
下面是建立asm磁碟的日誌記錄:先檢查磁碟組是否已經被建立或者初始化!
Disk "VOL101" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL102" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL103" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL104" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL201" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL202" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL203" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
Disk "VOL204" does not exist or is not instantiated
Writing disk header: done
Instantiating disk: done
-------------------------------------------------------------------
[root@rac1 dev]# /etc/init.d/oracleasm scandisks
Scanning the system for Oracle ASMLib disks: [ OK ]
[root@rac1 dev]# /etc/init.d/oracleasm listdisks
VOL101
VOL102
VOL103
VOL104
VOL201
VOL202
VOL203
VOL204
對應日誌記錄:
Reloading disk partitions: done
Cleaning any stale ASM disks...
Validating disk "VOL101"
Validating disk "VOL102"
Validating disk "VOL103"
Validating disk "VOL104"
Validating disk "VOL201"
Validating disk "VOL202"
Validating disk "VOL203"
Validating disk "VOL204"
Scanning system for ASM disks...
Disk "VOL101" is a valid ASM disk
Disk "VOL102" is a valid ASM disk
Disk "VOL103" is a valid ASM disk
Disk "VOL104" is a valid ASM disk
Disk "VOL201" is a valid ASM disk
Disk "VOL202" is a valid ASM disk
Disk "VOL203" is a valid ASM disk
Disk "VOL204" is a valid ASM disk
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22664653/viewspace-706653/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- php日誌,記錄日誌PHP
- oracleasm軟體包的日誌(log)路徑OracleASM
- 日誌記錄器
- RAC節點日誌目錄是必要的!
- 針對Nginx日誌的相關運維操作記錄Nginx運維
- Laravel sql 日誌記錄LaravelSQL
- secureCRT記錄操作日誌Securecrt
- 記錄日誌檔案
- PHP日誌記錄方法PHP
- oracle日誌操作記錄Oracle
- Apache 記錄請求響應時間日誌Apache
- mysql audit-訪問日誌記錄應用MySql
- 使用 .NET Core 的日誌記錄
- 日誌記錄 PHP下往linux目錄下寫日誌PHPLinux
- 老白對於RAC應用調優的建議--(摘自老白的ORACLE RAC 日記)Oracle
- oracle實驗記錄 (physical standby 日誌應用方面)Oracle
- Oracle補充日誌及日誌記錄規則Oracle
- db2不記錄日誌插入記錄DB2
- 記錄騰訊雲使用日誌
- 記錄 | 實習日誌 9
- mysql開啟日誌記錄MySql
- 記錄 sql 查詢日誌SQL
- SecureCRT自動記錄日誌Securecrt
- Appfuse:記錄操作日誌APP
- storm 問題日誌記錄ORM
- 第11章 日誌記錄
- 5 個用於日誌記錄以及監控的 DevOps 工具dev
- python日誌記錄器的配置Python
- 如何優雅的記錄操作日誌?
- Util應用框架基礎(六) - 日誌記錄(一) - 正文框架
- 日誌收集工具簡單對比
- monolog 日誌記錄器解析Mono
- iptables防火牆如何記錄日誌防火牆
- 使用Redis記錄系統日誌Redis
- log4net日誌記錄
- 使用Rsyslog記錄Apache日誌Apache
- secureCRT自動記錄log日誌Securecrt
- Python多程式記錄日誌Python