How Does oracle ASM Add a new disk to a disk? oracleasm

Source: Internet
Author: User

How Does oracle ASM Add a new disk to a disk? oracleasm


Applicable platform: AIX hp linux win Solaris

Applicable versions: all databases 10.1.0.2 to12.1.0.1

Applicable to rac and standalone

 

Take the RAC environment as an example: Assume that oracle is an oracle rdbms group, and grid is a gi group;

For ASMLIB users:

 

In the RAC environment, the gi owner executes the following command:

1. #/etc/init. d/oracleasm scandisks # (executed by the root user)

$> 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 be read and written (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. Use kfed to verify whether the disk is a candidate disk;

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

Kfbh. type: 0; 0x002: KFBTYP_INVALIDIf such a result is displayed, the disk is available.

 

 

4. Create a temporary disk group. We mainly use the ASM instance to check that all the disks to be attached are correct. Even if a problem occurs, the original production system will not be affected. Although there are many steps to check, it is annoying, but there is no accident in the production system.

 

Create diskgroup lixora external redundancy disk '/dev/rhdisk *';

 

5. Check whether the created dg has been automatically mounted?

Select state, name from v $ ASM_DISKGROUP;

 

 

6. If there is no mount, try to manually mount

Alter diskgroup test mount;

--- Confirm the status of dg
Select state, name from v $ ASM_DISKGROUP;

 


7. If Step 6 queries lixora successfully (if rac is used, make sure that each ASM instance is successfully mounted)

It indicates that all the asm disks to be added are normal and can be used normally. Then we can add them to the production dg.

----- Uninstall dg (execute this command in ASM instance)

Alter diskgroup test dismount;

 

---- Delete the temporary dg used for testing (execute this command in ASM instance)

Drop diskgroup test;

8. Here we can add the candidate disk to the production dg.

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

 


The Standalone environment is the same. We also recommend that you perform the above test steps.

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.