How Oracle ASM adds a new disk to disk

Source: Internet
Author: User


Applicable platform: AIX HP Linux win Solaris

Applicable version: all databases 10.1.0.2 to12.1.0.1

Suitable for RAC and standalone

Take the RAC environment as an example: Assume that Oracle is an Oracle RDBMS group and that the grid is a GI group;

For asmlib users:

RAC Environment GI owner executes the following command

1, #/etc/init.d/oracleasm Scandisks # (root user execution)

$> ID
$>/etc/init.d/oracleasm Listdisks
$>/etc/init.d/oracleasm Querydisk < specific disk path >

All nodes must be executed;

2, at the operating system level check whether the disk can read and write (each node) (Oracle user or grid user)

# RAW Device

$> DD if=/dev/raw/raw1 of=/dev/null count=100 bs=8192


# Asmlib Device

$> DD if=/dev/oracleasm/disks/proda07 of=/dev/null count=100 bs=8192

# RAW Device
$> DD if=/dev/rdsk/c1t3d0s6 of=/dev/null count=100 bs=8192

3, apply kfed Verify disk is a candidate disk;

Kfed read <raw/character or block partition >|grep kfbh.type

kfbh.type:0; 0x002:kfbtyp_invalid If you see such a result, it indicates that the disk is available.

4, create a temporary disk group, mainly with ASM instance to test all the disks to be added no problem, even if problems, will not affect the original production system. Although the steps to be checked are more and more annoying, but for the production system can not be any accident.

CREATE diskgroup lixora EXTERNAL redundancy DISK '/dev/rhdisk* ';

5. Check if the DG you just created has been automatically mount?

SELECT state, NAME from V$asm_diskgroup;

6. If there is no mount, try the manual mount

ALTER DiskGroup TEST MOUNT;

---confirm DG Status
SELECT state, NAME from V$asm_diskgroup;


7. If STEP6 query Lixora successfully mount (if RAC, ensure that each ASM instance succeeds mount)

It means that the ASM disks we need to add are normal and can be used normally. Then we can add them to the DG in production.

-----Uninstalling the DG (execute this command in ASM instance)

Alter DiskGroup test dismount;

----Delete the test with temporary DG (execute this command in ASM instance)

DROP DiskGroup TEST;

8, to here can be the candidate plate added to the production of DG.

ALTER diskgroup <my production diskgroup> ADD DISK ' <your candidate disk> ';


Standalone environment is the same, it is also recommended to perform the above test steps.

How Oracle ASM adds a new disk to disk

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.