安装不可能一帆风顺,中间还是要趟一些坑。
坑一:遇到了sapexe.sar问题,kernel中明明有sapexe.sar,但是一直显示missing,安装下面的路径,去找了一个最新的。
https://launchpad.support.sap.com/#/softwarecenter/template/products/_APP=00200682500000001943&_EVENT=DISPHIER&HEADER=Y&FUNCTIONBAR=N&EVENT=TREE&NE=NAVIGATE&ENR=73554900100200007950&V=MAINT
坑二:The original exception was: wapsmod.ms.MsAttachFailed: Connect to message server。。。。
这个主要是自己hosts中没有设置对。
坑三:FAIL: NIEHOST_UNKNOWN, NiRawConnect failed in plugin_fopen()
开始以为是映射了网卡原因,去掉公网映射还是过不去,后来找到了原因竟然是自己手贱,把hosts中的localhost改成了devapp的机器名,里面记录重复了导致了这个错误
坑四:Group sapsys exists with GID 79, while the default profile /sapmnt/DEV/profile/DEFAULT.PFL is owned by GID 1001.
SOLUTION: Change the GID of group sapsys to 1001 or remove the group account
原因是HANA 安装过程中会使用 <sid>adm 作为该HANA的系统账号(非 HANA 数据库账号), 如账号不存在,HANA 则会默认创建该账号。在个人使用过程中,需要避免使用以 adm 结尾的用户,以免出现账号与 HANA 重复导致账号下信息被 HANA 强制修改的情况。此外,在 scale out 场景中,所有的节点均需要使用同样的 <sid>adm 并且保证 uid,gid 一致。
创建用户: useradd –u <uid> -g <gid> username
删除用户: userdel username
而我直接在HANA数据库服务器上,因为猴急,没在 HANA DB 服务器上创建组 ID 为 1001 的组 sapsys。而是直接用HDBLCM安装HANA数库据,导致了后来安装数据库实例的时候就出现了上面的错误。不过可以使用如下命令修改组ID。
# usermod -g sapsys sapadm
cat /ect/passwd--查看现在的用户ID
cat /etc/group---查看现在的组ID
groupmod -g 1002 sapinst--修改组ID
groupmod -g 1001 sapsys--修改组ID
但是新问题又来了:
An error occurred while processing option SAP S/4HANA Server 1809 > SAP HANA Database > Installation > Application Server ABAP > Distributed System > Database Instance(Last error reported by the step: Execution of the command "/bin/sh -c "source /usr/sap/HDB/home/.profile; env"" finished with return code 1. Output: /usr/sap/HDB/home/.sapenv.sh: line 86: /usr/sap/HDB/HDB[0-9][0-9]/HDBSettings.sh: No such file or directory). You can now:
再瞎改:
chown user -R /usr/sap/HDB
chgrp sapsys /usr/sap/hdb
最后不玩了,反正原因知道了,重新安装。
坑五:安装数据库实例的时候过不去:Error during execution of HdbCmdClazz 'INSTALL_SERVER_HDBLCM' : class com.sap.hdb.sl.lib.utils.cmd.clazz.CmdClazzParameterFactory, parameters received. Start execution. Check HdbCmdOut.log and HdbStdout.txt for further information.Use Java process call.Execute command: /hana/shared/.saphanaserver_HDB/SAP_HANA_DATABASE/hdblcm --action=install --batch --read_password_from_stdin --sapmnt=/hana/shared --components=server --shell=/bin/csh --number=00 --hostname=imphdbdev --sid=HDBSAP HANA Lifecycle Management - SAP HANA Database 2.00.037.00.1552531011************************************************************************Scanning software locations...Detected components: SAP HANA Database (2.00.037.00.1552531011) in /hana/shared/.saphanaserver_HDB/SAP_HANA_DATABASE/serverConfiguration error (batch mode): File 'SIGNATURE.SMF' cannot be found in the SAP HANA Database installation kit. To include the signature when extracting the installation kit from a .SAR archive, use the SAPCAR option: -manifest SIGNATURE.SMF You can ignore this error and continue with the execution by passing the ignore option 'check_signature_file' to hdblcm, started as root. See SAP note 2078425, section 'How to prepare SAP HANA packages for installation or update' for instructions how to prepare packages for update or implications of ignoring this error.Log file written to '/var/tmp/hdb_hdblcm_install_2019-04-03_02.30.06_9697/hdblcm.log' on host 'imphdbdev'.Wed Apr 03 02:30:07 UTC 2019 | com.sap.hdb.core.main.cmd.HdbCmdMain | An error occured during command
http://devdatabase:1128/lmsl/HDBLCM/DEV/index.html
数据库实例安装到大半的时候告诉这个错误。我把安装包中的SIGNATURE.SMF解压放到安装目录下都不可以。于是一气之下,单独解压安装包在数据库服务器上,用HDBLCM在数据库上先安装了数据库,这次因为安装实例的时候已经自动在数据库服务器上创建了sapsys组,所有没有遇到坑四。后面再继续数据库实例安装的时候就没有再出问题。