Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the OSD-related commands of Ceph common commands

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the Ceph commonly used commands of OSD-related commands, the article is very detailed, has a certain reference value, interested friends must read it!

Set an OSD flag:

Ceph osd add-nodown | add-noout | add-noin | add-noup for example: ceph osd add-noout osd.0 (set OSD 0 to noout status)

Delete an OSD tag:

Ceph osd rm-nodown | add-noout | add-noin | add-noup for example: ceph osd rm-noout osd.0 (delete OSD 0 to noout status)

Set (delete) the OSD global label:

Ceph osd set (unset) noout | nodown | noin | noup

Output the OSD id list under the given CRUSH name, such as host or rack name:

Ceph osd ls-tree

Output the last n lines of the cluster log

Ceph log last [n]

The proportion of the cluster scope is set to various full thresholds:

Ceph osd set- {full,nearfull,backfillfull}-ratio

View the information of a certain osd

# ceph osd dump 2epoch 2fsid b0993da0-a47c-11e7-bd54-744aa402e506created 2017-09-29 02:46:01.357140modified 2017-09-29 02:49:46.218628flags sortbitwise,recovery_deletescrush_version 1full_ratio 0.95backfillfull_ratio 0.9nearfull_ratio 0.85require_min_compat_client jewelmin_compat_client jewelrequire_osd_release luminousmax_osd 1osd.0 down out weight 0 up_from 0 up_thru 0 down_at 0 last_clean_interval-exists,new 3786cd78-77a1-4447-974e-37b7760a5965

All traces of OSD, including its cephx encryption key, dm-crypt lockbox key, OSD ID and crush map entry, will be removed from the cluster

Ceph osd purge {--yes-i-really-mean-it} # ceph osd purge 1-- yes-i-really-mean-itpurged osd.1 found that osd is no longer in the cluster # ceph osd tree-1 0.04799 root default-2 0.00999 host luminous0 5 0.00999 osd.5 up 1.00000 1.00000-3 0.01900 host luminous2 0 0.00999 osd.0 Up 1.00000 1.00000 4 0.00999 osd.4 up 1.00000 1.00000-4 0.01900 host luminous1 2 0.00999 osd.2 up 1.00000 1.00000 3 0.00999 osd.3 up 1.00000 1.00000 and above are "Ceph common commands" What are the OSD related commands? all the contents of this article Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report