SAP S4 HANA 安装部署记事四:SAP HANA主机性能测试HWCCT
SAP HANA对服务器有认证,有性能要求,SAP提供了专门的测试工具HWCCT,主要测试主机的I/O, HANA是内存计算,所以IO的影响主要在于系统加载,日志文件还有备份的时候有影响。
对于IO的要求,SAP也给你了标准值,其实挺低的,一般硬件测试都没有问题的。
一.HWCCT安装与使用
1.HWCCT工具的download
这个可以在SAP官网上下载:https://launchpad.support.sap.com/#/softwarecenter/search/hwcct
我是下载了 HWCCT_112_7-20011536.SAR
2.HWCCT install
Copy the SAR file HWCCT.SAR to the Linux system hosting your SAP HANA server
Install the tool by executing this command:
SAPCAR -xf HWCCT_112_7-20011536.SAR hwcct
A new directory /hana/shared/hwcct/ is created.
你也可以将sar文件解压缩后,通过ftp传到服务器上,当然这样执行可能会遇到-bash: ./xx: Permission denied错误,运行chmod -R 777 HANA修改权限即可。
3.Prepare the test_config.json file
{
"use_hdb":false,
"blades":["SAPHANA"],
"tests": [
{
"package": "FilesystemTest",
"test_timeout": 0,
"id": 2,
"config": {"mount":{"SAPHANA":["/hana/data"]},
"parameter":{
"async_write_submit_active":"on",
"async_read_submit":"on",
"async_write_submit_blocks":"all",
"max_submit_batch_size":"128",
"max_parallel_io_requests":"256",
"min_submit_batch_size":"32"
},
"duration":"long"
},
"class": "DataVolumeIO"
},
{
"package": "FilesystemTest",
"test_timeout": 0,
"id": 3,
"config": {"mount":{"SAPHANA":["/hana/log"]},
"parameter":{
"async_write_submit_active":"on",
"async_read_submit":"on",
"async_write_submit_blocks":"all",
"max_submit_batch_size":"128",
"max_parallel_io_requests":"256",
"min_submit_batch_size":"32"
},
"duration":"long"
},
"class": "LogVolumeIO"
}
]
}
4.run
Change directory to the folder hwcct
连接上后执行如下命令,就可以进行测试,得到测试结果需要一点时间。
hanaprd:/hana/shared/hwcct112 # source envprofile.sh
hanaprd:/hana/shared/hwcct112 # ./hwval -f test_config.json
出了结果,你下载下来和SAP给的KPI值对比一下就可以了。
二.hwcct 错误运行时出现错误:
开始折腾的时候其实还是遇到了错误的
CP@HANA:/hana/shared/hwcct> source envprofile.sh
CP@HANA:/hana/shared/hwcct> ./hwval eval_filesystem.json
Could not load the Python Modules
初步判断应该是python的安装有问题。
--安装Python,先下载python的安装包,然后解压安装
CP@HANA:/hana> wget https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
CP@HANA:/hana> tar xvfz Python-2.7.15.tgz
CP@HANA:/hana/Python-2.7.15> ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python2.7... python2.7
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux2
checking EXTRAPLATDIR...
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/hana/Python-2.7.15':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
于是去找到ggc库的下载地址,下载后传到服务器上,但在安装到如下两个rpm文件的时候出错了。
HANA:/home/CP/public_html # rpm -ivh glibc-devel-2.19-31.9.x86_64.rpm libstdc++48-devel-4.8.5-24.1.x86_64.rpm
error: Failed dependencies:
glibc = 2.19 is needed by glibc-devel-2.19-31.9.x86_64
于是去找2.19的安装包,在 https://download.csdn.net/download/luotuo44/7887681下载后传到服务器,搞了半天还是遇到错误
configure: error: cannot find install-sh, install.sh, or shtool in scripts "."/scripts
HANA:/home/CP/public_html # cd glibc-2.19
HANA:/home/CP/public_html/glibc-2.19 # mkdir build
HANA:/home/CP/public_html/glibc-2.19 # cd build
HANA:/home/CP/public_html/glibc-2.19/build # ../glibc-2.19/configure --prefix=/usr/CP/glibc-2.19 --with-headers=/usr/include
HANA:/home/CP/public_html # rpm -ivh gcc-4.8-6.189.x86_64.rpm
error: Failed dependencies:
gcc48 is needed by gcc-4.8-6.189.x86_64
HANA:/home/CP/public_html # rpm -ivh gcc-c++-4.8-6.189.x86_64.rpm
error: Failed dependencies:
gcc = 4.8 is needed by gcc-c++-4.8-6.189.x86_64
gcc48-c++ is needed by gcc-c++-4.8-6.189.x86_64
HANA:/home/CP/public_html # rpm -ivh glibc-devel-2.19-31.9.x86_64.rpm
error: Failed dependencies:
glibc = 2.19 is needed by glibc-devel-2.19-31.9.x86_64
安装时不再分析包之间的依赖关系而直接安装,也就不会再提示error: Failed dependencies:这样的错误了。
HANA:/home/CP/public_html # rpm -ivh glibc-devel-2.19-31.9.x86_64.rpm --nodeps --force
Preparing... ################################# [100%]
Updating / installing...
1:glibc-devel-2.19-31.9 ################################# [100%]
HANA:/home/CP/public_html # rpm -ivh libstdc++48-devel-4.8.5-24.1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:libstdc++48-devel-4.8.5-24.1 ################################# [100%]
HANA:/home/CP/public_html # rpm -ivh gcc48-4.8.5-24.1.x86_64.rpm
error: Failed dependencies:
cpp48 = 4.8.5-24.1 is needed by gcc48-4.8.5-24.1.x86_64
HANA:/home/CP/public_html # rpm -ivh gcc48-4.8.5-24.1.x86_64.rpm --nodeps --force
Preparing... ################################# [100%]
Updating / installing...
1:gcc48-4.8.5-24.1 ################################# [100%]
HANA:/home/CP/public_html # rpm -ivh gcc48-c++-4.8.5-24.1.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:gcc48-c++-4.8.5-24.1 ################################# [100%]
HANA:/home/CP/public_html # rpm -ivh gcc-4.8-6.189.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:gcc-4.8-6.189 ################################# [100%]
HANA:/home/CP/public_html # rpm -ivh gcc-c++-4.8-6.189.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:gcc-c++-4.8-6.189 ################################# [100%]
HANA:/home/CP/public_html #
CP@HANA:/hana/Python-2.7.15> ./configure
CP@HANA:/hana/Python-2.7.15> make
CP@HANA:/hana/Python-2.7.15> make install
搞定了Python,再回头出看 Hwcct
CP@HANA:/hana/shared/hwcct> source envprofile.sh
CP@HANA:/hana/shared/hwcct> ./hwval eval_filesystem.json
还是这个错误,怀疑是环境变量问题,改了环境变量
CP@HANA:/home> PATH="$PATH:/usr/local/bin/python"
还是获得如下错误:
Could not load the Python Modules
看来方向是错误的,找了高手,人家重新下载了一个新版本HWCCT,结果一下成功了,说是因为老版本的HWCCT报的错误不精细,其实报的错误不一定是真错误。
文章来自于网络,如果侵犯了您的权益,请联系站长删除!