• ceph 守护进程管理


    Running Ceph with systemd

    For all distributions that support systemd (CentOS 7, Fedora, Debian Jessie 8 and later, SUSE), ceph daemons are now managed using native systemd files instead of the legacy sysvinit scripts. For example:

    sudo systemctl start ceph.target       # start all daemons
    sudo systemctl status ceph-osd@12      # check status of osd.12
    

    To list the Ceph systemd units on a node, execute:

    sudo systemctl status ceph*.service ceph*.target
    

    Starting all Daemons

    To start all daemons on a Ceph Node (irrespective of type), execute the following:

    sudo systemctl start ceph.target
    

    Stopping all Daemons

    To stop all daemons on a Ceph Node (irrespective of type), execute the following:

    sudo systemctl stop ceph*.service ceph*.target
    

    Starting all Daemons by Type

    To start all daemons of a particular type on a Ceph Node, execute one of the following:

    sudo systemctl start ceph-osd.target
    sudo systemctl start ceph-mon.target
    sudo systemctl start ceph-mds.target
    

    Stopping all Daemons by Type

    To stop all daemons of a particular type on a Ceph Node, execute one of the following:

    sudo systemctl stop ceph-mon*.service ceph-mon.target
    sudo systemctl stop ceph-osd*.service ceph-osd.target
    sudo systemctl stop ceph-mds*.service ceph-mds.target
    

    Starting a Daemon

    To start a specific daemon instance on a Ceph Node, execute one of the following:

    sudo systemctl start ceph-osd@{id}
    sudo systemctl start ceph-mon@{hostname}
    sudo systemctl start ceph-mds@{hostname}
    

    For example:

    sudo systemctl start ceph-osd@1
    sudo systemctl start ceph-mon@ceph-server
    sudo systemctl start ceph-mds@ceph-server
    

    Stopping a Daemon

    To stop a specific daemon instance on a Ceph Node, execute one of the following:

    sudo systemctl stop ceph-osd@{id}
    sudo systemctl stop ceph-mon@{hostname}
    sudo systemctl stop ceph-mds@{hostname}
    

    For example:

    sudo systemctl stop ceph-osd@1
    sudo systemctl stop ceph-mon@ceph-server
    sudo systemctl stop ceph-mds@ceph-server
    
  • 相关阅读:
    Centos下安装Redis
    BZOJ 4870 [Shoi2017]组合数问题 ——动态规划 矩阵乘法
    BZOJ 4868 [Shoi2017]期末考试 ——三分 枚举
    BZOJ 4584 [Apio2016]赛艇 ——动态规划
    BZOJ 2806 [Ctsc2012]Cheat ——后缀自动机 单调队列优化DP
    BZOJ 2330 [SCOI2011]糖果 ——差分约束系统 SPFA
    Topcoder SRMCards ——贪心
    CTSC 1999 家园 【网络流24题】星际转移
    BZOJ 3489 A simple rmq problem ——KD-Tree
    BZOJ 2733 [HNOI2012]永无乡 ——线段树 并查集
  • 原文地址:https://www.cnblogs.com/weifeng1463/p/13744124.html
Copyright © 2020-2023  润新知