节点2执行root.sh报ORA-15018: diskgroup cannot be created
执行结果:# /u01/app/11.2.0/grid/product/db_1/root.shRunning Oracle 11g root.sh script... The following environment variables are setas: ORACLE_OWNER= grid ORACLE_HOME=/u01/app/11.2.0/grid/product/db_1 Enter the full pathname of the local bindirectory: : The file "dbhome" already existsin /usr/local/bin.Overwrite it? (y/n) : yCopying dbhome to /usr/local/bin ...The file "oraenv" already existsin /usr/local/bin.Overwrite it? (y/n) : y Copyingoraenv to /usr/local/bin ...The file "coraenv" already existsin /usr/local/bin.Overwrite it? (y/n) : yCopying coraenv to /usr/local/bin ... Entries will be added to the /etc/oratabfile as needed byDatabase Configuration Assistant when adatabase is createdFinished running generic part of root.shscript.Now product-specific root actions will beperformed.2014-10-26 17:54:33: Parsing the host name2014-10-26 17:54:33: Checking for superuser privileges2014-10-26 17:54:33: User has super userprivilegesUsing configuration parameter file:/u01/app/11.2.0/grid/product/db_1/crs/install/crsconfig_paramsLOCAL ADD MODE Creating OCR keys for user 'root', privgrp'root'..Operation successful.Adding daemon to inittabCRS-4123: Oracle High Availability Serviceshas been started.ohasd is startingADVM/ACFS is not supported onredhat-release-server-6Server-6.5.0.1.el6.x86_64 CRS-2672: Attempting to start 'ora.gipcd'on 'jcsjdb02'CRS-2672: Attempting to start 'ora.mdnsd'on 'jcsjdb02'CRS-2676: Start of 'ora.gipcd' on'jcsjdb02' succeededCRS-2676: Start of 'ora.mdnsd' on'jcsjdb02' succeededCRS-2672: Attempting to start 'ora.gpnpd'on 'jcsjdb02'CRS-2676: Start of 'ora.gpnpd' on'jcsjdb02' succeededCRS-2672: Attempting to start 'ora.cssdmonitor'on 'jcsjdb02'CRS-2676: Start of 'ora.cssdmonitor' on'jcsjdb02' succeededCRS-2672: Attempting to start 'ora.cssd' on'jcsjdb02'CRS-2672: Attempting to start 'ora.diskmon'on 'jcsjdb02'CRS-2676: Start of 'ora.diskmon' on'jcsjdb02' succeededCRS-2676: Start of 'ora.cssd' on 'jcsjdb02'succeededCRS-2672: Attempting to start 'ora.ctssd'on 'jcsjdb02'CRS-2676: Start of 'ora.ctssd' on'jcsjdb02' succeeded 未能创建磁盘组OCR,返回消息如下ORA-15018: diskgroup cannot be createdORA-15072: command requires at least 1regular failure groups, discovered only 0 Configuration of ASM failed, see logs fordetailsDid not succssfully configure and start ASMCRS-2500: Cannot stop resource 'ora.crsd'as it is not runningCRS-4000: Command Stop failed, or completedwith errors.Command return code of 1 (256) fromcommand: /u01/app/11.2.0/grid/product/db_1/bin/crsctlstop resource ora.crsd -initStop of resource "ora.crsd -init"failedFailed to stop CRSDCRS-2673: Attempting to stop 'ora.asm' on'jcsjdb02'CRS-2677: Stop of 'ora.asm' on 'jcsjdb02'succeededCRS-2673: Attempting to stop 'ora.ctssd' on'jcsjdb02'CRS-2677: Stop of 'ora.ctssd' on 'jcsjdb02'succeededCRS-2673: Attempting to stop'ora.cssdmonitor' on 'jcsjdb02'CRS-2677: Stop of 'ora.cssdmonitor' on'jcsjdb02' succeededCRS-2673: Attempting to stop 'ora.cssd' on'jcsjdb02'CRS-2677: Stop of 'ora.cssd' on 'jcsjdb02'succeededCRS-2673: Attempting to stop 'ora.gpnpd' on'jcsjdb02'CRS-2677: Stop of 'ora.gpnpd' on 'jcsjdb02'succeededCRS-2673: Attempting to stop 'ora.gipcd' on'jcsjdb02'CRS-2677: Stop of 'ora.gipcd' on 'jcsjdb02'succeededCRS-2673: Attempting to stop 'ora.mdnsd' on'jcsjdb02'CRS-2677: Stop of 'ora.mdnsd' on 'jcsjdb02'succeededInitial cluster configuration failed.See /u01/app/11.2.0/grid/product/db_1/cfgtoollogs/crsconfig/rootcrs_jcsjdb02.logfor details 1./u01/app/11.2.0/grid/product/db_1/cfgtoollogs/crsconfig/rootcrs_jcsjdb02.log2./u01/app/11.2.0/grid/product/db_1/log/jcsjdb02目录里面日志
3. asm disk 信息ls -l命令列出来 # ls -l
\u603b\u7528\u91cf 0
crw-rw----. 1 grid oinstall 10, 58 10\u6708 20 10:03 control
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 16:30 mpathb -> ../dm-5
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathc -> ../dm-0
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathd -> ../dm-2
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathe -> ../dm-3
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathf -> ../dm-1
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 20:38 mpathg -> ../dm-4
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathh -> ../dm-6
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathi -> ../dm-8
lrwxrwxrwx. 1 grid oinstall 8 10\u6708 26 20:38 mpathj -> ../dm-10
lrwxrwxrwx. 1 grid oinstall 8 10\u6708 26 19:50 mpathk -> ../dm-13
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpathl -> ../dm-7
lrwxrwxrwx. 1 grid oinstall 8 10\u6708 26 19:50 mpathm -> ../dm-11
lrwxrwxrwx. 1 grid oinstall 8 10\u6708 26 20:38 mpathn -> ../dm-12
lrwxrwxrwx. 1 grid oinstall 7 10\u6708 26 19:50 mpatho -> ../dm-9
#
# /etc/init.d/oracleasm listdisks
BACKUP_VOL1
BACKUP_VOL2
BACKUP_VOL3
DATA_VOL1
DATA_VOL10
DATA_VOL2
DATA_VOL3
DATA_VOL4
DATA_VOL5
DATA_VOL7
DATA_VOL8
DATA_VOL9
OCR
创建 asm 磁盘,在节点1执行;
# /usr/sbin/oracleasm createdisk OCR mpathb
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL1 mpathb
Device "mpathb" is already labeled for ASM disk "OCR"
# /usr/sbin/oracleasm createdisk DATA_VOL1 mpathc
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL2 mpathd
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL3 mpathe
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL4 mpathf
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL5 mpathg
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL6 mpathh
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL7 mpathi
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL8 mpathj
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL9 mpathk
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk DATA_VOL10mpathl
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk BACKUP_VOL1 mpathm
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk BACKUP_VOL2 mpathn
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm createdisk BACKUP_VOL3 mpatho
Writing disk header: done
Instantiating disk: done
# /usr/sbin/oracleasm listdisks
BACKUP_VOL1
BACKUP_VOL2
BACKUP_VOL3
DATA_VOL1
DATA_VOL10
DATA_VOL2
DATA_VOL3
DATA_VOL4
DATA_VOL5
DATA_VOL6
DATA_VOL7
DATA_VOL8
DATA_VOL9
OCR
在节点二执行扫描,识别 asm 盘
# /usr/sbin/oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
Instantiating disk "OCR"
Instantiating disk "DATA_VOL2"
Instantiating disk "DATA_VOL4"
Instantiating disk "DATA_VOL1"
Instantiating disk "DATA_VOL5"
Instantiating disk "DATA_VOL6"
Instantiating disk "DATA_VOL10"
Instantiating disk "BACKUP_VOL3"
Instantiating disk "DATA_VOL3"
Instantiating disk "BACKUP_VOL1"
Instantiating disk "DATA_VOL8"
Instantiating disk "DATA_VOL9"
Instantiating disk "BACKUP_VOL2"
Instantiating disk "DATA_VOL7"
两个节点分别运行如下脚本,然后贴出来:
multipath -ll xifenfei 发表于 2014-10-26 21:29
两个节点分别运行如下脚本,然后贴出来:
multipath -ll
飞总,那个问题解决了。这个报错没有了。但是又出来一个新的问题。我在新的帖子里发下。
页:
[1]