asm存储迁移

举报
snowofsummer 发表于 2021/09/19 09:18:30 2021/09/19
【摘要】 旧磁盘信息:hdisk2 none None hdisk3 none None hdisk4 none ...

旧磁盘信息:

hdisk2          none                                None                        
hdisk3          none                                None                        
hdisk4          none                                None                        
hdisk5          none                                None                        
hdisk6          none                                None                        
hdisk7          none                                None                        
hdisk8          none                                None                        
hdisk9          none                                None                        
hdisk10         none                                None                        
hdisk11         none                                None                        
hdisk12         none                                None                        
hdisk13         none                                None  

新磁盘信息:

hdisk15         none                                None                        
hdisk16         none                                None                        
hdisk17         none                                None                        
hdisk18         none                                None                        
hdisk19         none                                None                        
hdisk20         none                                None                        
hdisk21         none                                None                        
hdisk22         none                                None                        
hdisk23         none                                None                        
hdisk24         none                                None                        
hdisk25         none                                None                        
hdisk26         none                                None        

更改磁盘权限和属性

chown grid:dba rhdisk15
chown grid:dba rhdisk16
chown grid:dba rhdisk17
chown grid:dba rhdisk18
chown grid:dba rhdisk19
chown grid:dba rhdisk20
chown grid:dba rhdisk21
chown grid:dba rhdisk22
chown grid:dba rhdisk23
chown grid:dba rhdisk24
chown grid:dba rhdisk25
chown grid:dba rhdisk26

chmod 660 rhdisk15
chmod 660 rhdisk16
chmod 660 rhdisk17
chmod 660 rhdisk18
chmod 660 rhdisk19
chmod 660 rhdisk20
chmod 660 rhdisk21
chmod 660 rhdisk22
chmod 660 rhdisk23
chmod 660 rhdisk24
chmod 660 rhdisk25
chmod 660 rhdisk26



lsattr -El hdisk15|grep reserve_policy
lsattr -El hdisk16|grep reserve_policy
lsattr -El hdisk17|grep reserve_policy
lsattr -El hdisk18|grep reserve_policy
lsattr -El hdisk19|grep reserve_policy
lsattr -El hdisk20|grep reserve_policy
lsattr -El hdisk21|grep reserve_policy
lsattr -El hdisk22|grep reserve_policy
lsattr -El hdisk23|grep reserve_policy
lsattr -El hdisk24|grep reserve_policy
lsattr -El hdisk25|grep reserve_policy
lsattr -El hdisk26|grep reserve_policy

asm信息检查:

set pagesize 5000;
col name format a15;
col path format a30;
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
order by dg.name, d.path, d.failgroup;


NAME            PATH                           FAILGROUP            FAILGRO
--------------- ------------------------------ -------------------- -------
ARCH            /dev/rhdisk13                  ARCH_0000            REGULAR
DATA            /dev/rhdisk4                   DATA_0000            REGULAR
DATA            /dev/rhdisk5                   DATA_0001            REGULAR
DATA            /dev/rhdisk6                   DATA_0002            REGULAR
DATA            /dev/rhdisk7                   DATA_0003            REGULAR
OCRVOTE         /dev/rhdisk10                  OCRVOTE_0002         REGULAR
OCRVOTE         /dev/rhdisk11                  OCRVOTE_0003         REGULAR
OCRVOTE         /dev/rhdisk12                  OCRVOTE_0004         REGULAR
OCRVOTE         /dev/rhdisk8                   OCRVOTE_0000         REGULAR
OCRVOTE         /dev/rhdisk9                   OCRVOTE_0001         REGULAR
REDO01          /dev/rhdisk2                   REDO01_0000          REGULAR
REDO02          /dev/rhdisk3                   REDO02_0000          REGULAR

asm执行添加磁盘,删除磁盘操作:

##############
alter diskgroup DATA add disk
'/dev/rhdisk15',
'/dev/rhdisk16',
'/dev/rhdisk17',
'/dev/rhdisk18';
 ALTER DISKGROUP DATA drop disk
'DATA_0000',
'DATA_0001',
'DATA_0002',
'DATA_0003';

alter diskgroup data  rebalance power 8;

##############
alter diskgroup ARCH add disk
'/dev/rhdisk19';
 ALTER DISKGROUP ARCH drop disk
'ARCH_0000';
alter diskgroup ARCH  rebalance power 8;

##############
alter diskgroup REDO01 add disk
'/dev/rhdisk20';
 ALTER DISKGROUP REDO01 drop disk
'REDO01_0000';

alter diskgroup REDO02 add disk
'/dev/rhdisk21';
 ALTER DISKGROUP REDO02 drop disk
'REDO02_0000';
alter diskgroup REDO01  rebalance power 8;
alter diskgroup REDO02  rebalance power 8;

##################
alter diskgroup OCRVOTE add disk
'/dev/rhdisk22',
'/dev/rhdisk23',
'/dev/rhdisk24',
'/dev/rhdisk25',
'/dev/rhdisk26';

 ALTER DISKGROUP OCRVOTE drop disk
'OCRVOTE_0000',
'OCRVOTE_0001',
'OCRVOTE_0002',
'OCRVOTE_0003',
'OCRVOTE_0004';
alter diskgroup OCRVOTE  rebalance power 10;

同步完成检查磁盘信息:

NAME            PATH                           FAILGROUP            FAILGRO
--------------- ------------------------------ -------------------- -------
ARCH            /dev/rhdisk19                  ARCH_0001            REGULAR
DATA            /dev/rhdisk15                  DATA_0008            REGULAR
DATA            /dev/rhdisk16                  DATA_0009            REGULAR
DATA            /dev/rhdisk17                  DATA_0010            REGULAR
DATA            /dev/rhdisk18                  DATA_0011            REGULAR
OCRVOTE         /dev/rhdisk22                  OCRVOTE_0005         REGULAR
OCRVOTE         /dev/rhdisk23                  OCRVOTE_0006         REGULAR
OCRVOTE         /dev/rhdisk24                  OCRVOTE_0007         REGULAR
OCRVOTE         /dev/rhdisk25                  OCRVOTE_0008         REGULAR
OCRVOTE         /dev/rhdisk26                  OCRVOTE_0009         REGULAR
REDO01          /dev/rhdisk20                  REDO01_0001          REGULAR
REDO02          /dev/rhdisk21                  REDO02_0001          REGULAR

#存储替换完成。

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

评论(0

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

全部回复

上滑加载中

设置昵称

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

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

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