重庆思庄Oracle、Redhat认证学习论坛
标题: ASM添加votedisk [打印本页]
作者: 王亮 时间: 2020-6-14 12:29
标题: ASM添加votedisk
1、 查看votedisk磁盘信息
[grid@orcl1 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1.ONLINE 8c11fb1c89764fd0bfbc39ddb21e3343(/dev/asmdisk2) [OCR]
Located 1 voting disk(s).
2、 查看当前OCR磁盘信息
[grid@orcl1 ~]$ ocrcheck
Status of Oracle Cluster Registry is asfollows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 2916
Available space (kbytes) : 259204
ID : 65217394
Device/File Name : +OCR
Device/Fileintegrity check succeeded
Device/Filenot configured
Device/Filenot configured
Device/Filenot configured
Device/Filenot configured
Cluster registry integrity check succeeded
Logical corruption check bypassed due to non-privileged user
3、 查看作ASM用的磁盘
[grid@orcl1 ~]$ ll /dev/asm*
lrwxrwxrwx 1 root root 4 Feb 18 21:54/dev/asmdisk1 -> sdb1
lrwxrwxrwx 1 root root 4 Feb 19 02:04/dev/asmdisk2 -> sdc1
[grid@orcl1 ~]$
4、 设置DISPLAY变量
[grid@orcl1 ~]$export DISPLAY=192.168.133.1:0.0
[grid@orcl1 ~]$export LANG=C
5、 使用asmca添加ASM磁盘组
[grid@orcl1 ~]$asmca