[root@rac2 bin]# ./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.crsd' on 'rac2'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'rac2'
CRS-2673: Attempting to stop 'ora.OCR.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.registry.acfs' on 'rac2'
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'rac2'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'rac2'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.rac2.vip' on 'rac2'
CRS-2677: Stop of 'ora.rac2.vip' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.rac2.vip' on 'rac1'
CRS-2677: Stop of 'ora.registry.acfs' on 'rac2' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'rac2' succeeded
CRS-2677: Stop of 'ora.FRA.dg' on 'rac2' succeeded
CRS-2676: Start of 'ora.rac2.vip' on 'rac1' succeeded
CRS-2677: Stop of 'ora.OCR.dg' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'rac2'
CRS-2677: Stop of 'ora.ons' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'rac2'
CRS-2677: Stop of 'ora.net1.network' on 'rac2' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'rac2' has completed
CRS-2677: Stop of 'ora.crsd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.drivers.acfs' on 'rac2'
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac2'
CRS-2673: Attempting to stop 'ora.evmd' on 'rac2'
CRS-2673: Attempting to stop 'ora.asm' on 'rac2'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac2'
CRS-2677: Stop of 'ora.evmd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'rac2' succeeded
CRS-2677: Stop of 'ora.drivers.acfs' on 'rac2' succeeded
CRS-2677: Stop of 'ora.asm' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'rac2'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac2'
CRS-2677: Stop of 'ora.cssd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'rac2'
CRS-2677: Stop of 'ora.crf' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac2'
CRS-2677: Stop of 'ora.gipcd' on 'rac2' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac2'
CRS-2677: Stop of 'ora.gpnpd' on 'rac2' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'rac2' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@rac2 rules.d]# cd /dev/raw
[root@rac2 raw]# ls
raw1 raw2 raw3 raw4 raw5 raw6 raw7 rawctl
[root@rac2 raw]# ll
total 0
crw-rw---- 1 grid asmadmin 162, 1 Apr 25 06:26 raw1
crw-rw---- 1 grid asmadmin 162, 2 Apr 25 06:26 raw2
crw-rw---- 1 grid asmadmin 162, 3 Apr 25 06:26 raw3
crw-rw---- 1 grid asmadmin 162, 4 Apr 25 06:26 raw4
crw-rw---- 1 grid asmadmin 162, 5 Apr 25 06:26 raw5
crw-rw---- 1 grid asmadmin 162, 6 Apr 25 06:25 raw6
crw-rw---- 1 grid asmadmin 162, 7 Apr 25 06:25 raw7
crw-rw---- 1 root disk 162, 0 Apr 25 03:22 rawctl
修改rules文件
[root@rac2 raw]# vi /etc/udev/rules.d/99-asm.rules
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB86af4f10-c999a5b4", RUN+="/bin/raw /dev/raw/raw7 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB5f23406b-7a9482e3", RUN+="/bin/raw /dev/raw/raw6 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB7bacd639-fafa6750", RUN+="/bin/raw /dev/raw/raw5 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB6c8b8a74-d0598f10", RUN+="/bin/raw /dev/raw/raw4 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VB190aa45b-8dadfafd", RUN+="/bin/raw /dev/raw/raw3 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBe7890e41-01e753b7", RUN+="/bin/raw /dev/raw/raw2 %N"
ACTION=="add",BUS=="scsi", KERNEL=="sd*", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="1ATA_VBOX_HARDDISK_VBe3e77079-7d7e5230", RUN+="/bin/raw /dev/raw/raw1 %N"
KERNEL=="raw1", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw2", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw3", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw4", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw5", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw6", OWNER="grid", GROUP="asmadmin", MODE="660"
KERNEL=="raw7", OWNER="grid", GROUP="asmadmin", MODE="660
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/udev/rules.d/99-asm.rules" 15L, 1855C written
[root@rac2 raw]# start_udev
Starting udev: [ OK ]
[root@rac2 raw]# ll
total 0
crw-rw---- 1 grid asmadmin 162, 1 Apr 25 06:55 raw1
crw-rw---- 1 grid asmadmin 162, 2 Apr 25 06:55 raw2
crw-rw---- 1 grid asmadmin 162, 3 Apr 25 06:55 raw3
crw-rw---- 1 grid asmadmin 162, 4 Apr 25 06:55 raw4
crw-rw---- 1 grid asmadmin 162, 5 Apr 25 06:55 raw5
crw-rw---- 1 grid asmadmin 162, 6 Apr 25 06:55 raw6
crw-rw---- 1 grid asmadmin 162, 7 Apr 25 06:55 raw7
crw-rw---- 1 root disk 162, 0 Apr 25 06:55 rawctl
[root@rac2 raw]# date
Tue Apr 25 06:55:45 CST 2017
重命名设备
[root@rac2 raw]# mv raw1 disk1
mv raw2 disk2
mv raw3 disk3
[root@rac2 raw]# mv raw2 disk2
[root@rac2 raw]# mv raw3 disk3
[root@rac2 raw]# mv raw4 disk4
[root@rac2 raw]# mv raw5 disk5
[root@rac2 raw]# mv raw6 disk6
[root@rac2 raw]# mv raw7 disk7
[root@rac2 raw]#
[root@rac2 raw]#
[root@rac2 raw]#
[root@rac2 raw]# cd /u01/app/11.2.0/grid/bin/
[root@rac2 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[root@rac2 bin]# ll /dev/raw
total 0
crw-rw---- 1 grid asmadmin 162, 1 Apr 25 06:55 disk1
crw-rw---- 1 grid asmadmin 162, 2 Apr 25 06:55 disk2
crw-rw---- 1 grid asmadmin 162, 3 Apr 25 06:55 disk3
crw-rw---- 1 grid asmadmin 162, 4 Apr 25 06:55 disk4
crw-rw---- 1 grid asmadmin 162, 5 Apr 25 06:55 disk5
crw-rw---- 1 grid asmadmin 162, 6 Apr 25 06:55 disk6
crw-rw---- 1 grid asmadmin 162, 7 Apr 25 06:55 disk7
crw-rw---- 1 root disk 162, 0 Apr 25 06:55 rawctl
[root@rac2 bin]# su - grid
[grid@rac2 ~]$ crsctl stat res -t
CRS-4535: Cannot communicate with Cluster Ready Services
CRS-4000: Command Status failed, or completed with errors.
[grid@rac2 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.FRA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac1
ora.cvu
1 ONLINE ONLINE rac1
ora.oc4j
1 ONLINE ONLINE rac1
ora.orcl.db
1 OFFLINE OFFLINE Instance Shutdown
2 OFFLINE OFFLINE Instance Shutdown
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac1
[grid@rac2 ~]$ cd ..
[grid@rac2 home]$ cd /dev/raw
[grid@rac2 raw]$ ll
total 0
crw-rw---- 1 grid asmadmin 162, 1 Apr 25 06:57 disk1
crw-rw---- 1 grid asmadmin 162, 2 Apr 25 06:57 disk2
crw-rw---- 1 grid asmadmin 162, 3 Apr 25 06:59 disk3
crw-rw---- 1 grid asmadmin 162, 4 Apr 25 06:59 disk4
crw-rw---- 1 grid asmadmin 162, 5 Apr 25 06:59 disk5
crw-rw---- 1 grid asmadmin 162, 6 Apr 25 06:59 disk6
crw-rw---- 1 grid asmadmin 162, 7 Apr 25 06:59 disk7
crw-rw---- 1 root disk 162, 0 Apr 25 06:55 rawctl
[grid@rac2 raw]$ srvctl start database -d orcl
[grid@rac2 raw]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME TARGET STATE SERVER STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.FRA.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.LISTENER.lsnr
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.OCR.dg
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.asm
ONLINE ONLINE rac1 Started
ONLINE ONLINE rac2 Started
ora.gsd
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2
ora.net1.network
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.ons
ONLINE ONLINE rac1
ONLINE ONLINE rac2
ora.registry.acfs
ONLINE ONLINE rac1
ONLINE ONLINE rac2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE rac1
ora.cvu
1 ONLINE ONLINE rac1
ora.oc4j
1 ONLINE ONLINE rac1
ora.orcl.db
1 ONLINE ONLINE rac1 Open
2 ONLINE ONLINE rac2 Open
ora.rac1.vip
1 ONLINE ONLINE rac1
ora.rac2.vip
1 ONLINE ONLINE rac2
ora.scan1.vip
1 ONLINE ONLINE rac1
[grid@rac2 raw]$
[grid@rac2 raw]$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Tue Apr 25 07:02:25 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL> show parameter disk
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
asm_diskgroups string DATA, FRA
asm_diskstring string
asm_diskstring为空的情况下修改ASM设备名称,且不修改asm_diskstring
最新推荐文章于 2021-04-09 04:56:33 发布