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

How to use ceph admin socket

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is to share with you about how to use ceph admin socket. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Ceph admin socket

The online parameters of ceph can be obtained by using ceph admin socket, which is very helpful for verification and debugging.

$ceph--admin-daemon / path/to/your/ceph/socket [root@osd2 ~] # ceph--admin-daemon / var/run/ceph/ceph-osd.4.asok help {"config diff": "dump diff of current config and default config", "config get": "config get: get the config value", "config set": "config set [...]: set a config variable", "config show": "dump current config settings" "dump_blacklist": "dump blacklisted clients and times", "dump_historic_ops": "show slowest recent ops", "dump_op_pq_state": "dump op priority queue state", "dump_ops_in_flight": "show the ops currently in flight", "dump_reservations": "show recovery reservations", "dump_watchers": "show clients which have active watches, and on which objects", "flush_journal": "flush the journal to permanent store" "get_command_descriptions": "list available commands", "getomap": "output entire object map", "git_version": "get git sha1", "help": "list available commands", "injectdataerr": "injectdata error into omap", "injectmdataerr": "inject metadata error", "log dump": "dump recent log entries to log file", "log flush": "flush log entries to log file", "log reopen": "reopen log file" "objecter_requests": "show in-progress osd requests", "perf dump": "dump perfcounters value", "perf schema": "dump perfcounters schema", "rmomapkey": "remove omapkey", "setomapheader": "setomapheader", "setomapval": "setomap key", "status": "high-level status of OSD", "truncobj": "truncate object to length", "version": "get ceph version"}

Get the parameter settings related to journal:

[root@osd2 ~] # ceph--admin-daemon / var/run/ceph/ceph-mon.osd2.asok config show | grep journal "debug_journaler": "0\ / 5", "debug_journal": "1\ / 3", "journaler_allow_split_entries": "true", "journaler_write_head_interval": "15", "journaler_prefetch_periods": "10", "journaler_prezero_periods": "5" "journaler_batch_interval": "0.001", "journaler_batch_max": "0", "mds_kill_journal_at": "0", "mds_kill_journal_expire_at": "0", "mds_kill_journal_replay_at": "0", "mds_journal_format": "1", "osd_journal": "\ / var\ / lib\ / ceph\ / osd / ceph-osd2\ / journal" Osd_journal_size: "5120", "filestore_fsync_flushes_journal_data": "false", "filestore_journal_parallel": "false", "filestore_journal_writeahead": "false", "filestore_journal_trailing": "false", "journal_dio": "true", "journal_aio": "true", "journal_force_aio": "false", "journal_max_corrupt_search": "10485760" "journal_block_align": "true", "journal_write_header_frequency": "0", "journal_max_write_bytes": "10485760", "journal_max_write_entries": "10485760", "journal_queue_max_ops": "33554432", "journal_queue_max_bytes": "33554432", "journal_align_min_size": "65536", "journal_replay_from": "0" "journal_zero_on_create": "false", "journal_ignore_corruption": "false", thanks for reading! This is the end of the article on "how to use ceph admin socket". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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

Development

Wechat

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

12
Report