728x90
반응형
해당 작업은 11g 구성시 ASM를 구성하지 않고 rawdevice로 전환 할때 사용한 스크립트 이다.
ASM이 초창기라 불안해서 지원하지 않는 rawdevice로 구성을 하게되었지만 지금까지 잘 사용중이다 ^^
# ocr 상태를 확인한다 ASM의 +DATA가 등록되어 있는걸 확인 할수 있다.
TEST[/]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2596
Available space (kbytes) : 259524
ID : 1924751724
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
#추가로 rawdeive 경로를 추가로 등록한다.
TEST[/]# ocrconfig -add /dev/vgpprac/rph_imsi_raw1_1g
TEST[/]# ocrconfig -add /dev/vgpprac/rph_imsi_raw2_2g
TEST[/]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2596
Available space (kbytes) : 259524
ID : 1924751724
Device/File Name : +DATA
Device/File integrity check succeeded
Device/File Name : /dev/vgpprac/rph_imsi_raw1_1g
Device/File integrity check succeeded
Device/File Name : /dev/vgpprac/rph_imsi_raw2_2g
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
#ASM 경로를 삭제 하면 끝!!
TEST[/]# ocrconfig -delete +DATA
TEST[/]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2596
Available space (kbytes) : 259524
ID : 1924751724
Device/File Name : /dev/vgpprac/rph_imsi_raw1_1g
Device/File integrity check succeeded
Device/File Name : /dev/vgpprac/rph_imsi_raw2_2g
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
#votedisk 경로를 확인한다 ==>[DATA]
TEST[/]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 12816ade0b304f22bf38e4adc5eb4502 (/dev/vgpprac/rph_imsi_raw10_2g) [DATA]
Located 1 voting disk(s).
TEST[/]#
#votedisk 경로를 replace하여 변경한다
TEST[/]# crsctl replace votedisk /dev/vgpprac/rph_imsi_raw3_1g
Now formatting voting disk: /dev/vgpprac/rph_imsi_raw3_1g.
CRS-4256: Updating the profile
Successful addition of voting disk 3710d9e915454f07bf7d9cd8f39a0adc.
Successful deletion of voting disk 12816ade0b304f22bf38e4adc5eb4502.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
TEST[/]#
#votedisk 2개더 추가한다
TEST[/]# crsctl add css votedisk /dev/vgpprac/rph_imsi_raw4_1g
Now formatting voting disk: /dev/vgpprac/rph_imsi_raw4_1g.
CRS-4603: Successful addition of voting disk /dev/vgpprac/rph_imsi_raw4_1g.
TEST[/]#
TEST[/]# crsctl add css votedisk /dev/vgpprac/rph_imsi_raw5_1g
Now formatting voting disk: /dev/vgpprac/rph_imsi_raw5_1g.
CRS-4603: Successful addition of voting disk /dev/vgpprac/rph_imsi_raw5_1g.
TEST[/]#
#votedisk 확인 하면 총 3개 변경 또는 추가된것을 확인 할수 있다
TEST[/]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 3710d9e915454f07bf7d9cd8f39a0adc (/dev/vgpprac/rph_imsi_raw3_1g) []
2. ONLINE 17fb05d5f32b4f5ebf3389293a09228b (/dev/vgpprac/rph_imsi_raw4_1g) []
3. ONLINE 7642b44fb7a94fa6bfa071e1432be9b0 (/dev/vgpprac/rph_imsi_raw5_1g) []
Located 3 voting disk(s).
TEST[/]# dd if=/dev/zero of=/dev/vgpprac/rph_imsi_raw10_2g bs=8k
I/O error
256001+0 records in
256000+1 records out
728x90
반응형
'DBMS > Oracle' 카테고리의 다른 글
Oracle 11g Vip 변경하기 (0) | 2022.07.20 |
---|---|
Oracle LMS 절차 및 참고 사항 (0) | 2022.07.19 |
Oracle 자동 통계 수집 중지 하기 (0) | 2022.07.15 |
Oracle 이기종 DBLINK 제약사항 (0) | 2022.07.15 |
Oracle 10g to 11g hotbackup 본으로 upgrade 하기 (0) | 2022.07.14 |