正德厚生,臻于至善

ASM扩容之udev

fdisk -l|egrep 'sdax|sday|sdaz|sdba'

blkid|egrep 'sdax|sday|sdaz|sdba'

准备:格式化磁盘
fdisk /dev/sdax
fdisk /dev/sday
fdisk /dev/sdaz
fdisk /dev/sdba

第一步:修改udev -- 双节点修改
cp /etc/udev/rules.d/99-Oracle-asmdevices.rules /etc/udev/rules.d/99-Oracle-asmdevices.rules.$(date +%F)
vim /etc/udev/rules.d/99-Oracle-asmdevices.rules
KERNEL=="sdax1", NAME="asm_arch3", OWNER="oracrs", GROUP="dba", MODE="0660"
KERNEL=="sday1", NAME="asm_arch4", OWNER="oracrs", GROUP="dba", MODE="0660"
KERNEL=="sdaz1", NAME="asm_data43", OWNER="oracrs", GROUP="dba", MODE="0660"
KERNEL=="sdba1", NAME="asm_data44", OWNER="oracrs", GROUP="dba", MODE="0660"
第二步:重新加载配置文件 -- 双节点执行
udevadm control --reload-rules
第三步: -- 双节点执行
start_udev
第四步: -- 2节点执行
partprobe /dev/sdax --此步骤可以忽略 如果/dev/asm未出现再执行
partprobe /dev/sday --此步骤可以忽略 如果/dev/asm未出现再执行
partprobe /dev/sdaz --此步骤可以忽略 如果/dev/asm未出现再执行
partprobe /dev/sdba --此步骤可以忽略 如果/dev/asm未出现再执行
第五步: 图形右键挂载

alter diskgroup ARCH add disk '/dev/asm_arch3';
alter diskgroup ARCH add disk '/dev/asm_arch4';
alter diskgroup SYPRODDATA add disk '/dev/asm_data43';
alter diskgroup SYPRODDATA add disk '/dev/asm_data44';

alter diskgroup ARCH mount;
alter diskgroup SYPRODDATA mount;

set lines 200 pages 50000
col name for a30
col path for a60
select group_number,disk_number,name,total_mb/1024 total_G,path,mode_status,repair_timer from v$asm_disk order by group_number,disk_number;

select group_number,name,type,total_mb, free_mb,state from v$asm_diskgroup_stat;
select group_number,name,type,total_mb, free_mb,state from v$asm_diskgroup;
赞(0) 打赏
未经允许不得转载:徐万新之路 » ASM扩容之udev

评论 抢沙发

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫

微信扫一扫

登录

找回密码

注册