asm存储迁移

网友投稿 527 2022-05-28

旧磁盘信息:

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;

同步完成检查磁盘信息:

asm存储迁移

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

#存储替换完成。

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Ubuntu 18.04截屏
下一篇:Redis 服务器命令
相关文章