Mir Sayeed Hassan – Oracle Blog

Oracle DBA – Tips & Techniques | Learn with real-time examples

Essential ASMCMD and CRSCTL Commands as Key Expertise for Oracle DBAs

Posted by Mir Sayeed Hassan on April 9th, 2026

Essential ASMCMD and CRSCTL Commands as Key Expertise for Oracle DBAs

Overview:

ASMCMD is a command-line utility in Oracle Automatic Storage Management (ASM) used by Oracle DBAs to manage ASM disk groups and files. It provides a Linux-like interface to perform navigation, monitor storage, and execute file operations.

List All ASM Disk Groups in Oracle Using ASMCMD

ASMCMD> lsdg 

Include Dismounted ASM Disk Groups in Oracle ASMCMD

ASMCMD>lsdg —discovery

List ASM Disk Groups Across All Cluster Nodes Using ASMCMD

ASMCMD>lsdg -g —discovery 

List ASM Disks in Oracle Using ASMCMD

ASMCMD> lsdsk -k 

List Disks in ASM Disk Group ORADATA with Total and Free Space Using ASMCMD

ASMCMD> lsdsk -k -G ORADATA 

List ASM Disks in Disk Group ORADATA with Group and Disk Numbers Using ASMCMD

ASMCMD> lsdsk -p -G ORADATA 

List ASM Disk Creation Dates Using ASMCMD

ASMCMD> lsdsk -t -G ORADATA 

List Candidate ASM Disks Only Using ASMCMD”

ASMCMD> lsdsk --candidate -k 

List Member ASM Disks in Oracle ASM

ASMCMD> lsdsk --candidate -p 

List View Attributes of All ASM Disk Groups in Oracle ASM

ASMCMD> lsattr -lm

List Attributes of Specific ASM Disk Group ARCH in Oracle ASM

ASMCMD> lsattr -lm -G ARCH

Group_Name Name Value RO Sys ARCH access_control.enabled FALSE N Y ARCH access_control.umask 066 N Y ARCH au_size 1048576 Y Y ARCH cell.smart_scan_capable FALSE N N 

Filter ASM Disk Group Attributes by Specific Pattern in Oracle ASM

ASMCMD> lsattr -lm %au_size% 

Group_Name Name Value RO Sys ORADATA au_size 1048576 YY BMI au_size 1048576 YY CRMG au_size 1048576 YY ARCH au_size 1048576 YY FSMS au_size 1048576 YY

Unmount an ASM Disk Group in Oracle ASM

Note: Unmounts an ASM disk group to safely make it unavailable for database access and maintenance operations.

Unmount All ASM Disk Groups in Oracle ASM

ASMCMD> umount -a

Unmount Specific ASM Disk Group ARCH in Oracle ASM

ASMCMD> umount ARCH

Mount an ASM Disk Group in Oracle ASM

Mounting an ASM disk group makes it available for database access, enabling Oracle to read and write files stored within the disk group.

Mount All ASM Disk Groups on the Local Node in Oracle ASM

ASMCMD> mount -a 

Mount a Specific ASM Disk Group on the Local Node in Oracle ASM

ASMCMD> mount ARCH 

View ASM Template Information for a Disk Group in Oracle ASM

ASMCMD> lstmpl -l -G ARCH 

0 
Group_Name  Group_Num
MirrReg
ARCH 1 COLD
Name
ARCHIVELOG
ASMPARAMETERFILE
AUDIT_SPILLFILES
AUTOBACKUP
AUTOLOGIN_KEY_STORE
BACKUPSET
Stripe  Sys  Redund  PriReg
COARSE  Y    UNPROT  COLD
COARSE  Y    UNPROT  COLD

Check Flex ASM Configuration Status in Oracle ASM

ASMCMD> showclustermode
ASM cluster : Flex mode disabled 

Check Cluster State in Oracle Grid Infrastructure

ASMCMD> showclusterstate 
Normal 

Check Oracle ASM Version in Oracle Grid Infrastructure

ASMCMD> showversion
ASM version : 12.1.0.2.0 

Retrieve ASM SPFILE Location in Oracle ASM

ASMCMD> spget +MGMT/DBATRN-cluster/ASMPARAMETERFILE/registry.253.899644763 

Backup ASM SPFILE in Oracle ASM

— copy backup of spfile to a specific location 

ASMCMD> spbackup +MGMT/DBATRN- 
cluster/ASMPARAMETERFILE/registry.253.899644763 /home/oracle/backup/spfile/asmspfile.ora 

Identify Clients Connected to an ASM Disk Group in Oracle ASM

ASMCMD> lsct ARCH

DB_Name     Status Disk     Group
DBATRN      CONNECTED       ARCH 

Rebalance an ASM Disk Group in Oracle ASM

Rebalance ASM Disk Group ARCH with ASM_POWER_LIMIT Set to 8 in Oracle ASM”

ASMCMD> rebal --power 8 ARCH 
Rebalance  on progress. 

Monitor ASM Disk Group Operation Progress in Oracle ASM

ASMCMD> lsop
Group_Name Pass State Power EST_WORK EST_RATE EST_TIME 
ARCH COMPACT RUN 8 0 16831 0 
ARCH        REBALANCE  DONE   8      0         0

Retrieve ASM Diskstring Configuration in Oracle ASM

ASMCMD> dsget parameter:ORCL:* profile:ORCL:* 
Software_Version Compatible_version Instance_Name 

List ASM Users and Password Details in Oracle ASM

ASMCMD> lspwusr
Username sysdba sysoper sysasm 
SYS   TRUE    TRUE   TRUE
ASMSNMP   TRUE   FALSE  FALSE
12.1.0.2.0 
12.1.0.2.0  DBACLASS1

List Open Files in an ASM Disk Group in Oracle ASM

ASMCMD>lsof -G ARCH

List Open Files Associated with a Database in Oracle ASM”

— Open files of a database( DBATRN)

 ASMCMD>lsof --dbname DBACLASS 

Check ASM Filter Driver Status in Oracle ASM

ASMCMD> afd_state
ASMCMD-9526: The AFD state is 'NOT INSTALLED' and filtering is 'DEFAULT' on host 'mshdbora1' 

List ASM Filter Driver Disks in Oracle ASM

ASMCMD> afd_lsdsk

Retrieve ASM Filter Driver Diskstring Configuration in Oracle ASM

ASMCMD> afd_dsget
AFD discovery string

Retrieve Database Password File in Oracle Database

ASMCMD> pwget --dbuniquename DBATRN +ORADATA/DBATRN/PASSWORD/pwdbatrn.256.8453412312

Retrieve ASM Instance Password File in Oracle ASM”

ASMCMD> pwget --asm +MGMT/orapwASM

CRSCTL commands 

CRSCTL is a command-line utility in Oracle Grid Infrastructure used by DBAs to manage, monitor, and control cluster resources and services, ensuring efficient operation and high availability of Oracle RAC environments.

Start and Stop Oracle Clusterware (CRS) Services as Root User

$GRID_HOME/bin/crsctl stop crs
$GRID_HOME/bin/crsctl start crs

Enable or Disable Automatic Restart of Oracle Clusterware (CRS)

$GRID_HOME/bin/crsctl disable crs
$GRID_HOME/bin/crsctl enable crs

Retrieve Oracle Cluster Name in Oracle Grid Infrastructure

$GRID_HOME/bin/cemutlo -n
or
$GRID_HOME/bin/olsnodes -c

Check Oracle Grid Infrastructure Version

SYNATX – $GRID_HOME/bin/crsctl query crs softwareversion <hostname) 
$GRID_HOME/bin/crsctl query crs softwareversion host-dbaclass1 

Check Oracle Clusterware Component Status in Oracle Grid Infrastructure

$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl check crs
$GRID_HOME/bin/crsctl check cssd
$GRID_HOME/bin/crsctl check crsd
$GRID_HOME/bin/crsctl check evmd

Locate Voting Disk Configuration in Oracle Clusterware

$GRID_HOME/bin/crsctl query css votedisk 

Locate Oracle Cluster Registry (OCR) Configuration in Oracle Clusterware

$GRID_HOME/bin/ocrcheck

Retrieve Cluster Interconnect Details in Oracle Grid Infrastructure

$GRID_HOME/bin/oifcfg getif

app-ipmp0 172.16.5.191 global public
oradbpredbib0 172.16.4.173 global cluster_interconnect oradbpredbib1 172.16.4.0 global cluster_interconnect 

select NAME,IP_ADDRESS from v$cluster_interconnects; 

NAME IP_ADDRESS
--------------- ----------------
oradbpredbib0 172.16.4.191
oradbpredbib1 172.16.3.1

Check CRS Status on the Local Node in Oracle Clusterware

crsctl check crs
CRS-4638: Oracle High Availability Services is online CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online CRS-4533: Event Manager is online 

Check Status of All CRS Resources in Oracle Cluster-ware

$GRID_HOME/bin/crsctl stat res -t
$GRID_HOME/bin/crsctl stat res -t -init

Check Active Cluster Version in Oracle Grid Infrastructure

crsctl query crs activeversion
Oracle Clusterware active version on the cluster is [12.1.0.2.0] 

Start and Stop Oracle High Availability Services (HAS) in Oracle Grid Infrastructure

crsctl stop has
crsctl start has

Check CRS Status on Remote Nodes in Oracle Clusterware

crsctl check cluster
crsctl check cluster -all

Retrieve OCR Backup Details in Oracle Clusterware

 ocrconfig -showbackup

Check ASM Deployment Type (Standard or Flex) in Oracle ASM

crsctl get cluster mode status
Cluster is running in "standard" mode

Check Oracle Clusterware Configuration in Oracle Grid Infrastructure

crsctl config crs

Check Disk Timeout (DISKTIMEOUT) from Node to Voting Disk in Oracle Clusterware

crsctl get css disktimeout
CRS-4678: Successful get disktimeout 200 for Cluster Synchronization Services. 

Check Interconnect Network Latency (MISSCOUNT) in Oracle Clusterware

crsctl get css misscount
CRS-4678: Successful get misscount 30 for Cluster Synchronization Services. 

Retrieve Cluster Configuration Details in Oracle Grid Infrastructure

$ crsctl get cluster configuration 

Name                : dbaclass-cluster
Configuration       : Cluster
Class               : Standalone Cluster
Type                : flex
The cluster is not extended. 
--------------------------------------------
MEMBER CLUSTER INFORMATION
Name       Version        GUID     Deployed
Deconfigured

CRSCTL Commands for Standalone Oracle Grid Infrastructure Management

crsctl check has
crsctl config has
crsctl disable has
crsctl enable has
crsctl query has releaseversion
crsctl query has softwareversion
crsctl start has
crsctl stop has

Identify Node Roles in Oracle Clusterware

crsctl get node role status -all
Node 'dbhost1' active role is 'hub'
Node 'dbhost1' active role is ‘hub'

Move Voting Disk to Another Disk Group in Oracle Clusterware

crsctl replace votedisk +OCRVD
Successful addition of voting disk 2e4ded6cee504fc8bf078b080fb7be6f. Successful addition of voting disk 8e87826024e24fffbf5add65c011fc66. Successful addition of voting disk e1ba56dedff84fa8bf5605e0302fc81e. 
Successful deletion of voting disk 2b7ce864c44d4fecbf60885a188290af. Successfully replaced voting disk group with +OCRVD.
CRS-4266: Voting file(s) successfully replaced 

Add a New Voting Disk in Oracle Clusterware

crsctl add css votedisk

Delete a Voting Disk in Oracle Clusterware

crsctl delete css votedisk

====Hence tested and verified in our test env=====