查询当然votedisk保存的位置/dev/asm-disk5
[grid@mhxy01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 6a61a75139914f0abf7591475f2c6502 (/dev/asm-disk5) []
ocr 集群注册文件位置在+OCR磁盘组
[grid@mhxy01 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
Version : 3
Total space (kbytes) : 262120
Used space (kbytes) : 3316
Available space (kbytes) : 258804
ID : 2065586847
Device/File Name : +OCR
现在,需要把votedisk迁移到+OCR磁盘组中,/dev/asm-disk5 磁盘不属于OCR磁盘组。
SQL> select name,path,state from v$asm_disk;
NAME PATH STATE
------------------------------ ---------------------------------------- --------
/dev/asm-disk5 NORMAL
/dev/asm-disk1 NORMAL
DATA_0000 /dev/asm-disk3 NORMAL
ARCH_0000 /dev/asm-disk2 NORMAL
DATA_0001 /dev/asm-disk6 NORMAL
OCR_0001 /dev/asm-disk4 NORMAL
在执行replace 时,需要指定+OCR,不能直接写RAW路径,否则会提示错误 ,比如 迁移到/dev/asm-disk4
[grid@mhxy01 ~]$ crsctl replace votedisk /dev/asm-disk4
CRS-4263: This operation is not allowed
CRS-4000: Command Replace failed, or completed with errors.
正确的迁移方式,如下
[grid@mhxy01 ~]$ crsctl replace votedisk +OCR
CRS-4256: Updating the profile
Successful addition of voting disk 6f2c0d26181a4fd4bf50d837edfdbffa.
Successful deletion of voting disk 6a61a75139914f0abf7591475f2c6502.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
[grid@mhxy01 ~]$ crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 6f2c0d26181a4fd4bf50d837edfdbffa (/dev/asm-disk4) [OCR]
Located 1 voting disk(s).
对比原来的信息 votedisk信息 可以发现其中的区别, (/dev/asm-disk4) [OCR] / (/dev/asm-disk5) []
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27039319/viewspace-2134968/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/27039319/viewspace-2134968/