Grid相关进程
11g
#ps -ef|grep d.bin
root /opt/grid/products/11.2.0/bin/ohasd.bin reboot
grid /opt/grid/products/11.2.0/bin/mdnsd.bin
grid /opt/grid/products/11.2.0/bin/gpnpd.bin
grid /opt/grid/products/11.2.0/bin/gipcd.bin
grid /opt/grid/products/11.2.0/bin/ocssd.bin
root /opt/grid/products/11.2.0/bin/octssd.bin reboot
grid /opt/grid/products/11.2.0/bin/evmd.bin
root /opt/grid/products/11.2.0/bin/crsd.bin reboot
19c
#ps -ef|grep d.bin
root /opt/grid/products/19.3.0/bin/ohasd.bin reboot
grid /opt/grid/products/19.3.0/bin/mdnsd.bin
grid /opt/grid/products/19.3.0/bin/evmd.bin
grid /opt/grid/products/19.3.0/bin/gpnpd.bin
grid /opt/grid/products/19.3.0/bin/gipcd.bin
root /opt/grid/products/19.3.0/bin/osysmond.bin
grid /opt/grid/products/19.3.0/bin/ocssd.bin
root /opt/grid/products/19.3.0/bin/octssd.bin reboot
root /opt/grid/products/19.3.0/bin/crsd.bin reboot
CSSD负责维护集群的节点成员身份。
CRSD负责维护集群的上层资源。
GPnP记录该节点加入集群中所需的最基础的信息。
ohasd -> OLR(Oracle Local Registry)
crsd -> OCR(Oracle Cluster Registry )
OCR
OLR文件中记录的是本地节点的元数据,可以把OLR看做是OCR的本地替身。
OCR中保存的是由集群管理的资源的元数据和Wallet。集群信息保存在OCR,同时记录着集群的信息以及由集群维护的资源信息。
关联文件
#cat /etc/oracle/ocr.loc
ocrconfig_loc=+ocrvote
local_only=FALSE
关联命令
#ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3040
Available space (kbytes) : 259080
ID : 1921360041
Device/File Name : +ocrvote
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
OCR的自动备份
ocrconfig -showbackup auto
Voting File
Voting File 记录的是节点成员身份信息。记录集群的节点以及每个节点的状态,提供集群节点成员身份管理和节点隔离(fencing)功能。
crsctl query css votedisk
OCRVOTE
select a.group_number,b.name,a.failgroup,a.path
from v$asm_disk a,v$asm_diskgroup b
where a.group_number=b.group_number
and a.group_number=1
order by 3;
set linesize 300 pages 999
col path for a65
col disk_group_name for a15
col FAILGROUP for a25
col disk_name for a22
select a.group_number ,b.name as disk_group_name ,a.MOUNT_STATUS ,a.HEADER_STATUS ,a.MODE_STATUS ,a.state,a.REDUNDANCY ,a.NAME as disk_name ,a.FAILGROUP ,a.path from v$asm_disk a,v$asm_diskgroup b
where a.group_number=b.group_number
and a.group_number=1
order by 1,2,6;