OB单机虚拟机安装配置咨询

【 使用环境 】测试环境
【 OB or 其他组件 】OB
【 使用版本 】4.3.4
【问题描述】麻烦帮忙评估下配置文件是否正确配置
【复现路径】问题出现前后相关操作
【附件及日志】本人虚拟机安装OceanBase用于测试环境使用,虚拟机信息如下:

  • 操作系统:麒麟V10
cat /etc/os-release 
NAME="Kylin Linux Advanced Server"
VERSION="V10 (Lance)"
ID="kylin"
VERSION_ID="V10"
PRETTY_NAME="Kylin Linux Advanced Server V10 (Lance)"
ANSI_COLOR="0;31"

CPU:6核

lscpu
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   48 bits physical, 48 bits virtual
CPU(s):                          6
On-line CPU(s) list:             0-5
Thread(s) per core:              1
Core(s) per socket:              1
Socket(s):                       6
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      16
Model:                           2
Model name:                      Opteron_G3
Stepping:                        3
CPU MHz:                         2499.994
BogoMIPS:                        4999.98
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       384 KiB
L1i cache:                       384 KiB
L2 cache:                        3 MiB
L3 cache:                        96 MiB
NUMA node0 CPU(s):               0-5
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Mmio stale data:   Not affected
Vulnerability Retbleed:          Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Mitigation; Retpolines, STIBP disabled, RSB filling, PBRSB-eIBRS Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm rep_good nopl cpuid extd_apicid tsc_known_freq pni cx16 x2apic popcnt hypervisor lahf
                                 _lm abm sse4a misalignsse 3dnowprefetch vmmcall
  • 内存:28GiB
free -m
              total        used        free      shared  buff/cache   available
Mem:          26791         359       25998          64         434       23003
Swap:          6143           0        6143
  • 硬盘信息如下:
lsblk
NAME                MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sr0                  11:0    1 1024M  0 rom  
vda                 252:0    0   50G  0 disk 
├─vda1              252:1    0    1M  0 part 
├─vda2              252:2    0  512M  0 part /boot
└─vda3              252:3    0 49.5G  0 part 
  ├─VolGroup-rootlv 253:0    0    4G  0 lvm  /
  ├─VolGroup-swaplv 253:1    0    6G  0 lvm  [SWAP]
  ├─VolGroup-usrlv  253:2    0    6G  0 lvm  /usr
  ├─VolGroup-varlv  253:4    0    4G  0 lvm  /var
  ├─VolGroup-tmplv  253:5    0    4G  0 lvm  /tmp
  ├─VolGroup-optlv  253:8    0    2G  0 lvm  /opt
  └─VolGroup-homelv 253:9    0    4G  0 lvm  /home
vdb                 252:16   0  250G  0 disk 
├─vgdata-home       253:3    0   10G  0 lvm  /home/admin
├─vgdata-data       253:6    0   50G  0 lvm  /data
└─vgdata-redo       253:7    0   50G  0 lvm  /redo
  • ob-deploy的配置文件如下:
oceanbase-ce:
  servers:
    # Please don't use hostname, only IP can be supported
    - 192.168.137.200
  global:
    #  The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
    home_path: /home/admin/observer
    # The directory for data storage. The default value is $home_path/store.
    data_dir: /data
    # The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
    redo_dir: /redo
    # Starting from observer version 4.2, the network selection for the observer is based on the 'local_ip' parameter, and the 'devname' parameter is no longer mandatory.
    # If the 'local_ip' parameter is set, the observer will first use this parameter for the configuration, regardless of the 'devname' parameter.
    # If only the 'devname' parameter is set, the observer will use the 'devname' parameter for the configuration.
    # If neither the 'devname' nor the 'local_ip' parameters are set, the 'local_ip' parameter will be automatically assigned the IP address configured above.
    # devname: eth0
    mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
    rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
    obshell_port: 2886 # Operation and maintenance port for Oceanbase Database. The default value is 2886. This parameter is valid only when the version of oceanbase-ce is 4.2.2.0 or later.
    zone: zone1
    cluster_id: 1
    # please set memory limit to a suitable value which is matching resource. 
    memory_limit_percentage: 80
    system_memory: 3G # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
    datafile_size: 32G # Size of the data file. 
    datafile_next: 2G # the auto extend step. Please enter an capacity, such as 2G
    datafile_maxsize: 150G # the auto extend max size. Please enter an capacity, such as 20G
    log_disk_size: 66G # The size of disk space used by the clog files.
    cpu_count: 6
    production_mode: false
    enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.
    max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
    # observer cluster name, consistent with obproxy's cluster_name
    appname: oyjf-pzy-test
    # root_password: # root user password, can be empty
    # proxyro_password: # proxyro user pasword, consistent with obproxy's observer_sys_password, can be empty

按照这个配置运行了,没几分钟就core dump了。也不知道如何解决。

1 个赞

明确有CORE文件的话,可以上传,或者把日志发一下。
明确CORE的话,跟系统库的关系比较大,可能有兼容性问题。

OB在麒麟社区上有直接在麒麟上打的包,我找下,稍后给你连接

1 个赞

能否将core的堆栈发一下

1 个赞

玉楼老师分析了coredump,发现是海光基于国产C86的CPU指令没有提供avx的指令集,导致使用阿里提供的el8 x86_64的RPM包安装之后出现BUG,导致了core dump,后续通过使用ky10专用的4.2.1.7版本的RPM安装之后,不再出现core dump,感谢玉楼老师的鼎力支持

2 个赞