【RAC】 oracleasm 工具对应的日志记录-阿里云开发者社区

开发者社区> yangyi_dba> 正文

【RAC】 oracleasm 工具对应的日志记录

简介: 因为删除Clusterware之后,ocr还在磁盘中,使用dd命令格式化磁盘,但是oracle提供了oracleasm工具,所以看看oracleasm deletedisk的操作具体做了什么 -----------------------------------...
+关注继续查看
因为删除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

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
Feed系统架构与Feed缓存模型
Feed系统架构与Feed缓存模型
4 0
场景体验报告——冬季实战营第一期
冬季实战营第一期,通过六个场景,从ECS的登录开始,涵盖了安装并配置Apache、MySQL、PHP环境,Docker的部署、SpringBoot项目的部署,最后还搭建了一个门户网站。
8 0
Spring Boot 基础教程:配置详解
本文主要对 Spring Boot 项目中的配置文件进行了简单的介绍,并学习如何自定义属性并配置多环境项目,最后则是对比了当前主流的两种方式不同格式配置文件 yml 和 properties 的异同。
5 0
HH
冬季实战营第一期感受
实战营第一期从17日到21日每日简简单单但依旧有所收获。
7 0
基于阿里云从零到一上手玩转云服务器
基于国内最大的云服务商阿里云,开展几次基础的玩法课程来体验云服务的乐趣。
5 0
相约在冬季实战营——第一期学习报告
冬奥云小宝带你玩转五期实战营 覆盖五大技术方向 “0成本”实践学习 快速晋级为专业的“云上开发者” -- 摘自云起冬季实战营https://developer.aliyun.com/adc/series/wintercamp
10 0
什么是软件实施?软件实施前景几何?软件实施的面试题有那些?
事情是这样的,由于自己目前还没有对象,就想着在兰州找一份还不错的工作,于是投了一家在我的家乡还算不错的公司,对方却说有可能是软件实施岗位,于是趁机了解了一下, 什么是软件实施? 软件实施掌握的基础知识有哪些? 软件实施前景几何?
6 0
我的ECS使用体验
在阿里云ECS服务器使用中学习和收获了很多。
4 0
+关注
yangyi_dba
数据库相关技术专家
972
文章
0
问答
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载