4.查看操作系统使用的磁盘
操作系统只用了disk0和disk11,其中disk1,disk0为本地磁盘
bash-3.00# lspv
hdisk0 00c71c94516e6053 rootvg active
hdisk1 none 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 00c71c946e2767c5 bkvg active
hdisk12 none None
hdisk13 none None
hdisk14 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
hdisk12 之后的磁盘都可以使用还有disk9没有使用
再次确认22,9磁盘是否使用
bash-3.00# ls -lrt|grep '22, 9'
crw------- 1 root system 22, 9 Jun 08 2011 rhdisk9
brw------- 1 root system 22, 9 Jun 08 2011 hdisk9
确认asmdisk5没有使用
SQL> select t.GROUP_NUMBER,t.OS_MB,t.TOTAL_MB,t.FREE_MB,t.PATH from v$asm_disk t where t.path like '%asmdisk5%';
no rows selected
5.创建设备文件并赋权
bash-3.00# mknod /dev/asmdisk5 c 22 9
bash-3.00# chown grid:asmdba /dev/asmdisk5
bash-3.00# chmod 660 /dev/asmdisk5
查看结果
bash-3.00# ls -lrt|grep '22, 9'
crw------- 1 root system 22, 9 Jun 08 2011 rhdisk9
brw------- 1 root system 22, 9 Jun 08 2011 hdisk9
crw-rw---- 1 grid asmdba 22, 9 Jun 06 16:13 asmdisk5
6.把磁盘加入到disk group中
这次要加到DATADG里面
登陆到grid用户
bash-3.00$ sqlplus "/as sysasm"
SQL*Plus: Release 11.2.0.2.0 Production on Wed Jun 6 16:21:57 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Automatic Storage Management option
SQL> alter diskgroup DATADG add disk '/dev/asmdisk5';
Diskgroup altered.
查看各磁盘使用情况
select group_number, name, TOTAL_MB, FREE_MB from V$asm_disk_stat;
