[关闭]
@dyj2017 2017-10-23T14:29:49.000000Z 字数 665 阅读 1530

防止集群数据恢复设置

ceph ceph运维


有些场景下,对osd进行一些操作,但是并不想要集群进行数据恢复,此时,可以通过设置noout标志来实现:

  1. [root@node3 ~]# ceph osd set noout
  2. noout is set
  3. [root@node3 ~]# ceph -s
  4. cluster:
  5. id: b8b4aa68-d825-43e9-a60a-781c92fec20e
  6. health: HEALTH_WARN
  7. noout flag(s) set
  8. services:
  9. mon: 1 daemons, quorum node1
  10. mgr: node1(active)
  11. osd: 6 osds: 6 up, 6 in
  12. flags noout
  13. data:
  14. pools: 0 pools, 0 pgs
  15. objects: 0 objects, 0 bytes
  16. usage: 6339 MB used, 55100 MB / 61440 MB avail
  17. pgs:

去除noout标志命令:

  1. [root@node3 ~]# ceph osd unset noout
  2. noout is unset
  3. [root@node3 ~]# ceph -s
  4. cluster:
  5. id: b8b4aa68-d825-43e9-a60a-781c92fec20e
  6. health: HEALTH_OK
  7. services:
  8. mon: 1 daemons, quorum node1
  9. mgr: node1(active)
  10. osd: 6 osds: 6 up, 6 in
  11. data:
  12. pools: 0 pools, 0 pgs
  13. objects: 0 objects, 0 bytes
  14. usage: 6339 MB used, 55100 MB / 61440 MB avail
  15. pgs:
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注