My Oracle Support Banner

asmcmd lsdsk is not aware of changes done to asmlib disk by asmlib (Doc ID 741017.1)

Last updated on DECEMBER 21, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.1 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Linux Itanium
Linux x86
Linux x86-64


Changes done by asmlib (addition or deletion of asmlib disk), are not detected by asmcmd lsdsk command.

Why 'asmcmd lsdsk' does not lists an asmlib disk that was previously added via asmlib? Likewise for when an asmlib is deleted, why 'asmcmd lsdsk' still lists the newly deleted asmklib disk? Is this expected behavior and why?

To explain:

1) Example for adding an asmlib disk:

[root@adc1]**/root> /etc/init.d/oracleasm createdisk SDD9 /dev/sdd9
Marking disk "/dev/sdd9" as an ASM disk: [ OK ]

2) Only asmcmd does not show the asmlib disk that was recently created. All other, do show it:

# lsdsk does not find the newly added asmlib disk. Nothing returned:

[oracle@adc1]*+ASMADC1*/home/oracle> asmcmd lsdsk -p|grep -i sdd9

# listsdisks finds the newly added asmlib disk:

[root@adc1]**/root> /etc/init.d/oracleasm listdisks|grep -i SDD9

# asmlib does list the soft link created by asmlib via mknod, for the newly added asmlib disk:

[root@adc1]**/root> ls -ltra /dev/oracleasm/disks/SDD9
brw-rw---- 1 oracle oinstall 8, 57 Sep 10 16:26 /dev/oracleasm/disks/SDD9

# kfod on asm_diskstring also finds the newly added asmlib disk:

[oracle@adc1]*+ASMADC1*/home/oracle> kfod asm_diskstring='ORCL:*' disk=all|grep -i sdd9
34: 2861 Mb ORCL:SDD9

# Even after scandisk is ran, 'asmcmd lsdsk' does not find the newly added asmlib disk:

[root@adc1]**/root> /etc/init.d/oracleasm scandisks
Scanning system for ASM disks: [ OK ]

[oracle@adc1]*+ASMADC1*/home/oracle> asmcmd lsdsk -p|grep -i sdd9

3) Finally f we connect to the ASM instance and force a disk discovery through querying the v$ASM% views, now 'asmcmd lsdsk' finds the newly added disk:

SQL> select path from v$asm_disk where path='ORCL:SDD9';

[oracle@adc1]*+ASMADC1*/home/oracle> asmcmd lsdsk -p|grep -i sdd9


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.