This section discusses error and omissions in the Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS.
In SAP 7.0 and NW2004SR1, when a SAP instance is started, the sapstartsrv process is started by default. The sapstartsrv process is not under the control of Sun Cluster HA for SAP Web Application Server. So, when a SAP instance is stopped or failed over by Sun Cluster HA for SAP Web Application Server, the sapstartsrv process is not stopped.
To avoid starting the sapstartsrv process when a SAP instance is started by Sun Cluster HA for SAP Web Application, you must modify the startsap script. In addition, rename the /etc/rc3.d/S90sapinit file to /etc/rc3.d/xxS90sapinit on all the Sun Cluster nodes.
The Sun Cluster Data Service for SAP Web Application Server supports non-global zones on SPARC and x86 based systems. The following changes should be made to the Sun Cluster Data Service SAP Web Application Server Guide for this support. The following steps can be performed on a cluster that has been configured to run in global zones. If you are installing your cluster to run in non-global zones, a few of these steps might not be necessary as indicated below.
On each zone, ensure that all of the network resources are present in the /etc/hosts file to avoid any failures because of name service lookup.
On each zone, create an entry for the SAP Web Application Server group in the /etc/group file, and add potential users to the group.
On each zone, create an entry for the SAP Web Application Server user ID.
Use the following command to update the /etc/passwd and /etc/shadow files with an entry for the user ID.
# useradd -u uid -g group -d /sap-home sap user |
Create mount point directories in the zones where SAP Web Application Server could potentially run.
Configure the /etc/nsswitch.conf file so that Sun Cluster HA for SAP starts and stops correctly in the event of a switchover or a failover.
On each zone update /etc/services file with all necessary SAP ports obtained from the global zones /etc/services. This step might not be necessary for SAP Web Application Server that is being installed in non-global zones.
On x86 based systems only, execute crle -64 -u -l /sapmnt/SAPSystemName/exe on all local zones that will run SAP.
Use the following procedure to configure a HAStoragePlus resource for non-global zones.
The entries in the /etc/vfstab file for cluster file systems should contain the global keyword in the mount options.
The SAP binaries that will be made highly available using the HAStoragePlus resource should be accessible from the non-global zones.
In non-global zones, file systems that are used by different resources in different resource groups must reside in a single HAStoragePlus resource that resides in a scalable resource group. The nodelist of the scalable HAStoragePlus resource group must be a superset of the nodelists of the application resource groups that have resources which depend on the file systems. These application resources that depend on the file systems must have a strong resource dependency set to the HAStoragePlus resource. In addition, the dependent application resource group must have a strong positive resource group affinity set to the scalable HAStoragePlus resource group.
On any node in the cluster, become superuser or assume a role that provides solaris.cluster.modify RBAC authorization.
Create the scalable resource group with non-global zones that contain the HAStoragePlus resource.
# clresourcegroup create \ -p Maximum_primaries=m\ -p Desired_primaries=n\ [-n node-zone-list] hasp-resource-group |
Specifies the maximum number of active primaries for the resource group.
Specifies the number of active primaries on which the resource group should attempt to start.
In the node list of a HAStoragePlus resource group, specifies the list of nodename:zonename pairs as the node list of the HAStoragePlus resource group, where the SAP instances can come online.
Specifies the name of the scalable resource group to be added. This name must begin with an ASCII character.
Register the resource type for the HAStoragePlus resource.
# clresourcetype register HAStoragePlus |
Create the HAStoragePlus resource hasp-resource and define the SAP filesystem mount points and global device paths.
# clresource create -g hasp-resource-group -t SUNW.HAStoragePlus \ -p GlobalDevicePaths=/dev/global/dsk/d5s2,dsk/d6 \ -p affinityon=false -p FilesystemMountPoints=/sapmnt/JSC,/usr/sap/trans,/usr/sap/JSC hasp-resource |
Specifies the resource group name.
Contains the following values:
Global device group names, such as sap-dg, dsk/d5
Paths to global devices, such as /dev/global/dsk/d5s2, /dev/md/sap-dg/dsk/d6
Contains the following values:
Mount points of local or cluster file systems, such as /local/mirrlogA,/local/mirrlogB,/sapmnt/JSC,/usr/sap/JSC
The HAStoragePlus resource is created in the enabled state.
Register the resource type for the SAP application.
# clresourcetype register resource-type |
Specifies the name of the resource type to be added. For more information, see Supported Products.
Create a SAP resource group.
# clresourcegroup create [-n node-zone-list] -p RG_affinities=++hastorageplus-rg resource-group-1 |
Specifies the SAP services resource group.
Add the SAP application resource to resource-group-1 and set the dependency to hastorageplus-1.
# clresource create -g resource-group-1 -t SUNW.application \ [-p "extension-property[{node-specifier}]"=value, ?] \ -p Resource_dependencies=hastorageplus-1 resource |
Bring the failover resource group online.
# clresourcegroup online resource-group-1 |