Updating Resources Starting Up Resources Shutting Down Resources Resource Switchover

Using Oracle Cluster Ready Services 13-15

13.4.2 Updating Resources

You can update resources created with ascrsctl using the update command. Depending on the resource type, you can update the resource profile by specifying the appropriate parameter through the update command line. You can perform updates only when the resource is in the offline state. For example, to update the virtual IP resource created in the last section with a new IP address and a different interface, use the following command: ascrsctl update -n myvip -type vip -ip 192.168.1.20 -if eth1

13.4.3 Starting Up Resources

When a resource is started, it is put under the control of CRS and its runtime status is monitored continuously by CRS. If the resource depends on other resources, starting this resource automatically starts the dependent resources. Refer to Oracle Clusterware documentation for information about the role of resource placement policy during resource start up. The ascrsctl start command maps to the CRS command. For example, to start the virtual IP resource, use the following command: ascrsctl start -n ora.myvip.cfcvip

13.4.4 Shutting Down Resources

When a resource is stopped, it is brought down and put in offline state and CRS stops monitoring its runtime status. If the resource depends on other resources that are in online status, the dependent resources are not stopped unless you confirm the prompt or -np option is specified. Refer to Oracle Clusterware documentation for more information about the implications of resource dependency during resource stop. The ascrsctl stop command maps to CRS command crs_stop. For example, to stop the virtual IP resource, run the following command: ascrsctl stop -n ora.myvip.cfcvip

13.4.5 Resource Switchover

Resource switchover is a process of shutting down the resource on the node on which it is running and restarting it on another node. The new node, if not specified, is determined by CRS, based on the placement policy. If the resource to be switched depends on other resources, or there are resources that are online and depend on it, this resource must be switched with -np flag. Note: If you want to change the set of nodes hosting a particular resource, you must stop all dependent resources and then update the cluster nodes for each resource with the same node set and ordering. To find out related resources, run ascrsctl status command for this resource. Note: If a resource depends on more than one resource, while starting that resource, be sure that the resources, if online, are targeted on the same node. 13-16 Oracle Fusion Middleware High Availability Guide To switch over a resource to another available node in the cluster, run the following command: ascrsctl switch -n ora.myvip.cfcvip

13.4.6 Deleting Resources