1. OCR 영역 이관

root 유저로 실행
ocrconfig -add /dev/raw/raw1
ocrconfig -add /dev/raw/raw2
ocrconfig -delete +DATA
ocrcheck
[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          3
	 Total space (kbytes)     :     262120
	 Used space (kbytes)      :       2592
	 Available space (kbytes) :     259528
	 ID                       : 1638877609
	 Device/File Name         :      +DATA
                                    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 succeeded

[root@rac1 ~]# ocrconfig -add /dev/raw/raw1

[root@rac1 ~]# ocrconfig -add /dev/raw/raw2

[root@rac1 ~]# ocrconfig -delete +DATA

[root@rac1 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          3
	 Total space (kbytes)     :     262120
	 Used space (kbytes)      :       2592
	 Available space (kbytes) :     259528
	 ID                       : 1638877609
	 Device/File Name         : /dev/raw/raw1
                                    Device/File integrity check succeeded
	 Device/File Name         : /dev/raw/raw2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

	 Cluster registry integrity check succeeded

	 Logical corruption check succeeded
[root@rac2 ~]# ocrcheck
Status of Oracle Cluster Registry is as follows :
	 Version                  :          3
	 Total space (kbytes)     :     262120
	 Used space (kbytes)      :       2592
	 Available space (kbytes) :     259528
	 ID                       : 1638877609
	 Device/File Name         : /dev/raw/raw1
                                    Device/File integrity check succeeded
	 Device/File Name         : /dev/raw/raw2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

	 Cluster registry integrity check succeeded

	 Logical corruption check succeeded


2. Vote 영역 이관

root 유저로 실행
crsctl replace votedisk /dev/raw/raw3
crsctl add css votedisk /dev/raw/raw4
crsctl add css votedisk /dev/raw/raw5
crsctl query css votedisk
[root@rac1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   7d91b543779a4fdebfc8895c7fda9c05 (/dev/raw/raw6) [DATA]
Located 1 voting disk(s).

[root@rac1 ~]# crsctl replace votedisk /dev/raw/raw3
Now formatting voting disk: /dev/raw/raw3.
CRS-4256: Updating the profile
Successful addition of voting disk 6012122d0b004f6dbf3b539e7e5efc8b.
Successful deletion of voting disk 7d91b543779a4fdebfc8895c7fda9c05.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced

[root@rac1 ~]# crsctl add css votedisk /dev/raw/raw4
Now formatting voting disk: /dev/raw/raw4.
CRS-4603: Successful addition of voting disk /dev/raw/raw4.

[root@rac1 ~]# crsctl add css votedisk /dev/raw/raw5
Now formatting voting disk: /dev/raw/raw5.
CRS-4603: Successful addition of voting disk /dev/raw/raw5.

[root@rac1 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   6012122d0b004f6dbf3b539e7e5efc8b (/dev/raw/raw3) []
 2. ONLINE   5f9279ef3b094fcabf100009ee30dd50 (/dev/raw/raw4) []
 3. ONLINE   6f3d260d7afd4fd0bfa50ba5d83a347e (/dev/raw/raw5) []
Located 3 voting disk(s).
[root@rac2 ~]# crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   6012122d0b004f6dbf3b539e7e5efc8b (/dev/raw/raw3) []
 2. ONLINE   5f9279ef3b094fcabf100009ee30dd50 (/dev/raw/raw4) []
 3. ONLINE   6f3d260d7afd4fd0bfa50ba5d83a347e (/dev/raw/raw5) []
Located 3 voting disk(s).


3. ASM 삭제 및 ASM 할당 디스크 초기화

grid 유저로 실행
crsctl stat res -t
srvctl stop diskgroup -g data
srvctl stop asm
srvctl remove diskgroup -g data
srvctl disable asm
srvctl remove asm
[grid@+ASM1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.DATA.dg
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
ora.LISTENER.lsnr
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
ora.asm
               ONLINE  ONLINE       oraw1                    Started
               ONLINE  ONLINE       oraw2                    Started
ora.gsd
               OFFLINE OFFLINE      oraw1
               OFFLINE OFFLINE      oraw2
ora.net1.network
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
ora.ons
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       oraw1
ora.cvu
      1        ONLINE  ONLINE       oraw1
ora.oc4j
      1        ONLINE  ONLINE       oraw1
ora.oraw1.vip
      1        ONLINE  ONLINE       oraw1
ora.oraw2.vip
      1        ONLINE  ONLINE       oraw2
ora.scan1.vip
      1        ONLINE  ONLINE       oraw1

[grid@+ASM1 ~]$ srvctl stop diskgroup -g data

[grid@+ASM1 ~]$ srvctl stop asm

[grid@+ASM1 ~]$ srvctl remove diskgroup -g data

[grid@+ASM1 ~]$ srvctl disable asm

[grid@+ASM1 ~]$ srvctl remove asm

[grid@+ASM1 ~]$ crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
ora.gsd
               OFFLINE OFFLINE      oraw1
               OFFLINE OFFLINE      oraw2
ora.net1.network
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
ora.ons
               ONLINE  ONLINE       oraw1
               ONLINE  ONLINE       oraw2
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.LISTENER_SCAN1.lsnr
      1        ONLINE  ONLINE       oraw1
ora.cvu
      1        ONLINE  ONLINE       oraw1
ora.oc4j
      1        ONLINE  ONLINE       oraw1
ora.oraw1.vip
      1        ONLINE  ONLINE       oraw1
ora.oraw2.vip
      1        ONLINE  ONLINE       oraw2
ora.scan1.vip
      1        ONLINE  ONLINE       oraw1


root 유저로 실행
dd if=/dev/zero of=/dev/raw/raw6 bs=1024k count=1024
[root@rac1 ~]# dd if=/dev/zero of=/dev/raw/raw6 bs=1024k count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB) copied, 11.2279 s, 95.6 MB/s


  • 레이블 없음