How to create ASM Diskgroup in silent mode


Below command will give list of all the disks that’s available for use.

[oracle@bunker ~]$ /usr/sbin/oracleasm listdisks
DATA01
DATA02
DATA03
DATA04
FRA01
OCRVOTE01

asmca -silent -creatediskgroup -diskGroupName DATA05 -disk ‘/dev/disk05’
-redundancy External
-compatible.asm=’11.2′
-compatible.rdbms=’11.2′

Disk Group DATA05 created successfully.

now we can go ahead and check it using below command

crsctl stat res -t |grep -A 2 ".dg"

 

 

 

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s