部署rac 提示ORA-15018: diskgroup cannot be created解決辦法

muxinqing發表於2014-04-17

[root@his2 soft]# /app/grid/product/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/grid/product/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...


Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
OLR initialization - successful
Adding daemon to inittab
ACFS-9200: Supported
ACFS-9300: ADVM/ACFS distribution files found.
ACFS-9307: Installing requested ADVM/ACFS software.
ACFS-9308: Loading installed ADVM/ACFS drivers.
ACFS-9321: Creating udev for ADVM/ACFS.
ACFS-9323: Creating module dependencies - this may take some time.
ACFS-9327: Verifying ADVM/ACFS devices.
ACFS-9309: ADVM/ACFS installation correctness verified.
CRS-2672: Attempting to start 'ora.mdnsd' on 'his2'
CRS-2676: Start of 'ora.mdnsd' on 'his2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'his2'
CRS-2676: Start of 'ora.gpnpd' on 'his2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'his2'
CRS-2672: Attempting to start 'ora.gipcd' on 'his2'
CRS-2676: Start of 'ora.cssdmonitor' on 'his2' succeeded
CRS-2676: Start of 'ora.gipcd' on 'his2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'his2'
CRS-2672: Attempting to start 'ora.diskmon' on 'his2'
CRS-2676: Start of 'ora.diskmon' on 'his2' succeeded
CRS-2676: Start of 'ora.cssd' on 'his2' succeeded

Disk Group ORACRS creation failed with the following message:
ORA-15018: diskgroup cannot be created
ORA-15031: disk specification '/dev/oracleasm/disks/CRSVOL' matches no disks
ORA-15025: could not open disk "/dev/oracleasm/disks/CRSVOL"
ORA-15056: additional error message


Configuration of ASM ... failed
see asmca logs at /app/grid/grid_base/cfgtoollogs/asmca for details
Did not succssfully configure and start ASM at /app/grid/product/11.2.0/grid/crs/install/crsconfig_lib.pm line 6464.
/app/grid/product/11.2.0/grid/perl/bin/perl -I/app/grid/product/11.2.0/grid/perl/lib -I/app/grid/product/11.2.0/grid/crs/install /app/grid/product/11.2.0/grid/crs/install/rootcrs.pl execution failed
[root@his2 soft]#
Last login: Thu Apr 17 16:00:56 2014 from 10.0.0.254
[root@his2 ~]# ll -l /dev/oracleasm/disks/CRSVOL
brw------- 1 root root 8, 1 Apr 17 15:16 /dev/oracleasm/disks/CRSVOL
[root@his2 ~]# cd /dev/oracleasm/disks/
[root@his2 disks]# ls
CRSVOL  DATVOL  FRAVOL
[root@his2 disks]# ll
total 0
brw------- 1 root root 8,  1 Apr 17 15:16 CRSVOL       這邊許可權出了問題導致
brw------- 1 root root 8, 17 Apr 17 15:16 DATVOL
brw------- 1 root root 8, 33 Apr 17 15:16 FRAVOL
[root@his2 disks]# cd ./usr/sbin/oracleasm configure
-bash: cd: ./usr/sbin/oracleasm: No such file or directory
[root@his2 disks]# /usr/sbin/oracleasm configure
ORACLEASM_ENABLED=true
ORACLEASM_UID=grid
ORACLEASM_GID=onstall
ORACLEASM_SCANBOOT=true
ORACLEASM_SCANORDER=""
ORACLEASM_SCANEXCLUDE=""
[root@his2 disks]# /etc/init.d/oracleasm configure
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 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 [onstall]: oinstall
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@his2 disks]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@his2 disks]# oracleasm listdisks;
CRSVOL
DATVOL
FRAVOL
[root@his2 disks]# cd /dev/oracleasm/disks/
[root@his2 disks]# ll
total 0
brw-rw---- 1 grid oinstall 8,  1 Apr 17 15:16 CRSVOL
brw-rw---- 1 grid oinstall 8, 17 Apr 17 15:16 DATVOL
brw-rw---- 1 grid oinstall 8, 33 Apr 17 15:16 FRAVOL
[root@his2 disks]# /app/grid/product/11.2.0/grid/root.sh
Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /app/grid/product/11.2.0/grid

Enter the full pathname of the local bin directory: [/usr/local/bin]:
The contents of "dbhome" have not changed. No need to overwrite.
The contents of "oraenv" have not changed. No need to overwrite.
The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /app/grid/product/11.2.0/grid/crs/install/crsconfig_params
CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node his1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
[root@his2 disks]# crsctl stat res -t
-bash: crsctl: command not found
[root@his2 disks]# su - grid
[grid@his2 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[grid@his2 ~]$ crsstat -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS      
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.ORACRS.dg
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.asm
               ONLINE  ONLINE       his1                     Started            
               ONLINE  ONLINE       his2                                        
ora.gsd
               OFFLINE OFFLINE      his1                                        
               OFFLINE OFFLINE      his2                                        
ora.net1.network
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.ons
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
ora.registry.acfs
               ONLINE  ONLINE       his1                                        
               ONLINE  ONLINE       his2                                        
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       his1                                        
ora.cvu
      1        ONLINE  ONLINE       his1                                        
ora.his1.vip
      1        ONLINE  ONLINE       his1                                        
ora.his2.vip
      1        ONLINE  ONLINE       his2                                        
ora.oc4j
      1        ONLINE  ONLINE       his1                                        
ora.scan1.vip
      1        ONLINE  ONLINE       his1                                        
[grid@his2 ~]$ crsctk check crs
-bash: crsctk: command not found
[grid@his2 ~]$ crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
[grid@his2 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2368
         Available space (kbytes) :     259752
         ID                       : 1459065767
         Device/File Name         :    +ORACRS
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check bypassed due to non-privileged user

[grid@his2 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   11b2373f9bc94f17bfd8c7e39a386573 (/dev/oracleasm/disks/CRSVOL) [ORACRS]
Located 1 voting disk(s).

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29065182/viewspace-1144273/,如需轉載,請註明出處,否則將追究法律責任。

相關文章