OCR 디스크 Raw Device로 변경
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) : 2664 Available space (kbytes) : 259456 ID : 934357259 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) : 2664 Available space (kbytes) : 259456 ID : 934357259 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
Vote 디스크 Raw Device로 변경
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 3b8bcee73b224f67bfbd573f9b6d644d (/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 a4c3ccb126b64f4dbf3d89ae84d163a2. Successful deletion of voting disk 3b8bcee73b224f67bfbd573f9b6d644d. 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 a4c3ccb126b64f4dbf3d89ae84d163a2 (/dev/raw/raw3) [] 2. ONLINE 31693ea2d7774f83bfd26b71d8173078 (/dev/raw/raw4) [] 3. ONLINE 7527b0194b634f7abfbc3c3501a8a6f4 (/dev/raw/raw5) [] Located 3 voting disk(s).
ASM 디스크 그룹 삭제 및 서비스 제거
srvctl stop diskgroup -g data srvctl stop asm srvctl remove diskgroup -g data srvctl disable asm srvctl remove asm
[root@rac1 ~]# srvctl stop diskgroup -g data [root@rac1 ~]# srvctl stop asm [root@rac1 ~]# srvctl remove diskgroup -g data [root@rac1 ~]# srvctl disable asm [root@rac1 ~]# srvctl remove asm
ASM 에서 회수한 영역 초기화
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, 3.98851 s, 269 MB/s
ASM 서비스 종료 확인
crsctl stat res -t
[root@rac1 ~]# crsctl stat res -t -------------------------------------------------------------------------------- NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.LISTENER.lsnr ONLINE ONLINE rac1 ONLINE ONLINE rac2 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 -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac2 ora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE rac1 ora.LISTENER_SCAN3.lsnr 1 ONLINE ONLINE rac1 ora.cvu 1 ONLINE ONLINE rac1 ora.oc4j 1 ONLINE ONLINE rac1 ora.rac1.vip 1 ONLINE ONLINE rac1 ora.rac2.vip 1 ONLINE ONLINE rac2 ora.scan1.vip 1 ONLINE ONLINE rac2 ora.scan2.vip 1 ONLINE ONLINE rac1 ora.scan3.vip 1 ONLINE ONLINE rac1
{}