ITPub博客

首页 > Linux操作系统 > Linux操作系统 > How To Add a New Disk(s) to An Existing Diskgroup on RAC (Best Practices).

How To Add a New Disk(s) to An Existing Diskgroup on RAC (Best Practices).

原创 Linux操作系统 作者:spider0283 时间:2011-09-07 09:35:53 0 删除 编辑
[ID 557348.1]

 修改时间 02-MAY-2011     类型 HOWTO     状态 PUBLISHED 

In this Document
  Goal
  Solution
  References


Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.1.0.6 - Release: 10.1 to 11.1
Information in this document applies to any platform.

Goal

Before you add the disk(s) to your production diskgroup, you can use the next steps to validate whether the candidate disk(s) is/are in good shape and can be accessed from each node (without harm the existing production diskgroups), as follow:

Solution

1) As Oracle OS user, run the next commands on each node (if ASMLIB API is used): 

$> id 
$> /etc/init.d/oracleasm  scandisks 
$> /etc/init.d/oracleasm  listdisks 
$> /etc/init.d/oracleasm  querydisk  

Note: All the disks must be visible from each node. 

2) Confirm the disks are visible (I/O) at OS level (as oracle or grid OS user) from each node: 

$> id 
$> ls -l   
$> dd if= of=/dev/null count=100 bs=8192

Example: 

$> dd if=/dev/raw/raw1 of=/dev/null count=100 bs=8192  # raw device 
$> dd if=/dev/oracleasm/disks/PRODA07 of=/dev/null count=100 bs=8192  # ASMLIB device 
$> dd if=/dev/rdsk/c1t3d0s6 of=/dev/null count=100 bs=8192 # raw device 


3) Verify that kfed can read on the candidate disk(s) at OS level (as oracle or grid OS user) from each node:

$> kfed read 


Example:

$> kfed read /dev/raw/raw1

$> kfed read /dev/oracleasm/disks/PRODA07

$> kfed read /dev/rdsk/c1t3d0s6


 4) Create a new temporary diskgroup:

SQL> CREATE DISKGROUP TEST EXTERNAL REDUNDANCY DISK '';

5) Check if the diskgroup is created and mounted:

SQL> SELECT STATE, NAME FROM V$ASM_DISKGROUP;

6) If so, then manually mount it on the other ASM instance(s):

SQL> ALTER DISKGROUP TEST MOUNT; 
SQL> SELECT STATE, NAME FROM V$ASM_DISKGROUP; 

7) If the previous steps had success and the TEST diskgroup can be successfully mounted (on each ASM instance), then drop the TEST diskgroup as follow:

SQL> alter diskgroup test dismount; --(from all the ASM instances, except from one). 

SQL> DROP DISKGROUP TEST; --(from the ASM instance, which the diskgroup is still mounted). 

8) Then the candidate disk is ready to be added to the desired diskgroup: 

SQL> ALTER DISKGROUP  ADD DISK '';

References

NOTE:1316936.1 - How To Verify If A New Candidate ASM Disk Is Cluster Wide Visible ORA-15075 / ORA-15080
NOTE:288002.1 - OERR: ORA-15075 disk(s) are not visible cluster-wide
ORA-15075

显示相关信息 相关的


产品
  • Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
关键字
ASM

返回页首返回页首

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/38267/viewspace-706790/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2011-03-29

  • 博文量
    194
  • 访问量
    628204