zoukankan      html  css  js  c++  java
  • 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
    
  • 相关阅读:
    1、听说过Redis吗?它是什么?
    55、数据库高并发是我们经常会遇到的,你有什么好的解决方案吗?
    54、数据库如何保证持久性?
    53、数据库如何保证原子性?
    52、数据库如何保证一致性?
    注解定义、基本语法和属性
    Macbook 装机必备--开发篇
    http
    python:beaufiful
    python-yield
  • 原文地址:https://www.cnblogs.com/weifeng1463/p/13744124.html
Copyright © 2011-2022 走看看