当前位置:   article > 正文

BCLinux8U6系统部署oceanbase分布式数据库社区版之一、准备 OBD 中控机

BCLinux8U6系统部署oceanbase分布式数据库社区版之一、准备 OBD 中控机

本文记录了在BCLinux8U6操作系统的虚拟服务器准备oceanbase开源数据库的 OBD 中控机的过程。

一、中控机环境

1、虚拟服务器硬件配置

2、操作系统版本信息

  1. [root@localhost ~]# cat /etc/os-release
  2. NAME="BigCloud Enterprise Linux"
  3. VERSION="8.6 (Core)"
  4. ID="bclinux"
  5. ID_LIKE="rhel fedora"
  6. VERSION_ID="8.6"
  7. PLATFORM_ID="platform:an8"
  8. PRETTY_NAME="BigCloud Enterprise Linux 8.6 (Core)"
  9. ANSI_COLOR="0;31"
  10. CPE_NAME="cpe:/o:bclinux:bclinux:8"
  11. HOME_URL="https://mirrors.bclinux.org/"
  12. BUG_REPORT_URL="https://bugs.bclinux.org/"
  13. BCLINUX_BUGZILLA_PRODUCT="BigCloud Enterprise Linux 8 (Core)"
  14. BCLINUX_BUGZILLA_PRODUCT_VERSION=8.6
  15. BCLINUX_SUPPORT_PRODUCT="BigCloud Enterprise Linux 8 (Core)"
  16. BCLINUX_SUPPORT_PRODUCT_VERSION=8.6

3、初始化数据盘

  1. [root@localhost ~]# fdisk -l |grep /sdb
  2. Disk /dev/sdb:100 GiB,107374182400 字节,209715200 个扇区
  3. [root@localhost ~]# fdisk /dev/sdb
  4. 欢迎使用 fdisk (util-linux 2.32.1)。
  5. 更改将停留在内存中,直到您决定将更改写入磁盘。
  6. 使用写入命令前请三思。
  7. 设备不包含可识别的分区表。
  8. 创建了一个磁盘标识符为 0xf826c593 的新 DOS 磁盘标签。
  9. 命令(输入 m 获取帮助):n
  10. 分区类型
  11. p 主分区 (0个主分区,0个扩展分区,4空闲)
  12. e 扩展分区 (逻辑分区容器)
  13. 选择 (默认 p):p
  14. 分区号 (1-4, 默认 1):
  15. 第一个扇区 (2048-209715199, 默认 2048):
  16. 上个扇区,+sectors 或 +size{K,M,G,T,P} (2048-209715199, 默认 209715199):
  17. 创建了一个新分区 1,类型为“Linux”,大小为 100 GiB。
  18. 命令(输入 m 获取帮助):w
  19. 分区表已调整。
  20. 将调用 ioctl() 来重新读分区表。
  21. 正在同步磁盘。
  22. [root@localhost ~]# fdisk -l |grep /sdb
  23. Disk /dev/sdb:100 GiB,107374182400 字节,209715200 个扇区
  24. /dev/sdb1 2048 209715199 209713152 100G 83 Linux
  25. [root@localhost ~]# pvcreate /dev/sdb1
  26. Physical volume "/dev/sdb1" successfully created.
  27. [root@localhost ~]# vgcreate appvg /dev/sdb1
  28. Volume group "appvg" successfully created
  29. [root@localhost ~]# lvcreate -n applv -l 100%vg /dev/appvg
  30. Logical volume "applv" created.
  31. [root@localhost ~]# lvs|grep applv
  32. applv appvg -wi-a----- <100.00g
  33. [root@localhost ~]# mkfs.xfs -m bigtime=1 /dev/appvg/applv
  34. meta-data=/dev/appvg/applv isize=512 agcount=4, agsize=6553344 blks
  35. = sectsz=512 attr=2, projid32bit=1
  36. = crc=1 finobt=1, sparse=1, rmapbt=0
  37. = reflink=1 bigtime=1 inobtcount=0
  38. data = bsize=4096 blocks=26213376, imaxpct=25
  39. = sunit=0 swidth=0 blks
  40. naming =version 2 bsize=4096 ascii-ci=0, ftype=1
  41. log =internal log bsize=4096 blocks=12799, version=2
  42. = sectsz=512 sunit=0 blks, lazy-count=1
  43. realtime =none extsz=4096 blocks=0, rtextents=0
  44. [root@localhost ~]# vi /etc/fstab
  45. [root@localhost ~]# cat /etc/fstab |grep /app
  46. /dev/appvg/applv /app xfs defaults 0 0
  47. [root@localhost ~]# mkdir /app
  48. [root@localhost ~]# mount -a
  49. [root@localhost ~]# df -hT |grep /app
  50. /dev/mapper/appvg-applv xfs 100G 746M 100G 1% /app

二、准备OceanBase一键安装包

1、下载地址及软件包选项如下

 2、直链下载链接

oceanbase-all-in-one-4.2.2.0-100010012024022719.el8.x86_64

 三、部署过程

1、将软件包传到中控制服务器上对应目录下进行解压

  1. [root@localhost app]# ll
  2. 总用量 511288
  3. -rw-r----- 1 AAAA AAAA 523556648 4月 15 14:11 oceanbase-all-in-one-4.2.2.0-100010012024022719.el8.x86_64.tar.gz
  4. [root@localhost app]# ll
  5. 总用量 511288
  6. -rw-r----- 1 AAAA AAAA 523556648 4月 15 14:11 oceanbase-all-in-one-4.2.2.0-100010012024022719.el8.x86_64.tar.gz
  7. [root@localhost app]# tar -xzf oceanbase-all-in-one-4.2.2.0-100010012024022719.el8.x86_64.tar.gz

2、开始安装

  1. [root@localhost app]# cd oceanbase-all-in-one/bin/
  2. [root@localhost bin]# ./install.sh
  3. name: grafana
  4. version: 7.5.17
  5. release:1
  6. arch: x86_64
  7. md5: 1bf1f338d3a3445d8599dc6902e7aeed4de4e0d6
  8. add /app/oceanbase-all-in-one/rpms/grafana-7.5.17-1.el8.x86_64.rpm to local mirror
  9. name: obagent
  10. version: 4.2.2
  11. release:100000042024011120.el8
  12. arch: x86_64
  13. md5: bf152b880953c2043ddaf80d6180cf22bb8c8ac2
  14. add /app/oceanbase-all-in-one/rpms/obagent-4.2.2-100000042024011120.el8.x86_64.rpm to local mirror
  15. name: ob-configserver
  16. version: 1.0.0
  17. release:2.el8
  18. arch: x86_64
  19. md5: 664f93205c913d5dc84e0779d565768fd60f1d5e
  20. add /app/oceanbase-all-in-one/rpms/ob-configserver-1.0.0-2.el8.x86_64.rpm to local mirror
  21. name: ob-deploy
  22. version: 2.6.1
  23. release:6.el8
  24. arch: x86_64
  25. md5: 76cf29897ee5dcc177a5d91c7953c08e2640b64e
  26. add /app/oceanbase-all-in-one/rpms/ob-deploy-2.6.1-6.el8.x86_64.rpm to local mirror
  27. name: obproxy-ce
  28. version: 4.2.1.0
  29. release:11.el8
  30. arch: x86_64
  31. md5: 6b1c8edcc1606189c94090acd2131e73899d1a61
  32. add /app/oceanbase-all-in-one/rpms/obproxy-ce-4.2.1.0-11.el8.x86_64.rpm to local mirror
  33. name: oceanbase-ce
  34. version: 4.2.2.0
  35. release:100010012024022719.el8
  36. arch: x86_64
  37. md5: 5d2a012023c63e651a979e1cbcbf096d9340b7d3
  38. add /app/oceanbase-all-in-one/rpms/oceanbase-ce-4.2.2.0-100010012024022719.el8.x86_64.rpm to local mirror
  39. name: oceanbase-ce-libs
  40. version: 4.2.2.0
  41. release:100010012024022719.el8
  42. arch: x86_64
  43. md5: 80c88c1a3a1434725281c2d425ec31832cf66116
  44. add /app/oceanbase-all-in-one/rpms/oceanbase-ce-libs-4.2.2.0-100010012024022719.el8.x86_64.rpm to local mirror
  45. name: oceanbase-diagnostic-tool
  46. version: 1.5.2
  47. release:22024010415.el8
  48. arch: x86_64
  49. md5: 19a5f5754bf37d45132804639317b0c8b415cd59
  50. add /app/oceanbase-all-in-one/rpms/oceanbase-diagnostic-tool-1.5.2-22024010415.el8.x86_64.rpm to local mirror
  51. name: ocp-express
  52. version: 4.2.2
  53. release:100000022024011120.el8
  54. arch: x86_64
  55. md5: e5c152ebdd65839ed5f5521ff6c73e6a29cb9e75
  56. add /app/oceanbase-all-in-one/rpms/ocp-express-4.2.2-100000022024011120.el8.x86_64.rpm to local mirror
  57. name: prometheus
  58. version: 2.37.1
  59. release:10000102022110211.el8
  60. arch: x86_64
  61. md5: e4f8a3e784512fca75bf1b3464247d1f31542cb9
  62. add /app/oceanbase-all-in-one/rpms/prometheus-2.37.1-10000102022110211.el8.x86_64.rpm to local mirror
  63. Trace ID: 317af08c-faf0-11ee-93e4-005056ab87e9
  64. If you want to view detailed obd logs, please run: obd display-trace 317af08c-faf0-11ee-93e4-005056ab87e9
  65. Disable remote ok
  66. Trace ID: 326fbbb2-faf0-11ee-949c-005056ab87e9
  67. If you want to view detailed obd logs, please run: obd display-trace 326fbbb2-faf0-11ee-949c-005056ab87e9
  68. add auto set env logic to profile: /root/.bash_profile
  69. #########################################################################################
  70. Install Finished
  71. =========================================================================================
  72. Setup Environment: source ~/.oceanbase-all-in-one/bin/env.sh
  73. Quick Start: obd demo
  74. Use Web Service to install: obd web
  75. Use Web Service to upgrade: obd web upgrade
  76. More Details: obd -h
  77. =========================================================================================
  78. [root@localhost bin]#

三、启动OBD部署向导

1、启动OBD部署向导web服务

  1. [root@localhost bin]# source ~/.oceanbase-all-in-one/bin/env.sh
  2. [root@localhost bin]# obd web
  3. start OBD WEB in 0.0.0.0:8680
  4. please open http://127.0.0.1:8680

2、远程通过web访问部署中控机的向导页面 

现在即可通过向导进行后续安装操作了。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/471464
推荐阅读
相关标签
  

闽ICP备14008679号