Skip to main content

Adding Disk to ASM Disk Group

 Adding a Disk to existing ASM disk group:


Before proceeding with the below steps, capture the ASM current utilization details by using the below query.

SELECT NAME, TOTAL_MB/1024 total_gb, FREE_MB/1024 free_gb, ROUND((1- (FREE_MB / TOTAL_MB))*100, 2)  "percentage used" FROM v$asm_diskgroup order by 4 desc
/

NAME                       TOTAL_GB    FREE_GB       percentage used
------------------------------ ---------- ---------- ---------------
DATA                          8388.75781   146.347656        98.26
INDX                          4144.38281   78.4140625        98.11
OCR                            24.9414063   10.640625          57.34
REDO                         24.9414063   22.578125          9.48
OCRMIRROR            24.9414063   23.9101563        4.13
FRA                            299.429688    291.511719       2.64


Step 1: Check whether any asm operation is running in the background:

SQL> SELECT GROUP_NUMBER, PASS, STATE FROM V$ASM_OPERATION;

no rows selected

Step 2: Check the new disk allocated status , new disk will show as candidate.

set lines 999;
col diskgroup for a15
col diskname for a15
col path for a35
select a.name DiskGroup,b.name DiskName, b.total_mb, (b.total_mb-b.free_mb) Used_MB, b.free_mb,b.path,b.header_status
from v$asm_disk b, v$asm_diskgroup a
where a.group_number (+) =b.group_number
order by b.group_number,b.name;

DISKGROUP  DISKNAME      TOTAL_MB  USED_MB    FREE_MB PATH                                HEADER_STATU
--------------- -------------- ---------- ---------- ---------- ----------------------------------- ------------
                                                               0               0              0                   /dev/rdsk/idx23                     CANDIDATE
DATA            DATA_0000           204760     201268       3492                    /dev/rdsk/data1                     MEMBER
DATA            DATA_0001           102128     100388       1740                    /dev/rdsk/data2                     MEMBER
DATA            DATA_0002           204528     201016       3512                    /dev/rdsk/data3                     MEMBER
DATA            DATA_0003           204528     201024       3504                    /dev/rdsk/data4                     MEMBER
DATA            DATA_0004           204528     201036       3492                    /dev/rdsk/data5                     MEMBER
DATA            DATA_0005           204528     201020       3508                    /dev/rdsk/data6                     MEMBER
DATA            DATA_0006           204528     201032       3496                    /dev/rdsk/data7                     MEMBER
DATA            DATA_0007           204528     201040       3488                    /dev/rdsk/data8                     MEMBER
DATA            DATA_0008           204528     201028       3500                    /dev/rdsk/data9                     MEMBER
DATA            DATA_0009           204528     201016       3512                    /dev/rdsk/data10                   MEMBER

Step 3: Collect the disk path details from the above step in which the header status shows as candidate.

SQL> alter diskgroup INDX add disk '/dev/rdsk/idx23';

Step 4: Check the Rebalance Status

Monitor the rebalance operation to ensure it completes successfully, its completed once the below query returns no values.

SQL> SELECT * FROM V$ASM_OPERATION;

no rows selected

Step 5: Validate the ASM size post adding the disk:

Once this is done again check the asm current utilization details.

SELECT NAME, TOTAL_MB/1024 total_gb, FREE_MB/1024 free_gb, ROUND((1- (FREE_MB / TOTAL_MB))*100, 2)  "percentage used" FROM v$asm_diskgroup order by 4 desc
/


NAME                        TOTAL_GB    FREE_GB percentage used
------------------------------ ---------- ---------- ---------------
DATA                          8388.75781   146.347656         98.26
INDX                          4244.11719   178.136719          95.8
OCR                            24.9414063   10.640625           57.34
REDO                         24.9414063   22.578125           9.48
OCRMIRROR            24.9414063   23.9101563         4.13
FRA                            299.429688    291.242188        2.73



Comments

  1. Thank you for providing such a comprehensive and insightful explanation of adding disk to existing ASM. Your blog post was extremely helpful in resolving production issue.

    ReplyDelete

Post a Comment

Popular posts from this blog

๐Ÿš€ Automating Oracle Database Patching with Ansible: A Complete Guide

Oracle database patching has long been the bane of DBAs everywhere. It's a critical task that requires precision, expertise, and often results in extended maintenance windows. What if I told you that you could automate this entire process, reducing both risk and downtime while ensuring consistency across your Oracle estate? ๐Ÿ’ก In this comprehensive guide, I'll walk you through a production-ready Ansible playbook that completely automates Oracle patch application using OPatch. Whether you're managing a single Oracle instance or hundreds of databases across your enterprise, this solution will transform your patch management strategy! ๐ŸŽฏ ๐Ÿ”ฅ The Challenge: Why Oracle Patching is Complex Before diving into the solution, let's understand why Oracle patching is so challenging: ๐Ÿ”— Multiple dependencies : OPatch versions, Oracle Home configurations, running processes ⚠️ Risk of corruption : Incorrect patch application can render databases unusable ⏰ Downtime requirements : Da...

๐ŸณOracle 19c Database Deployment with Docker

Oracle 19c Database Deployment with Docker ๐Ÿณ Oracle 19c Database Deployment with Docker Welcome to this comprehensive guide on deploying, configuring, and managing Oracle 19c Database using Docker containers. This blog will walk you through the entire process from setup to production best practices with practical code examples. Docker provides an excellent way to run Oracle databases in isolated, portable containers, making it easy to deploy and manage Oracle 19c instances for development, testing, and production environments. This approach offers numerous benefits: ๐Ÿ”’ Isolation : Run Oracle in a containerized environment without affecting your host system ๐Ÿšš Portability : Easily move your database between different environments ๐Ÿ”„ Reproducibility : Quickly spin up identical database instances ⚡ Resource Efficiency : Use Docker's resource management capabilities to control CPU, memory, and stor...

Mastering Oracle RAC with CRSCTL commands

Mastering Oracle Clusterware Administration: Essential Commands & Best Practices Oracle Clusterware is a key component for managing cluster environments, ensuring high availability and resource management for Oracle databases. Below are essential commands for managing Oracle Clusterware effectively. What is crsctl? crsctl (Cluster Ready Services Control) is a command-line utility provided by Oracle to manage Oracle Clusterware. It allows administrators to start, stop, check, and configure various aspects of cluster services. With crsctl , DBAs can control cluster resources, manage voting disks, check the status of Oracle High Availability Services, and ensure the proper functioning of Oracle RAC environments. Starting and Stopping Oracle Clusterware On Local Node Stop Clusterware: crsctl stop cluster Start Clusterware: crsctl start cluster On RAC Standalone/Oracle Restart Stop Cluster: crsctl stop has Start Cluster: crsctl start has On All Nodes or All Hub Nodes Start Clusterware:...