返回首页

gbase数据、南大通用产品文档:GBase8s与 OpenAdmin Tool (OAT) 一起安装的产品

更新日期:2024年09月11日

Client SDK 中的 OAT 安装中包含支持 Apache 和 PHP 软件以及可选的 OAT
插件。
将安装以下产品:
 OpenAdmin Tool (OAT)
 Apache Server:

在 Linux™ 上:V2.4.2
 PHP:

在 Linux 上:V5.4.4
 可选:OpenAdmin Tool (OAT) 的 GBase 8s Health Advisor 插件
 可选:OpenAdmin Tool (OAT) 的 GBase 8s Replication 插件
 可选:OpenAdmin Tool (OAT) 的 GBase 8s Schema Manager 插件
 可选:OpenAdmin Tool (OAT) 的 GBase 8s TimeSeries 插件
与 OAT 一起安装的 PHP 和 Apache 有一组有限的模块。要使用 OAT PHP 执行其他开
发工作,可能需要更多模块。
以下 PHP 模块与 OAT 一起安装在 Linux上。此外,记录了一些例外情况。
 date
 gd
 libxml
 openssl
 pcre
 PDO
 pdo_sqlite
 Reflection
 session
 SimpleXML
 soap

GBase 8s 客户机产品安装指南
南大通用数据技术股份有限公司 - 46 -
 sockets
 SPL
 standard
 xml
 xmlreader
 xmlwriter
 zip
以下 Apache 模块与 OAT 一起安装在 Linux 上。此外,记录了一些例外情况。
 core
 http_core
 mod_alias
 mod_asis
 mod_auth_basic
 mod_authn_default
 mod_authn_file
 mod_authz_default
 mod_authz_groupfile
 mod_authz_host
 mod_authz_user
 mod_autoindex
 mod_cgi
 mod_dir
 mod_actions
 mod_env
 mod_filter
 mod_include
 mod_isapi
 mod_log_config
 mod_mime
 mod_negotiation
 mod_php5

GBase 8s 客户机产品安装指南
南大通用数据技术股份有限公司 - 47 -
 mod_setenvif
 mod_so
 mod_ssl(仅限 Linux)
 mod_status
 mod_userdir
 prefork

检查操作系统numactl 工具:
# numactl --hardware
available: 2 nodes (0-1)
node 0 cpus: 0 2 4 6 8 10 12 14
node 0 size: 32722 MB
node 0 free: 22537 MB
node 1 cpus: 1 3 5 7 9 11 13 15
node 1 size: 32768 MB
node 1 free: 23142 MB
node distances:
node
0
1
0:
10
20
1:
20
10
如硬件支持numa,操作系统未安装numa 工具,需单独安装numactl 工具:

GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
105
yum install -y numactl
或者使用rpm 命令安装以下包(如果是arm 架构,注意替换x86):
numactl-2.0.9-7.el7.x86_64.rpm
numactl-devel-2.0.9-7.el7.x86_64.rpm
numactl-libs-2.0.9-7.el7.x86_64.rpm
numad-0.5-18.20150602git.el7.x86_64.rpm
安装后可以查看当前服务器numa 状态:
# numastat
node0
node1
numa_hit
52237686
241164821
numa_miss
0
0
numa_foreign
0
0
interleave_hit
22797
22887
local_node
52226319
241150686
other_node
11367
14135

绑定步骤
NUMA 绑定需修改gcluster_services 脚本两处后,
使用该gcluster_services 脚本重启
集群服务。
如指定服务器一的172.16.3.61 实例下gcluster_services 脚本进行numa 绑定
修改第一处如下:
$ cd /opt/172.16.3.61/gnode/server/bin
$ vi gcluster_services
410 行左右找到下面代码
$2 > /dev/null 2>&1 &
# waiting for start completely
修改如下,增加红色代码
$2 > /dev/null 2>&1 &
# echo "$prog_name ------------------------$2"
if [ $prog_name = '/opt/172.16.3.61/gnode/server/bin/gbased' ];then
#echo -e "\n------numactl${loop_count}------$3"
count_numa=$(($(($3))%2))
echo
"--cpunodebind=+$count_numa --membind=+$count_numa"
numactl --cpunodebind=+"${count_numa}"
--membind=+"${count_numa}" $2 > /dev/null 2>&1 &

GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
106
#
$2 > /dev/null 2>&1 &
sleep 10
else
$2 > /dev/null 2>&1 &
fi
if [ $prog_name = '/opt/172.16.3.64/gnode/server/bin/gbased' ];then
#echo -e "\n------numactl${loop_count}------$3"
count_numa=$(($(($3))%2))
echo
"--cpunodebind=+$count_numa --membind=+$count_numa"
numactl --cpunodebind=+"${count_numa}"
--membind=+"${count_numa}" $2 > /dev/null 2>&1 &
#
$2 > /dev/null 2>&1 &
sleep 10
else
$2 > /dev/null 2>&1 &
fi
# waiting for start completely
注意,在NUMA 绑定时需要绑定进程的全路径,如绑定gbased 进程,则将其全路

/opt//gnode/server/bin/gbased






/opt//gnode/server/bin/gcluster_services 文件中,替换为真实IP 地址。
修改第二处如下:
500 行左右处增加红色代码:
# start data service
if [ $node_type == 2 -o $node_type == 3 ]; then
for ((count=0; count<${#DataServerName[@]}; count++))
do
instance_no=0
for inst in `echo $GBASE_INSTANCES|sed
's/:/\n/g'|sort|uniq`
do
if [ $inst != "" ];then
#echo $inst
. $inst
declare -a DataServerBin

GBase 8a MPP Cluster 产品手册
3 集群安装升级与卸载
文档版本953(2022-09-15)
南大通用数据技术股份有限公司
107
DataServerBin[0]=$GBASE_HOME/bin/gbased
DataServerBin[1]=$GBASE_HOME/bin/gc_sync_server
#echo ${DataServerBin[count]}
#__start ${DataServerName[count]}
${DataServerBin[count]}
__start ${DataServerName[count]}
${DataServerBin[count]} ${instance_no}
if [ "$?" != "$RET_SUCCESS" ]; then
ret_start=$RET_START_ALL_ERROR
fi
((instance_no++))
fi
done
done
Fi
重启集群服务
$ cd /opt/GBase/172.16.3.61/gnode/server/bin
$ ./gcluster_services all start
$ numastat `pidof gbased`
Per-node process memory usage (in MBs)
PID
Node 0
Node 1
Total
----------------
--------------- --------------- ---------------
25788 (gbased)

本节为直接从 GBase 获得产品资料的用户描述最常见的安装问题和相应的解决方案。
如果仍出现任何这些问题,请通过联系技术支持。
如果您从电子软件下载 (ESD) 供应商处获取GBase8s 产品资料,
请参阅供应商文档以了解
如何解决可能遇到的安装问题的相关信息。
• 问题:您收到下列错误消息:
错误 1311。未找到源文件“d:\data.cab”。
盘符和路径/文件名可能不同。
解决方案:这是 Windows 安全错误,如果以本地系统用户身份运行的安装应用程序被拒
绝访问 cab 文件,就会发生此错误。有两种方法可以解决此问题:
方法 1:将安装文件复制到硬盘,然后从那里运行安装。
方法 2:更改“安全选项”,如下所示:
1. 单击开始 > 设置 > 控制面板 > 管理工具。
2. 选择本地安全策略。
3. 展开“本地策略”文件夹。
4. 选择安全选项。
5. 在右边窗格中,根据 Windows 版本,选择下列一个选项:
设备:只有本地登录的用户才能访问 CD。
只有本地登录的用户才能访问 CD。
6. 将您的选择更改为已禁用。