zoukankan      html  css  js  c++  java
  • 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 |
    +-----------+------+-----------------+--------+

    ------道不行,乘桴浮于海!------ ------欲讷于言,而敏于行!-------
  • 相关阅读:
    2018年7月10日笔记
    2018年7月7日笔记
    2018年7月5日笔记
    2018年7月3日笔记
    sed 命令详解
    《软件构架实践》阅读笔记01
    《掌握需求过程》阅读笔记06
    《掌握需求过程》阅读笔记05
    第十二周进度条
    《掌握需求过程》阅读笔记04
  • 原文地址:https://www.cnblogs.com/dh17/p/15645422.html
Copyright © 2011-2022 走看看