Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

Useful Asmcmd Commands

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 03 Sep, 2023
  • 0 Comments
  • 1 Min Read

Useful Asmcmd Commands

This blog contains the list of useful asmcmd commands which are important in your day to day operations.

  1. List all diskgroups:
1
2
3
4
5
6
7
8
9
10
ASMCMD> lsdg
 
 
-- Include dismounted diskgroups:
 
ASMCMD> lsdg --discovery
 
-- List diskgroups across all nodes of cluster:
 
ASMCMD> lsdg -g --discovery
2. List asm disks:
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
a.List all asm disks
 
ASMCMD> lsdsk -k
 
 b. List disks of a diskgroup(CDATA) with free and total MB
ASMCMD> lsdsk -k -G CDATA
 
 c. List disks of a diskgroup(CDATA) with group and disk number
ASMCMD> lsdsk -p -G CDATA
 
 d. List disks with disk creation date
ASMCMD> lsdsk -t -G CDATA
 
 e. List candidiate disks only
 
ASMCMD>  lsdsk --candidate -k
 
 f. List member disks only
ASMCMD>  lsdsk --candidate -p
 3. Get attributes of ASM diskgroups:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
a. List attribute of all diskgroups:
 
ASMCMD> lsattr -lm
 
b. List attribute of specific diskgroup(DMARCH)
 
ASMCMD> lsattr -lm -G  DMARCH
Group_Name  Name                     Value       RO  Sys
DMARCH      access_control.enabled   FALSE       N   Y
DMARCH      access_control.umask     066         N   Y
DMARCH      au_size                  1048576     Y   Y
DMARCH      cell.smart_scan_capable  FALSE       N   N
 
 
c. List attributes with specific pattern
 
ASMCMD> lsattr -lm %au_size%

 4. Unmount diskgroup:

unmount command works only on the local node. So if you want to unmount the diskgroup from all nodes of cluster, then run this command from all the nodes.  
1
2
3
4
5
a. unmount all diskgroups
ASMCMD> umount -a
 
b. unmount specific diskgroup(ARCH)
ASMCMD> umount ARCH
5. Mount diskgroup:

Mount command works only on the local node. So if you want to Mount the diskgroup from all nodes of cluster, then run this command from all the nodes.

1
2
3
4
5
a. mount all diskgroups on local node
ASMCMD> mount -a
 
b. mount a specific diskgroup on local node
ASMCMD> mount ARCH
6. Rebalance a diskgroup:
1
2
3
4
5
6
7
8
a. here asm_power_limit is 8 and diskgroup is ARCH
 
ASMCMD> rebal --power 8 ARCH
Rebal on progress.
 
b. Monitor progress
 
ASMCMD> lsop
7. Get password file of database
1
ASMCMD> pwget --dbuniquename PRIM

8. Get password file of asm :

1
ASMCMD> pwget --asm
9. Get asm template info of a diskgroup:
1
ASMCMD> lstmpl -l -G ARCH
10. Check whether flex asm is enabled or not :
 
1
ASMCMD> showclustermode