how to enable the sap web application server to run in a cluster (sun cluster data service for sap...

5
2/15/2015 How to Enable the SAP Web Application Server to Run in a Cluster (Sun Cluster Data Service for SAP Web Application Server Guide for Solaris http://docs.or acl e.com/cd/E19050- 01/sun.cluster 31/817- 6571/instal lconfi g- pr oc- 136/i ndex.html Previous: How to Install and Configure the SAP J2EE Engine  Next : How to Enable the SAP J2EE Engine to Run in a Clus Documentation Home > Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS > Installing and Configuring Sun Cluster HA for SAP Web Application Server > Installing and Configuring SAP Web Application Server > How to Enable the SAP Web Application Server to Run in a Cluster How to Enable the SAP Web Application Server to Run in a Cluster The following resource groups are created in this procedure: SAP central services resource group, to contain the following resources: SAP enqueue server resource SAP message server resource Logical host name for these resources SAP replica server resource group, to contain the following resources: SAP replica server resource Logical host name for this resource SAP web application server resource group, to contain the following resources: SAP web application server component resource Logical host name for this resource, if the resource is configured as a failover resource Note that the procedure to enable the SAP J2EE engine to run in a cluster is located in a separate section. See How to Enable the SAP J2EE Engine to Run in a Cluster. 1. Become superuser on a cluster node. 2. Create a resource group for the SAP central services. The SAP central services resource group is a failover resource group to contain the SAP enqueue server resource, the SAP message server resource, and the logical host name for these resources. # scrgadm -a -g central-rg -a Specifies that a new resource group is to be added. -g central-rg Specifies the name of the resource group to be added. This name can be your choice but must be unique for the resource groups within the cluster. 3. Add a logical-host-name resource to the resource group that you created in Step 2. # scrgadm -a -L -g central-rg  -l central-logical-hostname [  -n netiflist] -a Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS

Upload: donna-schmidt

Post on 08-Oct-2015

221 views

Category:

Documents


0 download

DESCRIPTION

How to Enable the SAP Web Application Server to Run in a Cluster (Sun Cluster Data Service for SAP Web Application Server Guide for Solaris OS)

TRANSCRIPT

  • 2/15/2015 HowtoEnabletheSAPWebApplicationServertoRuninaCluster(SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS)

    http://docs.oracle.com/cd/E1905001/sun.cluster31/8176571/installconfigproc136/index.html 1/5

    Previous:HowtoInstallandConfiguretheSAPJ2EEEngine Next:HowtoEnabletheSAPJ2EEEnginetoRuninaCluster

    DocumentationHome>SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS>InstallingandConfiguringSunClusterHAforSAPWebApplicationServer>InstallingandConfiguringSAPWebApplicationServer>HowtoEnabletheSAPWebApplicationServertoRuninaCluster

    HowtoEnabletheSAPWebApplicationServertoRuninaClusterThefollowingresourcegroupsarecreatedinthisprocedure:

    SAPcentralservicesresourcegroup,tocontainthefollowingresources:

    SAPenqueueserverresource

    SAPmessageserverresource

    Logicalhostnamefortheseresources

    SAPreplicaserverresourcegroup,tocontainthefollowingresources:

    SAPreplicaserverresource

    Logicalhostnameforthisresource

    SAPwebapplicationserverresourcegroup,tocontainthefollowingresources:

    SAPwebapplicationservercomponentresource

    Logicalhostnameforthisresource,iftheresourceisconfiguredasafailoverresource

    NotethattheproceduretoenabletheSAPJ2EEenginetoruninaclusterislocatedinaseparatesection.SeeHowtoEnabletheSAPJ2EEEnginetoRuninaCluster.

    1. Becomesuperuseronaclusternode.

    2. CreatearesourcegroupfortheSAPcentralservices.

    TheSAPcentralservicesresourcegroupisafailoverresourcegrouptocontaintheSAPenqueueserverresource,theSAPmessageserverresource,andthelogicalhostnamefortheseresources.

    # scrgadma g centralrg

    a

    Specifiesthatanewresourcegroupistobeadded.

    g centralrg

    Specifiesthenameoftheresourcegrouptobeadded.Thisnamecanbeyourchoicebutmustbeuniquefortheresourcegroupswithinthecluster.

    3. AddalogicalhostnameresourcetotheresourcegroupthatyoucreatedinStep2.

    # scrgadmaL g centralrg l centrallogicalhostname[ n netiflist]

    a

    SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS

  • 2/15/2015 HowtoEnabletheSAPWebApplicationServertoRuninaCluster(SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS)

    http://docs.oracle.com/cd/E1905001/sun.cluster31/8176571/installconfigproc136/index.html 2/5

    Specifiesthatanewconfigurationistobeadded.

    L

    Specifiesthatalogicalhostnameresourceistobeadded.

    g centralrg

    SpecifiesthelogicalhostnameresourcetobeaddedtotheresourcegroupthatyoucreatedinStep2.

    l centrallogicalhostname

    SpecifiesthelogicalhostnameoftheSAPcentralservicesresource.

    n netiflist

    Specifiesacommaseparatedlistofnetworkinterfaces.Allnodesinthenodelistoftheresourcegroupmustberepresentedinthelistofnetworkinterfaces.Specifyingalistofnetworkinterfacesisoptional.Ifyouomitthelist,anattemptismadeforeachnodetodiscoveranetworkinterfaceonthesubnetthatthehostnamelistidentifies.

    4. BringonlinetheSAPcentralservicesresourcegroup.

    # scswitchZ g centralrg

    Z

    Specifiesthataresourcegroupistobebroughtonline.

    g centralrg

    Specifiesthenameoftheresourcegrouptobebroughtonline.ThisnameisthenameoftheresourcegroupthatwascreatedinStep2.

    5. CreatearesourcegroupfortheSAPreplicaserver.

    TheSAPreplicaserverresourcegroupisafailoverresourcegrouptocontaintheSAPreplicaserverresourceandthelogicalhostnameforthisresource.

    # scrgadma g replrg

    a

    Specifiesthatanewresourcegroupistobeadded.

    g replrg

    Specifiesthenameoftheresourcegrouptobeadded.Thisnamecanbeyourchoicebutmustbeuniquefortheresourcegroupswithinthecluster.

    6. AddalogicalhostnameresourcetotheresourcegroupthatyoucreatedinStep5.

    # scrgadmaL g replrg l saprepllogicalhostname[ n netiflist]

    a

    Specifiesthatanewconfigurationistobeadded.

    L

    Specifiesthatalogicalhostnameresourceistobeadded.

    g replrg

    SpecifiesthelogicalhostnameresourcetobeaddedtotheresourcegroupthatyoucreatedinStep5.

    l saprepllogicalhostname

    SpecifiesthelogicalhostnameoftheSAPreplicaserverresource.

  • 2/15/2015 HowtoEnabletheSAPWebApplicationServertoRuninaCluster(SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS)

    http://docs.oracle.com/cd/E1905001/sun.cluster31/8176571/installconfigproc136/index.html 3/5

    n netiflist

    Specifiesacommaseparatedlistofnetworkinterfaces.Allnodesinthenodelistoftheresourcegroupmustberepresentedinthelistofnetworkinterfaces.Specifyingalistofnetworkinterfacesisoptional.Ifyouomitthelist,anattemptismadeforeachnodetodiscoveranetworkinterfaceonthesubnetthatthehostnamelistidentifies.

    7. BringonlinetheSAPreplicaserverresourcegroup.

    # scswitchZ g replrg

    Z

    Specifiesthataresourcegroupistobebroughtonline.

    g replrg

    Specifiesthenameoftheresourcegrouptobebroughtonline.ThisnameisthenameoftheresourcegroupthatwascreatedinStep5.

    8. SetweakpositiveaffinitybetweentheSAPcentralservicesresourcegroupandtheSAPreplicaserverresourcegroup.

    Theweakpositiveaffinitysettingensuresthat,incaseoffailover,theSAPcentralservicesresourcegroupfailsovertothenodewheretheSAPreplicaserverresourcegrouphasbeenrunning.

    # scrgadmc g centralrg yRG_affinities=+ replrg

    c

    Specifiesthataresourcegroupistobemodified

    g centralrg

    Specifiesthenameoftheresourcegrouptobemodified

    yRG_affinities=+ replrg

    Specifiesthatthecentralrgresourcegrouphasweakpositiveaffinitywiththereplrgresourcegroup

    9. IftheSAPcentralservicesresourcegroupandtheSAPreplicaserverresourcegroupareonlineonthesamenode,switchoneofthemtoanothernode.

    Thetworesourcegroupsmustbemasteredondifferentnodesbeforethestrongnegativeaffinitycanbesetbetweentheresourcegroups.

    # scswitchz g rg h node

    z

    Specifiesthataresourcegroupistobeswitchedtoanothernode.

    g rg

    Specifiesthenameoftheresourcegrouptobeswitched.ThisresourcegroupcanbeeithertheSAPcentralservicesresourcegrouportheSAPreplicaserverresourcegroup.

    h node

    Specifiesthenodetowhichtheresourcegroupistobeswitched.

    10. SetstrongnegativeaffinitybetweentheSAPreplicaserverresourcegroupandtheSAPcentralservicesresourcegroup.

    Thestrongnegativeaffinitysettingensuresthatnodefailoverbehaviorisappropriate.TheSAPcentralservicesresourcegroupfailsovertothenodewheretheSAPreplicaserverresourcegrouphasbeenrunning.TheSAPreplicaserverresourcegroupthenfailsovertoanotheravailablenode.

    TheSAPreplicaserverresourcegroupisneverbroughtonlinenorallowedtoremainonlineonanodeonwhichtheSAPcentralservicesresourcegroupisonline.

    # scrgadmc g replrg yRG_affinities= centralrg

  • 2/15/2015 HowtoEnabletheSAPWebApplicationServertoRuninaCluster(SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS)

    http://docs.oracle.com/cd/E1905001/sun.cluster31/8176571/installconfigproc136/index.html 4/5

    c

    Specifiesthataresourcegroupistobemodified

    g replrg

    Specifiesthenameoftheresourcegrouptobemodified

    yRG_affinities= centralrg

    Specifiesthatthereplrgresourcegrouphasstrongnegativeaffinitywiththecentralrgresourcegroup

    11. CreatearesourcegroupfortheSAPwebapplicationservercomponent.

    TheSAPwebapplicationserverresourcegroupcanbeconfiguredasafailoverorscalableresourcegrouptocontaintheresourcefortheSAPwebapplicationservercomponent.IftheSAPwebapplicationserverisconfiguredasafailoverresource,thelogicalhostnameforthisresourceisalsocontainedintheSAPwebapplicationserverresourcegroup.

    Tocreateafailoverresourcegroup,runthefollowingcommand.

    # scrgadma g webasrg

    Tocreateascalableresourcegroup,runthefollowingcommand.

    # scrgadma g scalwebasrg\yMaximum_primaries= value yDesired_primaries= value

    a

    Specifiesthatanewresourcegroupistobeadded.

    g webasrg

    Specifiesthenameofthefailoverresourcegrouptobeadded.Thisnamecanbeyourchoicebutmustbeuniquefortheresourcegroupswithinthecluster.

    g scalwebasrg

    Specifiesthenameofthescalableresourcegrouptobeadded.Thisnamecanbeyourchoicebutmustbeuniquefortheresourcegroupswithinthecluster.

    yMaximum_primaries= value

    Specifiesthemaximumnumberofprimarynodesforthisscalableresourcegroup.

    yDesired_primaries= value

    Specifiesthedesirednumberofprimarynodesforthisscalableresourcegroup.

    12. IftheresourcegroupthatyoucreatedinStep11isconfiguredasafailoverresourcegroup,addalogicalhostnameresourcetotheresourcegroup.

    IftheresourcegroupthatyoucreatedinStep11isconfiguredasascalableresourcegroup,skipthisstep.

    # scrgadmaL g webasrg l webaslogicalhostname[ n netiflist]

    a

    Specifiesthatanewconfigurationistobeadded.

    L

    Specifiesthatalogicalhostnameresourceistobeadded.

    g webasrg

    SpecifiesthelogicalhostnameresourcetobeaddedtotheresourcegroupthatyoucreatedinStep11.

  • 2/15/2015 HowtoEnabletheSAPWebApplicationServertoRuninaCluster(SunClusterDataServiceforSAPWebApplicationServerGuideforSolarisOS)

    http://docs.oracle.com/cd/E1905001/sun.cluster31/8176571/installconfigproc136/index.html 5/5

    Previous:HowtoInstallandConfiguretheSAPJ2EEEngine Next:HowtoEnabletheSAPJ2EEEnginetoRuninaCluster

    l webaslogicalhostname

    SpecifiesthelogicalhostnameoftheSAPwebapplicationservercomponentresource.

    n netiflist

    Specifiesacommaseparatedlistofnetworkinterfaces.Allnodesinthenodelistoftheresourcegroupmustberepresentedinthelistofnetworkinterfaces.Specifyingalistofnetworkinterfacesisoptional.Ifyouomitthelist,anattemptismadeforeachnodetodiscoveranetworkinterfaceonthesubnetthatthehostnamelistidentifies.

    13. BringonlinetheSAPwebapplicationserverresourcegroup.

    # scswitchZ g webasrg

    Z

    Specifiesthataresourcegroupistobebroughtonline.

    g webasrg

    Specifiesthenameoftheresourcegrouptobebroughtonline.ThisnameisthenameoftheresourcegroupthatwascreatedinStep11.

    14. (Optional)Considerconfiguringyourclustertooffloadnoncriticalresourcegroups.

    Youmightplantorunanoncritical,lowerprioritySAPwebapplicationservercomponentresourceonanodetowhichacritical,higherprioritySAPcentralservicesresourcecanfailover.Inthissituation,considersettingstrongnegativeaffinitybetweentheresourcegroups.Thissettingensuresthat,ifahigherprioritySAPcentralservicesresourcefailsovertothenodewherealowerprioritySAPwebapplicationservercomponentresourceisrunning,thelowerpriorityresourceisoffloaded,therebyautomaticallyfreeingthenode'sresourcestobeusedforthecriticalSAPcentralservicesresource.

    # scrgadmc g webasrg yRG_affinities= centralrg

    c

    Specifiesthataresourcegroupistobemodified.

    g webasrg

    Specifiesthenameoftheresourcegrouptobemodified.

    yRG_affinities= centralrg

    Specifiesthatthewebasrgresourcegrouphasstrongnegativeaffinitywiththecentralrgresourcegroup.Ifthecentralrgresourcegroupfailsovertothenodewherethewebasrgresourcegroupisrunning,thewebasrgresourcegroupisoffloaded.

    15. CopyallsystemfilesthatwerechangedduringtheSAPWebApplicationServerinstallationandconfigurationprocesstoallthenodesthataretoruntheSAPWebApplicationServerresources.Thesefilesmightincludethefollowing:

    /etc/passwd

    /etc/group

    /etc/system

    /etc/services

    2010,OracleCorporationand/oritsaffiliates