SRVCTL command for Diskgroup:
To add the diskgroup
There is no command like srvctl add for Oracle ASM disk groups. Disk groups are automatically added to the Oracle Restart configuration when they are first mounted.
But if in case you have removed a disk group from the Oracle Restart configuration and want to add it back you can connect to the Oracle ASM instance with SQL*Plus and use an ALTER DISKGROUP ... MOUNT command.
To remove the diskgroup
Command: srvctl remove diskgroup -g diskgroup_name [-n node_list] [-f] Example: srvctl remove diskgroup -g DiskGroup1 -f
To start the diskgroup
Command: srvctl start diskgroup -g diskgroup_name [-n node_list] Example: srvctl start diskgroup -g diskgroup1 -n lnxrac1, lnxrac2
To stop the diskgroup
Command: srvctl stop diskgroup -g diskgroup_name [-n node_list] [-f] Example: srvctl stop diskgroup -g ASM_DG02 Example: srvctl stop diskgroup -g diskgroup2 -n lnxrac1,lnxrac2 -f
To check the status of the diskgroup
Command: srvctl status diskgroup -g diskgroup_name [-n node_list] [-a] Example: srvctl status diskgroup -g diskgroup2 -n lnxrac1,lnxrac2 -a
To enable the diskgroup
Command: srvctl enable diskgroup -g diskgroup_name [-n node_list] Example: srvctl enable diskgroup -g diskgroup1 -n lnxrac1,lnxrac2
To disable the diskgroup
Command: srvctl disable diskgroup -g diskgroup_name [-n node_list] Example: srvctl disable diskgroup -g diskgroup3 -n lnxrac1, lnxrac2
Follow Me!!!