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
- srvctl remove diskgroup -g diskgroup_name [-n node_list] [-f]
- srvctl remove diskgroup -g DiskGroup1 -f
To start the diskgroup
- srvctl start diskgroup -g diskgroup_name [-n node_list]
- srvctl start diskgroup -g diskgroup1 -n linuxrac01, linuxrac02
To stop the diskgroup
- srvctl stop diskgroup -g diskgroup_name [-n node_list] [-f]
- srvctl stop diskgroup -g ASM_DG02
- srvctl stop diskgroup -g diskgroup2 -n linuxrac01,linuxrac02 -f
To check the status of the diskgroup
- srvctl status diskgroup -g diskgroup_name [-n node_list] [-a]
- srvctl status diskgroup -g diskgroup2 -n linuxrac01,linuxrac02 -a
To enable the diskgroup
- srvctl enable diskgroup -g diskgroup_name [-n node_list]
- srvctl enable diskgroup -g diskgroup1 -n linuxrac01,linuxrac02
To disable the diskgroup
- srvctl disable diskgroup -g diskgroup_name [-n node_list]
- srvctl disable diskgroup -g diskgroup3 -n linuxrac01, linuxrac02
No comments:
Post a Comment