--重载udev
# udevadm control --reload-rules
# udevadm trigger --type=devices
# ls -lrt /dev/asm*
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_vote0003 -> dm-5
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_vote0002 -> dm-8
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_data0003 -> dm-3
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_data0002 -> dm-6
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_data0001 -> dm-7
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_arch0001 -> dm-2
lrwxrwxrwx 1 root root 4 May 15 14:57 /dev/asm_vote0001 -> dm-4
lrwxrwxrwx 1 root root 5 May 15 14:57 /dev/asm_arch0002 -> dm-11 <<<<新增磁盘
lrwxrwxrwx 1 root root 5 May 15 14:57 /dev/asm_data0004 -> dm-10 <<<<新增磁盘
四、扩容ASM磁盘组
4.1 当前asm磁盘情况查询
# su - grid
Last login: Wed May 15 14:37:22 CST 2024 on pts/1
$ sqlplus / as sysasm
SQL*Plus: Release 11.2.0.4.0 Production on Wed May 15 15:01:24 2024
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Real Application Clusters and Automatic Storage Management options
SQL>
col path for a30;
col name for a20;
col mount_status format a10
col header_status format a10
col mode_status format a10
set linesize 400;
select a.group_number, a.name,b.mount_status,b.header_status,b.mode_status, b.path,b.total_mb/1024 gb,b.name
from v$asm_diskgroup a, v$asm_disk b
where a.group_number(+) = b.group_number;
GROUP_NUMBER NAME MOUNT_STAT HEADER_STA MODE_STATU PATH GB NAME
------------ -------------------- ---------- ---------- ---------- ------------------------------ ---------- --------------------
CLOSED CANDIDATE ONLINE /dev/asm_data0004 0
CLOSED CANDIDATE ONLINE /dev/asm_arch0002 0
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0001 10 ORACRS_0000
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0002 10 ORACRS_0001
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0003 10 ORACRS_0002
2 ORAARCH CACHED MEMBER ONLINE /dev/asm_arch0001 600 ORAARCH_0000
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0002 2048 ORADATA_0001
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0001 2048 ORADATA_0000
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0003 2048 ORADATA_0002
9 rows selected.
4.2 扩容磁盘
alter diskgroup ORAARCH add disk '/dev/asm_arch0002' rebalance power 11;
alter diskgroup ORADATA add disk '/dev/asm_data0004' rebalance power 11;
SQL> alter diskgroup ORAARCH add disk '/dev/asm_arch0002' rebalance power 11;
Diskgroup altered.
SQL> alter diskgroup ORADATA add disk '/dev/asm_data0004' rebalance power 11;
Diskgroup altered.
SQL> col path for a30;
col name for a20;
col mount_status format a10
col header_status format a10
col mode_status format a10
set linesize 400;
select a.group_number, a.name,b.mount_status,b.header_status,b.mode_status, b.path,b.total_mb/1024 gb,b.name
from v$asm_diskgroupSQL> a, v$asm_disk b
where a.group_number(+) = b.group_number;SQL> SQL> SQL> SQL> SQL> 2 3
GROUP_NUMBER NAME MOUNT_STAT HEADER_STA MODE_STATU PATH GB NAME
------------ -------------------- ---------- ---------- ---------- ------------------------------ ---------- --------------------
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0001 10 ORACRS_0000
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0003 10 ORACRS_0002
1 ORACRS CACHED MEMBER ONLINE /dev/asm_vote0002 10 ORACRS_0001
2 ORAARCH CACHED MEMBER ONLINE /dev/asm_arch0001 600 ORAARCH_0000
2 ORAARCH CACHED MEMBER ONLINE /dev/asm_arch0002 600 ORAARCH_0001
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0004 2048 ORADATA_0003
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0002 2048 ORADATA_0001
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0003 2048 ORADATA_0002
3 ORADATA CACHED MEMBER ONLINE /dev/asm_data0001 2048 ORADATA_0000