- Below error is logged in the agent log
SAPComponents_A.log
2015/01/26 18:56:04 VCS ERROR V-16-55035-20008 SAPComponents:sap01_sapcomponents:monitor:
2015/01/26 18:56:04 VCS ERROR V-16-55035-20009 SAPComponents:sap01_sapcomponents:monitor:
# hastatus -sum
-- SYSTEM STATE
-- System State Frozen
A system01 RUNNING 0
A system02 RUNNING 0
-- GROUP STATE
-- Group System Probed AutoDisabled State
B sap01 system01 N N ONLINE
B sap01 system02 N N OFFLINE
-- GROUPS FROZEN
-- Group
C sap01
-- RESOURCES NOT PROBED
-- Group Type Resource System
E sap01 SAPComponents sap01_sapcomponents system01 <<<=======
E sap01 SAPComponents sap01_sapcomponents system02 <<<=======
Sap01_sapcomponents State system01 OFFLINE|STATE UNKNOWN
Sap01_sapcomponents State system02 OFFLINE|STATE UNKNOWN
The format of InstProfile (sapwebdisp.pfl) defined is wrong. From the “HA Agent for SAPComponents Installation and Configuration Guide”, the value of the instance should be in "SAPSID_InstName_hostname" format.
For example, the name should be like GW1_G00_sapgwrd.
The VCS could not find SAPSID from the defined file name ‘sapwebdisp.pfl” so it gave an error “SAPSID [sapwebdisp.pfl] has to be exactly 3 non-white alpha-numeric characters long”.
Furthermore it could not find valid InstName from “sapwebdisp.pfl” name so it gave an error “Last two characters of InstName not between 00-99”.
The correct Instance profile can be found in the /usr/sap/SAPSID/SYS/profile directory.
Found valid InstProfile “SP1_S00_system01” in the /usr/sap/SP1/SYS/profile. Changed InstProfile value with a right file and the resource online successfully.
# haconf -makerw
# hares –modify sap01_sapcomponents InstProfile /usr/sap/SP1/SYS/profile/ SP1_S00_system01
# haconf –dump –makero
Applies To
VCS 5.x / 6.x with SAPComponents agent 5.x
From main.cf
SAPComponents sap01_sapcomponents (
Critical = 0
EnvFile = "/export/home/sp1adm/.sapenv_system01.csh"
SAPAdmin = sp1adm
InstProfile = "/usr/sap/SP1/sapwebdispatcher/sapwebdisp.pfl" <<<
ComponentType = WebDispatcher
)