• oceanbase的目录及启动关闭


    [admin@213992b864c8 ~]$ cd oceanbase-ce/
    [admin@213992b864c8 oceanbase-ce]$ ls
    admin bin etc etc2 etc3 lib log run store
    [admin@213992b864c8 oceanbase-ce]$ tree
    .
    |-- admin
    |-- bin
    | -- observer -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/bin/observer |-- etc | |-- observer.config.bin | -- observer.config.bin.history
    |-- etc2
    | |-- observer.conf.bin
    | -- observer.conf.bin.history |-- etc3 | |-- observer.conf.bin | -- observer.conf.bin.history
    |-- lib
    | |-- libaio.so -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/lib/libaio.so
    | |-- libaio.so.1 -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/lib/libaio.so.1
    | |-- libaio.so.1.0.1 -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/lib/libaio.so.1.0.1
    | |-- libmariadb.so -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/lib/libmariadb.so
    | -- libmariadb.so.3 -> /home/admin/.obd/repository/oceanbase-ce/3.1.1/c8d49673b8b01056ab1d6abc9d26dd6987d95a48/lib/libmariadb.so.3 |-- log | |-- election.log | |-- election.log.wf | |-- observer.log | |-- observer.log.wf | |-- rootservice.log | -- rootservice.log.wf
    |-- run
    | |-- mysql.sock
    | -- observer.pid -- store
    |-- clog -> /data/log1/clog
    |-- ilog -> /data/log1/ilog
    |-- slog -> /data/log1/slog
    -- sstable -- block_file

    13 directories, 21 files

    [admin@213992b864c8 ~]$ obd cluster stop obdemo 关闭集群
    Get local repositories and plugins ok
    Open ssh connection ok
    Stop observer ok
    Stop obproxy ok
    obdemo stopped
    [admin@213992b864c8 ~]$ obd cluster display obdemo 查看
    Deploy "obdemo" is stopped

    [admin@213992b864c8 ~]$ obd cluster start obdemo -0--启动
    Get local repositories and plugins ok
    Open ssh connection ok
    Cluster param config check ok
    Check before start observer ok
    Check before start obproxy ok
    Start observer ok
    observer program health check ok
    Connect to observer ok
    Wait for observer init ok
    +---------------------------------------------+
    | observer |
    +-----------+---------+------+-------+--------+
    | ip | version | port | zone | status |
    +-----------+---------+------+-------+--------+
    | 127.0.0.1 | 3.1.1 | 2881 | zone1 | active |
    +-----------+---------+------+-------+--------+

    Start obproxy ok
    obproxy program health check x
    [WARN] failed to start 127.0.0.1 obproxy
    [ERROR] obproxy start failed

    [admin@213992b864c8 ~]$ obd cluster start obdemo 启动失败,重新 启动
    Get local repositories and plugins ok
    Open ssh connection ok
    Cluster param config check ok
    Check before start observer ok
    Check before start obproxy ok
    Start observer ok
    observer program health check ok
    Connect to observer ok
    Wait for observer init ok
    +---------------------------------------------+
    | observer |
    +-----------+---------+------+-------+--------+
    | ip | version | port | zone | status |
    +-----------+---------+------+-------+--------+
    | 127.0.0.1 | 3.1.1 | 2881 | zone1 | active |
    +-----------+---------+------+-------+--------+

    Start obproxy ok
    obproxy program health check ok
    Connect to obproxy ok
    Initialize cluster
    +---------------------------------------------+
    | obproxy |
    +-----------+------+-----------------+--------+
    | ip | port | prometheus_port | status |
    +-----------+------+-----------------+--------+
    | 127.0.0.1 | 2883 | 2884 | active |
    +-----------+------+-----------------+--------+
    obdemo running

    [admin@213992b864c8 ~]$ obd cluster display obdemo --查看ob集群运行状态
    Get local repositories and plugins ok
    Open ssh connection ok
    Cluster status check ok
    Connect to observer ok
    Wait for observer init ok
    +---------------------------------------------+
    | observer |
    +-----------+---------+------+-------+--------+
    | ip | version | port | zone | status |
    +-----------+---------+------+-------+--------+
    | 127.0.0.1 | 3.1.1 | 2881 | zone1 | active |
    +-----------+---------+------+-------+--------+

    Connect to obproxy ok
    +---------------------------------------------+
    | obproxy |
    +-----------+------+-----------------+--------+
    | ip | port | prometheus_port | status |
    +-----------+------+-----------------+--------+
    | 127.0.0.1 | 2883 | 2884 | active |
    +-----------+------+-----------------+--------+

    ------道不行,乘桴浮于海!------ ------欲讷于言,而敏于行!-------
  • 相关阅读:
    星空雅梦
    星空雅梦
    星空雅梦
    星空雅梦
    星空雅梦
    星空雅梦
    code=exited,status=1/failure;failed to start LSB:Bring up/down networking
    Eclipse安装AmaterasUML插件问题
    Navicat如何导出Excel格式表结构
    powerdesigner生成mysql带注释的ER图
  • 原文地址:https://www.cnblogs.com/dh17/p/15645422.html
Copyright © 2020-2023  润新知