存储迁移votedisk 处理办法

举报
snowofsummer 发表于 2021/09/07 12:56:02 2021/09/07
【摘要】 1,检查位置crsctl query css votedisk;## STATE File Universal Id File Name Disk group-- ----- ----------------- --------- ---------1. ONLINE 0a2ae97910dd4f27bff10ffbb002089f (ORCL:OCRVOTE1) [OCRVOTE]2. O...

1,检查位置

crsctl query css votedisk;
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 0a2ae97910dd4f27bff10ffbb002089f (ORCL:OCRVOTE1) [OCRVOTE]
2. ONLINE 1b4272879f284f56bf1336e0af88d1b1 (ORCL:OCRVOTE2) [OCRVOTE]
3. ONLINE 04c92b5c1a3c4ff5bf1a8521ea809437 (ORCL:OCRVOTE3) [OCRVOTE]
4. ONLINE 679558b631c54f7dbfcb833d9c8321b1 (ORCL:OCRVOTE4) [OCRVOTE]
5. ONLINE 42a672aed6884f4ebff543cc2d1dcc64 (ORCL:OCRVOTE5) [OCRVOTE]

2,添加磁盘到每个故障组

col name format a15;
col path format a25;
col  failgroup format a20;

select dg.name, d.path, d.failgroup, d.failgroup_type
from v$asm_diskgroup dg, v$asm_disk d
where dg.group_number = d.group_number and dg.name = 'OCRVOTE'
order by dg.name, d.path, d.failgroup;

NAME            PATH                      FAILGROUP            FAILGRO
--------------- ------------------------- -------------------- -------
OCRVOTE         ORCL:OCRVOTE1             FG1                  REGULAR
OCRVOTE         ORCL:OCRVOTE2             FG2                  REGULAR
OCRVOTE         ORCL:OCRVOTE3             FG3                  REGULAR
OCRVOTE         ORCL:OCRVOTE4             FG4                  REGULAR
OCRVOTE         ORCL:OCRVOTE5             FG5                  REGULAR

sqlplus  " / as sysasm"

ALTER DISKGROUP OCRVOTE ADD FAILGROUP FG1 DISK 'ORCL:OCRVOTE101' FAILGROUP FG2 DISK 'ORCL:OCRVOTE102' FAILGROUP FG3 DISK 'ORCL:OCRVOTE103' FAILGROUP FG4 DISK 'ORCL:OCRVOTE104' FAILGROUP FG5 DISK 'ORCL:OCRVOTE105';

3,检查同步状态 通过 gv$asm_operation。确认同步完成。

col name format a15;
col path format a25;
col  failgroup format a20;

select dg.name, d.path, d.failgroup, d.failgroup_type
from v$asm_diskgroup dg, v$asm_disk d
where dg.group_number = d.group_number and dg.name = 'OCRVOTE'
order by dg.name, d.failgroup, d.path;


NAME            PATH                      FAILGROUP            FAILGRO
--------------- ------------------------- -------------------- -------
OCRVOTE         ORCL:OCRVOTE1             FG1                  REGULAR
OCRVOTE         ORCL:OCRVOTE101           FG1                  REGULAR
OCRVOTE         ORCL:OCRVOTE102           FG2                  REGULAR
OCRVOTE         ORCL:OCRVOTE2             FG2                  REGULAR
OCRVOTE         ORCL:OCRVOTE103           FG3                  REGULAR
OCRVOTE         ORCL:OCRVOTE3             FG3                  REGULAR
OCRVOTE         ORCL:OCRVOTE104           FG4                  REGULAR
OCRVOTE         ORCL:OCRVOTE4             FG4                  REGULAR
OCRVOTE         ORCL:OCRVOTE105           FG5                  REGULAR
OCRVOTE         ORCL:OCRVOTE5             FG5                  REGULAR

4,删除旧磁盘

ALTER DISKGROUP OCRVOTE drop disk  
'OCRVOTE1',
'OCRVOTE2',
'OCRVOTE3',
'OCRVOTE4',
'OCRVOTE5';

Diskgroup altered.

5,检查同步状态,并确认已经删除

col name format a15;
col path format a25;
col  failgroup format a20;

select dg.name, d.path, d.failgroup, d.failgroup_type
from v$asm_diskgroup dg, v$asm_disk d
where dg.group_number = d.group_number and dg.name = 'OCRVOTE'
order by dg.name, d.failgroup, d.path;


NAME            PATH                      FAILGROUP            FAILGRO
--------------- ------------------------- -------------------- -------
OCRVOTE         ORCL:OCRVOTE101           FG1                  REGULAR
OCRVOTE         ORCL:OCRVOTE102           FG2                  REGULAR
OCRVOTE         ORCL:OCRVOTE103           FG3                  REGULAR
OCRVOTE         ORCL:OCRVOTE104           FG4                  REGULAR
OCRVOTE         ORCL:OCRVOTE105           FG5                  REGULAR

参考:1558007.1

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。