重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3508|回复: 0
打印 上一主题 下一主题

[Oracle] 重启操作系统后无法看到asm磁盘

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-18 11:12:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
现象:重启操作系统后,集群无法启动磁盘组资源。

[grid@hisdg ~]$ crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  OFFLINE      hisdg                                       
ora.LISTENER.lsnr
               ONLINE  INTERMEDIATE hisdg                    Not All Endpoints R
                                                             egistered           
ora.asm
               ONLINE  ONLINE       hisdg                    Started            
ora.ons
               OFFLINE OFFLINE      hisdg                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  ONLINE       hisdg                                       
ora.diskmon
      1        OFFLINE OFFLINE                                                   
ora.evmd
      1        ONLINE  ONLINE       hisdg                                       


手工启动失败
[grid@hisdg ~]$ srvctl start diskgroup -g DATA
PRCR-1079 : Failed to start resource ora.DATA.dg
CRS-5017: The resource action "ora.DATA.dg start" encountered the following error:
ORA-15032: not all alterations performed
ORA-15017: diskgroup "DATA" cannot be mounted
ORA-15063: ASM discovered an insufficient number of disks for diskgroup "DATA"
. For details refer to "(:CLSN00107:)" in "/u01/app/grid/product/11.2.0/grid/log/hisdg/agent/ohasd/oraagent_grid/oraagent_grid.log".

CRS-2674: Start of 'ora.DATA.dg' on 'hisdg' failed

查看磁盘组,发现无显示
[root@hisdg ~]# oracleasm listdisks

扫描磁盘成功
[root@hisdg ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "DATA01"
Instantiating disk "DATA02"
[root@hisdg ~]# oracleasm listdisks
DATA01
DATA02
[root@hisdg ~]#

再次手工启动磁盘组成功
[grid@hisdg ~]$ srvctl start diskgroup -g DATA
[grid@hisdg ~]$

[grid@hisdg ~]$ crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       hisdg                                       
ora.LISTENER.lsnr
               ONLINE  INTERMEDIATE hisdg                    Not All Endpoints R
                                                             egistered           
ora.asm
               ONLINE  ONLINE       hisdg                    Started            
ora.ons
               OFFLINE OFFLINE      hisdg                                       
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
      1        ONLINE  ONLINE       hisdg                                       
ora.diskmon
      1        OFFLINE OFFLINE                                                   
ora.evmd
      1        ONLINE  ONLINE       hisdg                                       
[grid@hisdg ~]$



分析:在配置磁盘权限时,未启用重启服务器时扫描磁盘功能
[root@hisdg ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.

This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting <ENTER> without typing an
answer will keep that current value.  Ctrl-C will abort.

Default user to own the driver interface [grid]: grid
Default group to own the driver interface [asmadmin]: asmadmin
Scan for Oracle ASM disks on boot (y/n) [n]: y
Writing Oracle ASM library driver configuration: done
[root@hisdg ~]#


分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-19 17:22 , Processed in 0.087819 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表