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...

Complete Guide to PostgreSQL 18 Source Installation with Performance Optimization

PostgreSQL 18 brings powerful new features and performance improvements that make it an excellent choice for modern database workloads. In this comprehensive guide, I'll walk you through installing PostgreSQL 18 from source code while implementing a strategic disk layout that maximizes performance. Why Install from Source? While package managers offer convenience, building PostgreSQL from source gives you complete control over configuration and optimization options. This flexibility allows you to tailor the database precisely to your hardware and workload requirements. Prerequisites Before we begin, ensure you're working with a RHEL, CentOS, or Fedora-based system. We'll be installing several development tools and libraries needed for compilation. Installation Process 1. Download PostgreSQL 18 Source Code First, grab the latest PostgreSQL 18 source tarball: wget https://ftp.postgresql.org/pub/source/v18.0/postgresql-18.0.tar.gz 2. Install Required Dependencies Install all n...

⚡ Automating Oracle 19c Database Patching on Windows Server with PowerShell

Applying Oracle patches on Windows often feels repetitive and error-prone — stopping services, updating OPatch, applying patches, running datapatch , and restarting services. To save time ⏱ and reduce mistakes ⚠, I created a PowerShell automation script that performs the patching process end-to-end πŸš€. πŸ”Ή Why Automate Oracle Patching? ⏱ Save time by automating repetitive steps ⚙ Avoid manual errors during patching πŸ“œ Maintain logs for auditing and troubleshooting πŸ›‘ Ensure consistent, reliable patching πŸ”Ή Full PowerShell Script # --- CONFIGURATION --- $oracleHome = "c:\users\administrator\downloads\v982656-01" # Change if this is not your actual Oracle Home! $patchDir = "C:\Users\Administrator\Downloads\p37962957_190000_MSWIN-x86-64\37962957" #update the Patchfile directory $opatchDir = "$oracleHome\OPatch" $opatchZip = "C:\Users\Administrator\Downloads\p6880880_190000_MSWIN-x86-64.zip" #Based on your setup update Opatch di...