[ORACLE] Method for adding or deleting disk members to an ASM disk, asmdisk

Source: Internet
Author: User

[ORACLE] Method for adding or deleting disk members to an ASM disk, asmdisk
**************************************** ********************************* *** Original article: blog.csdn.net/clark_xu Xu changliang's column**************************************** ********************************

Step 1: Disable the database shutdown immediate

Step 2: Check the mounting diskgroup status of the dg.

SQL> show parameter diskgroup

Alter diskgroup dgdata mount;

Step 3: view the path of the disk to be deleted

Select name, total_mb/1024, free_mb/1024, path from v $ asm_disk;

DGDATA_0003 556 1347.5625/dev/raw/raw9

Step 4: view the usage of the disk to be deleted:

Select name, total_mb/1024, free_mb/1024 from v $ asm_disk_stat

DGDATA_0003 1556 1347.5625

Step 5: Check bare device ing, multi-path ing, and memory ing

/Bin/raw/dev/raw/raw9/dev/mapper/oradata4

Multi-path ing

Oradata4 (36005076307ffc3ff0000000000000103) dm-11 IBM, 2107900

Storage ing

Fb_vol_4 0103 1556 FB_P3P3 s7 s8

Step 6: alter diskgroup dgdata drop disk 'dgdata _ 100' rebalance power 5 wait;

Step 7: restrip the monitoring data to the operation view.

Select * from v $ asm_operation

Step 8: confirm the deletion

SQL> select path, group_number, disk_number, mount_status, header_status, mode_status, state from v $ asm_disk;

 

Adding or deleting a disk is similar:

Alter diskgroup dgdata add disk '/dev/raw/raw9 ';

The monitoring data is restriped to the operation view.

Select * from v $ asm_operation

 

In addition

Manually create a disk group dgfra:

Create diskgroup dgfra external redundancy disk '/dev/raw/raw8 ';

**************************************** ********************************* *** Original article: blog.csdn.net/clark_xu Xu changliang's column**************************************** ********************************

 

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.