how to enable the sap web application server to run in a cluster (sun cluster data service for sap...
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