Sun Cluster Data Service for Oracle RAC Guide for Solaris OS

Registering and Configuring Storage Resources for Oracle Files

Storage resources provide fault monitoring and automatic fault recovery for global device groups and file systems.

If you are using global device groups or shared file systems for Oracle files, configure storage resources to manage the availability of the storage on which the Oracle software depends.

Configure storage resources for the following types of global device groups:

Configure storage resources for the following types of shared file systems:

Tools for Registering and Configuring Storage Resources for Oracle Files

Sun Cluster provides the following tools for registering and configuring storage resources for Oracle files:

The clsetup utility and Sun Cluster Manager each provide a wizard for configuring storage resources for Oracle files. The wizards reduce the possibility of configuration errors that might result from command syntax errors or omissions. These wizards also ensure that all required resources are created and that all required dependencies between resources are set.

ProcedureHow to Register and Configure Storage Resources for Oracle Files by Using clsetup

This procedure provides the long forms of the Sun Cluster maintenance commands. Most commands also have short forms. Except for the forms of the command names, the commands are identical. For a list of the commands and their short forms, see Appendix A, Sun Cluster Object-Oriented Commands, in Sun Cluster Data Services Planning and Administration Guide for Solaris OS.

Perform this procedure from only one node of the cluster.

Before You Begin

Ensure that the following prerequisites are met:

Ensure that you have the following information:

  1. On one node of the cluster, become superuser.

  2. Start the clsetup utility.


    # clsetup
    

    The clsetup main menu is displayed.

  3. Type the number that corresponds to the option for data services and press Return.

    The Data Services menu is displayed.

  4. Type the number that corresponds to the option for configuring Sun Cluster Support for Oracle RAC and press Return.

    The clsetup utility displays information about Sun Cluster Support for Oracle RAC.

  5. Press Return to continue.

    The clsetup utility prompts you to select whether you are performing the initial configuration of Sun Cluster Support for Oracle RAC or administering an existing configuration.

  6. Type the number that corresponds to the option for performing the initial configuration of Sun Cluster Support for Oracle RAC and press Return.

    The clsetup utility displays a list of components of Oracle RAC to configure.

  7. Type the number that corresponds to the option for storage resources for Oracle files and press Return.

    The clsetup utility displays the list of prerequisites for performing this task.

  8. Verify that the prerequisites are met, and press Return.

    The response of the clsetup utility depends on how the RAC framework resource group was configured.

    • By using the clsetup wizard or the Sun Cluster Manager wizard. The clsetup utility displays a list of the resources for scalable device groups that are configured on the cluster. If no suitable resources exist, this list is empty.

    • By using the scsetup utility or Sun Cluster maintenance commands. The clsetup utility displays a list of storage management schemes for Oracle files.

  9. If you are prompted to select storage management schemes for Oracle files, select the schemes.

    If you are prompted for resources for scalable device groups, omit this step.

    1. Type the numbers that correspond to the storage management schemes that you are using for Oracle files and press Return.

    2. To confirm your selection of storage management schemes, type d and press Return.

      The clsetup utility displays a list of the resources for scalable device groups that are configured on the cluster. If no suitable resources exist, this list is empty.

  10. If no suitable resources exist, or if no resource exists for a device group that you are using, add a resource to the list.

    If resources exist for all the device groups that you are using, omit this step.

    For each resource that you are adding, perform the following steps:

    1. Type c and press Return.

      The clsetup utility displays a list of the scalable device groups that are configured on the cluster.

    2. Type a comma-separated or space-separated list of numbers that correspond to the device groups that you are using for Oracle files and press Return.

    3. To confirm your selection of device groups, type d and press Return.

      The clsetup utility returns you to the list of the resources for scalable device groups that are configured on the cluster. The resource that you are creating is added to the list.

  11. If a suitable existing resource that you intend to use is not listed, type r to refresh the list.

  12. When the list contains resources for all the device groups that you are using, type the numbers that correspond to the resources that you require.

    You can select existing resources, resources that are not yet created, or a combination of existing resources and new resources. If you select more than one existing resource, the selected resources must be in the same resource group.

  13. To confirm your selection of resources for device groups, type d and press Return.

    The clsetup utility displays a list of the resources for shared file-system mount points that are configured on the cluster. If no suitable resources exist, this list is empty.

  14. If no suitable resources exist, or if no resource exists for a file-system mount point that you are using, add a resource to the list.

    If resources exist for all the file-system mount points that you are using, omit this step.

    For each resource that you are adding, perform the following steps:

    1. Type c and press Return.

      The clsetup utility displays a list of the shared file systems that are configured on the cluster.

    2. Type a comma-separated or space-separated list of numbers that correspond to the file systems that you are using for Oracle files and press Return.

    3. To confirm your selection of file systems, type d and press Return.

      The clsetup utility returns you to the list of the resources for file-system mount points that are configured on the cluster. The resource that you are creating is added to the list.

  15. If a suitable existing resource that you intend to use is not listed, type r to refresh the list.

  16. When the list contains resources for all the file-system mount points that you are using, type the numbers that correspond to the resources that you require.

    You can select existing resources, resources that are not yet created, or a combination of existing resources and new resources. If you select more than one existing resource, the selected resources must be in the same resource group.

  17. To confirm your selection of resources for file-system mount points, type d and press Return.

    The clsetup utility displays the names of the Sun Cluster objects that the utility will create or add to your configuration.

  18. If you need to modify a Sun Cluster object that the utility will create, modify the object as follows:

    1. Type the number that corresponds to the Sun Cluster object that you are modifying and press Return.

      The clsetup utility displays a list of properties that are set for the object.

    2. Modify each property that you are changing as follows:

      1. Type the number that corresponds to the property that you are changing and press Return.

        The clsetup utility prompts you for the new value.

      2. At the prompt, type the new value and press Return.

        The clsetup utility returns you to the list of properties that are set for the object.

    3. When you have modified all the properties that you need to change, type d.

      The clsetup utility returns you to the list of the names of the Sun Cluster objects that the utility will create or add to your configuration.

  19. When you have modified all the Sun Cluster objects that you need to change, type d.

    The clsetup utility displays information about the RAC framework resource group for which storage resources will be configured.

  20. To create the configuration, type c and Press Return.

    The clsetup utility displays a progress message to indicate that the utility is running commands to create the configuration. When configuration is complete, the clsetup utility displays the commands that the utility ran to create the configuration.

  21. Press Return to continue.

    The clsetup utility returns you to the list of options for configuring Sun Cluster Support for Oracle RAC.

  22. (Optional) Type q and press Return repeatedly until you quit the clsetup utility.

    If you prefer, you can leave the clsetup utility running while you perform other required tasks before using the utility again. If you choose to quit clsetup, the utility recognizes your existing RAC framework resource group when you restart the utility.

  23. Determine if the resource groups that the wizard created are online.


    # clresourcegroup status
    
  24. If a resource group that the wizard created is not online, bring the resource group online.

    For each resource group that you are bringing online, type the following command:


    # clresourcegroup online -emM rac-storage-rg
    
    rac-storage-rg

    Specifies the name of the resource group that you are bringing online.

Resource Configuration

The following table lists the default resource configuration that the clsetup utility creates when you complete this task.

Resource Type, Resource Name, and Resource Group 

Dependencies 

Description 

Resource type: SUNW.ScalDeviceGroup

Resource name: scaldg-name-rs, where dg-name is the name of the device group that the resource represents

Resource group: scaldg-rg

Strong dependency on the resource in the RAC framework resource group for the volume manager that is associated with the device group: either the Solaris Volume Manager for Sun Cluster resource or the VxVM resource. 

Scalable device-group resource. One resource is created for each scalable device group that you are using for Oracle files. 

Resource type: SUNW.qfs

Resource name: qfs-mp-dir-rs, where mp-dir is the mount point of the file system, with / replaced by

Resource group: qfsmds-rg

Strong dependency on the scalable device-group resource, if any. 

If you are using Sun StorEdge QFS without a volume manager, this resource does not depend on any other resources. 

Resource for the Sun StorEdge QFS metadata server. One resource is created for each Sun StorEdge QFS shared file system that you are using for Oracle files. 

Resource type: SUNW.ScalMountPoint

Resource name: scal-mp-dir-rs, where mp-dir is the mount point of the file system, with / replaced by

Resource group: scalmnt-rg

Strong dependency on the resource for the Sun StorEdge QFS metadata server, if any. 

Offline-restart dependency on the scalable device-group resource, if any. 

If you are using a file system on a Network Appliance NAS device without a volume manager, this resource does not depend on any other resources. 

Scalable file-system mount point resource. One resource is created for each shared file system that you are using for Oracle files. 

Next Steps

Go to Chapter 3, Enabling Oracle RAC to Run in a Cluster.