2022. 12. 20. 13:20 오라클
CFS 환경에서 voting 디스크 추가/삭제 테스트 (19c 버전)
- CFS 환경에서 ocr/voting 디스크 추가/삭제 테스트 (19c 버전)
[root@ocfs1:/root]# crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [19.0.0.0.0]
[root@ocfs1:/root]# crsctl query crs softwareversion
Oracle Clusterware version on node [ocfs1] is [19.0.0.0.0]
[root@ocfs1:/root]# crsctl query crs releasepatch
Oracle Clusterware release patch level is [724960844] and the complete list of patches [29401763 29517242 29517247 29585399 ] have been applied on the local node. The release patch string is [19.3.0.0.0].
1) 먼저 voting 테스트
[root@ocfs1:/root]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE ccf411c9c5e24facbf4f82aa5f45bc5b (/vote01/vote01) []
2. ONLINE 9d90852f7ced4f5bbf87312e7c8af744 (/vote02/vote02) []
3. ONLINE 60ff24c4dca64f99bfc397502d4077ce (/vote03/vote03) []
Located 3 voting disk(s).
1. Replace 시도...에러남
[root@ocfs1:/vote01]# crsctl replace votedisk /vote04/vote04
CRS-4263: This operation is not allowed
CRS-4000: Command Replace failed, or completed with errors.
2. 추가
crsctl add css votedisk /vote04/vote04
Now formatting voting disk: /vote03/vote03.
CRS-4603: Successful addition of voting disk /vote03/vote03.
[root@ocfs1:/root]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE ccf411c9c5e24facbf4f82aa5f45bc5b (/vote01/vote01) []
2. ONLINE 9d90852f7ced4f5bbf87312e7c8af744 (/vote02/vote02) []
3. ONLINE 60ff24c4dca64f99bfc397502d4077ce (/vote03/vote03) []
4. ONLINE d54845ca4c3e4f78bf6a0569303b1b41 (/vote04/vote04) []
Located 4 voting disk(s).
-> 추가는 그냥 됨. 미리 touch 로 화일 안 만들어도 자동 생성됨.
3. 삭제
crsctl delete css votedisk /vote04/vote04
CRS-4611: Successful deletion of voting disk /vote04/vote04.
[root@ocfs1:/root]# crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE ccf411c9c5e24facbf4f82aa5f45bc5b (/vote01/vote01) []
2. ONLINE 9d90852f7ced4f5bbf87312e7c8af744 (/vote02/vote02) []
3. ONLINE 60ff24c4dca64f99bfc397502d4077ce (/vote03/vote03) []
Located 3 voting disk(s).
-rw-r----- 1 oracle dba 20972032 Dec 20 13:11 vote04
-> 삭제하면 물리적 화일은 정보만 업데이트 되고 그냥 남아 있음.
2) 다음은 ocr disk 테스트
1. 그냥 add 하면 아래와 같이 에러발생함.
[root@ocfs1:/root]# ocrconfig -add /vote04/ocr04
PROT-30: The Oracle Cluster Registry location to be added is not usable.
PROC-50: The Oracle Cluster Registry location to be added is inaccessible on nodes ocfs1.
2. touch /vote04/ocr04
chown root:dba /vote04/ocr04
[root@ocfs1:/root]# ocrconfig -add /vote04/ocr04
[root@ocfs1:/root]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 491684
Used space (kbytes) : 84036
Available space (kbytes) : 407648
ID : 359905203
Device/File Name : /vote01/ocr01
Device/File integrity check succeeded
Device/File Name : /vote02/ocr02
Device/File integrity check succeeded
Device/File Name : /vote03/ocr03
Device/File integrity check succeeded
Device/File Name : /vote04/ocr04
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
3. delete 및 replace 테스트
- 삭제 진행
[root@ocfs1:/vote04]# ocrconfig -delete /vote04/ocr04
[root@ocfs1:/vote04]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 491684
Used space (kbytes) : 84036
Available space (kbytes) : 407648
ID : 359905203
Device/File Name : /vote01/ocr01
Device/File integrity check succeeded
Device/File Name : /vote02/ocr02
Device/File integrity check succeeded
Device/File Name : /vote03/ocr03
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
- replace 진행
[root@ocfs1:/root]# ocrconfig -replace /vote03/ocr03 -replacement /vote04/ocr04
[root@ocfs1:/root]# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 4
Total space (kbytes) : 491684
Used space (kbytes) : 84036
Available space (kbytes) : 407648
ID : 359905203
Device/File Name : /vote01/ocr01
Device/File integrity check succeeded
Device/File Name : /vote02/ocr02
Device/File integrity check succeeded
Device/File Name : /vote04/ocr04
Device/File integrity check succeeded
Device/File not configured
Device/File not configured
Cluster registry integrity check succeeded
Logical corruption check succeeded
물리적인 화일은 남아있어서 수동으로 삭제 필요
[root@ocfs1:/vote04]# ls -al
total 22480
drwxrwxrwx 3 root root 3896 Dec 20 23:31 .
drwxr-xr-x. 27 oracle dba 4096 Sep 10 2021 ..
drwxr-xr-x 2 root root 3896 Sep 10 2021 lost+found
-rw-r--r-- 1 root dba 503484416 Dec 20 23:31 ocr04
-rw-r----- 1 oracle dba 20972032 Dec 20 13:15 vote04
결론 :
CFS 환경에서 ocr/voting add 작업시에는
1) voting 은 주어진 이름으로 바로 생성되고
2) ocr file 은 touch 로 미리 화일 생성이 되어 있어야 정상 작업이 가능하다
3) replace 도 정상적으로 잘됨.