单机部署安装GBase8cV5 3.0.0的问题
安装包是 GBase8cV5_3.0.0_分布式_x86.zip → GBase8cV5_S3.0.0B114_centos7.8_x86_64.tar.gz → GBase8cV5_S3.0.0B114_CentOS_x86_64.tar.bz2
[gbase@localhost simpleInstall]$ !101
sh install.sh -w "TestString!" -p 5432 && source ~/.bashrc
[step 1]: check parameter
[step 2]: check install env and os setting
[step 3]: change_gausshome_owner
[step 4]: set environment variables
/home/gbase/.bashrc: line 11: ulimit: open files: cannot modify limit: Operation not permitted
[step 6]: init datanode
gs_initdb: openGauss nodetype is mandatory, use -Z coordiantor/datanode to specify nodetype
Try "gs_initdb --help" for more information.
[step 7]: start datanode
[2025-10-21 11:34:24.354][480269][][gs_ctl]: gs_ctl started,datadir is /home/gbase/gbase_package/data/single_node
[2025-10-21 11:34:24.354][480269][][gs_ctl]: can't create lock file "/home/gbase/gbase_package/data/single_node/pg_ctl.lock" : No such file or directoryimport sql file
Would you like to create a demo database (yes/no)? yes
Load demoDB failed, you can check load.log for more details.
在install.sh中添加 -Z datanode后可以安装,但是有很多warnning,不确定是不是会影响使用
[step 7]: start datanode
[2025-10-21 13:53:55.519][493443][][gs_ctl]: gs_ctl started,datadir is /home/gbase/gbase_package/data/single_node
[2025-10-21 13:53:55.663][493443][][gs_ctl]: waiting for server to start...
.0 LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
0 LOG: [Alarm Module]Host Name: localhost.localdomain
0 LOG: [Alarm Module]Host IP: 127.0.0.1
0 LOG: [Alarm Module]Cluster Name: dbCluster
0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
0 WARNING: failed to parse feature control file: gaussdb.version.
0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version.
.The core dump path is an invalid directory
.gaussdb.state does not exist, and skipt setting since it is optional.2025-10-21 13:53:58.432 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]can not read GAUSS_WARNING_TYPE env.
2025-10-21 13:53:58.432 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host Name: localhost.localdomain
2025-10-21 13:53:58.432 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Host IP: 127.0.0.1
2025-10-21 13:53:58.432 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Cluster Name: dbCluster
2025-10-21 13:53:58.432 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
....2025-10-21 13:54:02.896 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: loaded library "security_plugin"
2025-10-21 13:54:02.896 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2025-10-21 13:54:02.896 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2025-10-21 13:54:04.334 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] WARNING: No explicit IP is configured for listen_addresses GUC.
2025-10-21 13:54:04.425 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2025-10-21 13:54:04.426 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: reserved memory for backend threads is: 220 MB
2025-10-21 13:54:04.426 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: reserved memory for WAL buffers is: 128 MB
2025-10-21 13:54:04.426 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: Set max backend reserve memory is: 348 MB, max dynamic memory is: 11056 MB
2025-10-21 13:54:04.426 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: shared memory 371 Mbytes, memory context 11404 Mbytes, max process memory 12288 Mbytes
2025-10-21 13:54:05.722 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [CACHE] LOG: set data cache size(402653184)
2025-10-21 13:54:05.773 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [CACHE] LOG: set metadata cache size(134217728)
2025-10-21 13:54:05.944 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [SEGMENT_PAGE] LOG: Segment-page constants: DF_MAP_SIZE: 8152, DF_MAP_BIT_CNT: 65216, DF_MAP_GROUP_EXTENTS: 4173824, IPBLOCK_SIZE: 8168, EXTENTS_PER_IPBLOCK: 1021, IPBLOCK_GROUP_SIZE: 4088, BMT_HEADER_LEVEL0_TOTAL_PAGES: 8323072, BktMapEntryNumberPerBlock: 2038, BktMapBlockNumber: 25, BktBitMaxMapCnt: 512
2025-10-21 13:54:06.567 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: gaussdb: fsync file "/home/gbase/gbase_package/data/single_node/gaussdb.state.temp" success
2025-10-21 13:54:06.568 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: create gaussdb state file success: db state(STARTING_STATE), server mode(Normal), connection index(1)
2025-10-21 13:54:07.259 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: max_safe_fds = 976, usable_fds = 1000, already_open = 14
The core dump path is an invalid directory
2025-10-21 13:54:07.265 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: user configure file is not found, it will be created.
2025-10-21 13:54:07.285 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: the configure file /home/gbase/gbase_package/etc/gscgroup_gbase.cfg doesn't exist or the size of configure file has changed. Please create it by root user!
2025-10-21 13:54:07.285 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [BACKEND] LOG: Failed to parse cgroup config file.
2025-10-21 13:54:07.779 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] WARNING: Failed to obtain environment value $GAUSSLOG!
2025-10-21 13:54:07.779 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] DETAIL: N/A
2025-10-21 13:54:07.779 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] CAUSE: Incorrect environment value.
2025-10-21 13:54:07.779 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] ACTION: Please refer to backend log for more details.
2025-10-21 13:54:07.855 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] WARNING: Failed to obtain environment value $GAUSSLOG!
2025-10-21 13:54:07.855 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] DETAIL: N/A
2025-10-21 13:54:07.855 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] CAUSE: Incorrect environment value.
2025-10-21 13:54:07.855 [unknown] [unknown] localhost 140400489284288 0[0:0#0] 0 [EXECUTOR] ACTION: Please refer to backend log for more details.
.....................
[2025-10-21 13:54:35.865][493443][][gs_ctl]: done
[2025-10-21 13:54:35.865][493443][][gs_ctl]: server started (/home/gbase/gbase_package/data/single_node)
评论
[2025-10-22 14:21:21.999854][729179][Install][DEBUG]:start cmd = /home/gbase/gbase_db/app/bin/gs_ctl start -D /home/gbase/data/dn1/dn1_1 -Z datanode -t 300
[2025-10-22 14:21:23.298610][729179][][LOG]:Traceback (most recent call last):
File "./local/Install.py", line 784, in
File "./local/Install.py", line 712, in startCluster
File "./gspylib/component/Kernel/Kernel.py", line 109, in start
Exception: [GAUSS-51607] : Failed to start instance. Error: Please check the gs_ctl log for failure details.
[2025-10-22 14:21:22.045][729889][][gs_ctl]: gs_ctl started,datadir is /home/gbase/data/dn1/dn1_1
[2025-10-22 14:21:22.292][729889][][gs_ctl]: waiting for server to start...
.0 LOG: [Alarm Module]Host Name: localhost.localdomain
0 LOG: [Alarm Module]Host IP: 127.0.0.1
0 LOG: [Alarm Module]Cluster Name: gbase
0 LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
0 WARNING: failed to open feature control file, please check whether it exists: FileName=gaussdb.version, Errno=2, Errmessage=No such file or directory.
0 WARNING: failed to parse feature control file: gaussdb.version. 0 WARNING: Failed to load the product control file, so gaussdb cannot distinguish product version.
The core dump path is an invalid directory 2025-10-22 14:21:22.708 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 DB010 0 [REDO] LOG: Recovery parallelism, cpu count = 16, max = 4, actual = 4 2025-10-22 14:21:22.708 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 DB010 0 [REDO] LOG: ConfigRecoveryParallelism, true_max_recovery_parallelism:4, max_recovery_parallelism:4
gaussdb.state does not exist, and skipt setting since it is optional.2025-10-22 14:21:22.728 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: [Alarm Module]Host Name: localhost.localdomain
2025-10-22 14:21:22.728 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: [Alarm Module]Host IP: 127.0.0.1
2025-10-22 14:21:22.728 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: [Alarm Module]Cluster Name: gbase
2025-10-22 14:21:22.728 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: [Alarm Module]Invalid data in AlarmItem file! Read alarm English name failed! line: 57
2025-10-22 14:21:23.069 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: loaded library "security_plugin"
2025-10-22 14:21:23.070 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2025-10-22 14:21:23.070 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 01000 0 [BACKEND] WARNING: could not create any HA TCP/IP sockets
2025-10-22 14:21:23.125 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 00000 0 [BACKEND] LOG: InitNuma numaNodeNum: 1 numa_distribute_mode: none inheritThreadPool: 0.
2025-10-22 14:21:23.125 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 01000 0 [BACKEND] WARNING: Failed to initialize the memory protect for g_instance.attr.attr_storage.cstore_buffers (1024 Mbytes) or shared memory (4495 Mbytes) is larger.
2025-10-22 14:21:23.130 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 42809 0 [BACKEND] FATAL: could not create shared memory segment: No space left on device
2025-10-22 14:21:23.130 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 42809 0 [BACKEND] DETAIL: Failed system call was shmget(key=15432001, size=4713553920, 03600).
2025-10-22 14:21:23.130 68f877e2.1 [unknown] 139829471519424 [unknown] 0 dn1 42809 0 [BACKEND] HINT: This error does *not* mean that you have run out of disk space. It occurs either if all available shared memory IDs have been taken, in which case you need to raise the SHMMNI parameter in your kernel, or because the system's overall limit for shared memory has been reached. If you cannot increase the shared memory limit, reduce openGauss's shared memory request (currently 4713553920 bytes), perhaps by reducing shared_buffers.
或者是不是可以用单机部署的方式来用安装gbase,我们更倾向于这种解决方案。但是官网可以获取到的安装包里,使用simpleInstall/install.sh脚本会报错,报错的内容是在数据库init阶段(完整报错在帖子正文):
gs_initdb: openGauss nodetype is mandatory, use -Z coordiantor/datanode to specify nodetype
有些怀疑是不是这个gs_initdb是分布式安装包里的,错放到了单机安装包里?或者install.sh没有更新?

根据报错信息,请检查下gbase用户是否具有sudo权限,并编辑环境变量注释掉ulimit那行。再执行试试

热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25044
- 42023-09-25浏览数:18519
- 52020-05-11浏览数:17526