一、voting disk换盘
注意:voting disk是在crs,rdbms状态正常的情况下进行
1、raw4用于新的voting disk,raw5用于新的ocr disk,注意其权限
# ls -l /dev/raw/raw4
crw-rw---- 1 oracle dba 162, 4 Feb 28 15:22 /dev/raw/raw4
# ls -l /dev/raw/raw5
crw-rw---- 1 oracle dba 162, 5 Feb 28 15:22 /dev/raw/raw5
2、观察目前系统中的voting disk
# crsctl query css votedisk
0. 0 /dev/raw/raw2
located 1 votedisk(s).
3、系统中添加voting disk
# crsctl add css votedisk /dev/raw/raw4
Cluster is not in a ready state for online disk addition
# crsctl add css votedisk /dev/raw/raw4 -force
Now formatting voting disk: /dev/raw/raw4
successful addition of votedisk /dev/raw/raw4.
4、系统中删除voting disk
# crsctl delete css votedisk /dev/raw/raw2
Cluster is not in a ready state for online disk removal
# crsctl delete css votedisk /dev/raw/raw2 -force
successful deletion of votedisk /dev/raw/raw2.
5、可以看到voting disk换盘成功
# crsctl query css votedisk
0. 0 /dev/raw/raw4
located 1 votedisk(s).
二、ocr换盘
ocr换盘关闭crs,以下为简要操作步骤
1、双节点关闭crs
# crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
2、ocr检查
# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 511744
Used space (kbytes) : 3832
Available space (kbytes) : 507912
ID : 1127674663
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
3、导出ocr盘内容
# ocrconfig -export /tmp/ocrfile.dmp
# ls -l /tmp/ocrfile.dmp
-rw-r--r-- 1 root root 85125 Feb 28 15:40 /tmp/ocrfile.dmp
4、修改双节点/etc/oracle/ocr.loc内容,将ocr位置替换为新的ocr盘
# cat /etc/oracle/ocr.loc
ocrconfig_loc=/dev/raw/raw5
local_only=FALSE
5、将ocr内容导入至新盘
# ocrconfig -import /tmp/ocrfile.dmp
6、检查ocr新位置是否生效
# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 511744
Used space (kbytes) : 3832
Available space (kbytes) : 507912
ID : 1884769518
Device/File Name : /dev/raw/raw5
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
注意:voting disk是在crs,rdbms状态正常的情况下进行
1、raw4用于新的voting disk,raw5用于新的ocr disk,注意其权限
# ls -l /dev/raw/raw4
crw-rw---- 1 oracle dba 162, 4 Feb 28 15:22 /dev/raw/raw4
# ls -l /dev/raw/raw5
crw-rw---- 1 oracle dba 162, 5 Feb 28 15:22 /dev/raw/raw5
2、观察目前系统中的voting disk
# crsctl query css votedisk
0. 0 /dev/raw/raw2
located 1 votedisk(s).
3、系统中添加voting disk
# crsctl add css votedisk /dev/raw/raw4
Cluster is not in a ready state for online disk addition
# crsctl add css votedisk /dev/raw/raw4 -force
Now formatting voting disk: /dev/raw/raw4
successful addition of votedisk /dev/raw/raw4.
4、系统中删除voting disk
# crsctl delete css votedisk /dev/raw/raw2
Cluster is not in a ready state for online disk removal
# crsctl delete css votedisk /dev/raw/raw2 -force
successful deletion of votedisk /dev/raw/raw2.
5、可以看到voting disk换盘成功
# crsctl query css votedisk
0. 0 /dev/raw/raw4
located 1 votedisk(s).
二、ocr换盘
ocr换盘关闭crs,以下为简要操作步骤
1、双节点关闭crs
# crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
2、ocr检查
# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 511744
Used space (kbytes) : 3832
Available space (kbytes) : 507912
ID : 1127674663
Device/File Name : /dev/raw/raw1
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded
3、导出ocr盘内容
# ocrconfig -export /tmp/ocrfile.dmp
# ls -l /tmp/ocrfile.dmp
-rw-r--r-- 1 root root 85125 Feb 28 15:40 /tmp/ocrfile.dmp
4、修改双节点/etc/oracle/ocr.loc内容,将ocr位置替换为新的ocr盘
# cat /etc/oracle/ocr.loc
ocrconfig_loc=/dev/raw/raw5
local_only=FALSE
5、将ocr内容导入至新盘
# ocrconfig -import /tmp/ocrfile.dmp
6、检查ocr新位置是否生效
# ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 2
Total space (kbytes) : 511744
Used space (kbytes) : 3832
Available space (kbytes) : 507912
ID : 1884769518
Device/File Name : /dev/raw/raw5
Device/File integrity check succeeded
Device/File not configured
Cluster registry integrity check succeeded