您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
本篇内容介绍了“OSD磁盘日常监控方法是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
1.磁盘碎片管理
查看磁盘碎片 xfs_db -c frag -r /dev/sdb1 actual 981, ideal 964, fragmentation factor 1.73% 整理碎片 xfs_fsr /dev/sdb1
2.OSD磁盘性能
root@demo:~# ceph --admin-daemon /var/run/ceph/ceph-osd.0.asok perf dump { "WBThrottle": { "bytes_dirtied": 0, "bytes_wb": 0, "ios_dirtied": 0, "ios_wb": 0, "inodes_dirtied": 0, "inodes_wb": 0 }, "filestore": { "journal_queue_max_ops": 300, "journal_queue_ops": 0, "journal_ops": 3210, "journal_queue_max_bytes": 33554432, "journal_queue_bytes": 0, "journal_bytes": 5007708, "journal_latency": { "avgcount": 3210, "sum": 9.786657669 }, "journal_wr": 2643, "journal_wr_bytes": { "avgcount": 2643, "sum": 13221888 }, "journal_full": 0, "committing": 0, "commitcycle": 270, "commitcycle_interval": { "avgcount": 270, "sum": 1352.249982669 }, "commitcycle_latency": { "avgcount": 270, "sum": 2.088010691 }, "op_queue_max_ops": 50, "op_queue_ops": 0, "ops": 3210, "op_queue_max_bytes": 104857600, "op_queue_bytes": 0, "bytes": 4962768, "apply_latency": { "avgcount": 3210, "sum": 34.241022045 }, "queue_transaction_latency_avg": { "avgcount": 3210, "sum": 0.431766161 } }, "leveldb": { "leveldb_get": 1064, "leveldb_transaction": 5662, "leveldb_compact": 0, "leveldb_compact_range": 0, "leveldb_compact_queue_merge": 0, "leveldb_compact_queue_len": 0 }, "mutex-FileJournal::completions_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-FileJournal::finisher_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-FileJournal::write_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-FileJournal::writeq_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-JOS::ApplyManager::apply_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-JOS::ApplyManager::com_lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-JOS::SubmitManager::lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "mutex-WBThrottle::lock": { "wait": { "avgcount": 0, "sum": 0.000000000 } }, "objecter": { "op_active": 0, "op_laggy": 0, "op_send": 0, "op_send_bytes": 0, "op_resend": 0, "op_ack": 0, "op_commit": 0, "op": 0, "op_r": 0, "op_w": 0, "op_rmw": 0, "op_pg": 0, "osdop_stat": 0, "osdop_create": 0, "osdop_read": 0, "osdop_write": 0, "osdop_writefull": 0, "osdop_append": 0, "osdop_zero": 0, "osdop_truncate": 0, "osdop_delete": 0, "osdop_mapext": 0, "osdop_sparse_read": 0, "osdop_clonerange": 0, "osdop_getxattr": 0, "osdop_setxattr": 0, "osdop_cmpxattr": 0, "osdop_rmxattr": 0, "osdop_resetxattrs": 0, "osdop_tmap_up": 0, "osdop_tmap_put": 0, "osdop_tmap_get": 0, "osdop_call": 0, "osdop_watch": 0, "osdop_notify": 0, "osdop_src_cmpxattr": 0, "osdop_pgls": 0, "osdop_pgls_filter": 0, "osdop_other": 0, "linger_active": 0, "linger_send": 0, "linger_resend": 0, "linger_ping": 0, "poolop_active": 0, "poolop_send": 0, "poolop_resend": 0, "poolstat_active": 0, "poolstat_send": 0, "poolstat_resend": 0, "statfs_active": 0, "statfs_send": 0, "statfs_resend": 0, "command_active": 0, "command_send": 0, "command_resend": 0, "map_epoch": 307, "map_full": 0, "map_inc": 4, "osd_sessions": 0, "osd_session_open": 0, "osd_session_close": 0, "osd_laggy": 0 }, "osd": { "op_wip": 0, "op": 23405, "op_in_bytes": 0, "op_out_bytes": 1171017, "op_latency": { "avgcount": 23405, "sum": 55.533429364 }, "op_process_latency": { "avgcount": 23405, "sum": 17.161994525 }, "op_r": 311, "op_r_out_bytes": 1171017, "op_r_latency": { "avgcount": 311, "sum": 0.678950936 }, "op_r_process_latency": { "avgcount": 311, "sum": 0.432590809 }, "op_w": 252, "op_w_in_bytes": 0, "op_w_rlat": { "avgcount": 3, "sum": 0.013514400 }, "op_w_latency": { "avgcount": 252, "sum": 0.919190656 }, "op_w_process_latency": { "avgcount": 252, "sum": 0.841467934 }, "op_rw": 22842, "op_rw_in_bytes": 0, "op_rw_out_bytes": 0, "op_rw_rlat": { "avgcount": 24, "sum": 0.148906958 }, "op_rw_latency": { "avgcount": 22842, "sum": 53.935287772 }, "op_rw_process_latency": { "avgcount": 22842, "sum": 15.887935782 }, "subop": 0, "subop_in_bytes": 0, "subop_latency": { "avgcount": 0, "sum": 0.000000000 }, "subop_w": 0, "subop_w_in_bytes": 0, "subop_w_latency": { "avgcount": 0, "sum": 0.000000000 }, "subop_pull": 0, "subop_pull_latency": { "avgcount": 0, "sum": 0.000000000 }, "subop_push": 0, "subop_push_in_bytes": 0, "subop_push_latency": { "avgcount": 0, "sum": 0.000000000 }, "pull": 0, "push": 0, "push_out_bytes": 0, "push_in": 0, "push_in_bytes": 0, "recovery_ops": 0, "loadavg": 1, "buffer_bytes": 0, "numpg": 363, "numpg_primary": 363, "numpg_replica": 0, "numpg_stray": 0, "heartbeat_to_peers": 2, "heartbeat_from_peers": 0, "map_messages": 11, "map_message_epochs": 24, "map_message_epoch_dups": 11, "messages_delayed_for_map": 0, "stat_bytes": 16094572544, "stat_bytes_used": 77381632, "stat_bytes_avail": 16017190912, "copyfrom": 0, "tier_promote": 0, "tier_flush": 0, "tier_flush_fail": 0, "tier_try_flush": 0, "tier_try_flush_fail": 0, "tier_evict": 0, "tier_whiteout": 0, "tier_dirty": 0, "tier_clean": 0, "tier_delay": 0, "tier_proxy_read": 0, "agent_wake": 0, "agent_skip": 0, "agent_flush": 0, "agent_evict": 0, "object_ctx_cache_hit": 23389, "object_ctx_cache_total": 23487 }, "recoverystate_perf": { "initial_latency": { "avgcount": 363, "sum": 2.022209602 }, "started_latency": { "avgcount": 359, "sum": 730.718602096 }, "reset_latency": { "avgcount": 722, "sum": 476.611571568 }, "start_latency": { "avgcount": 722, "sum": 0.058745941 }, "primary_latency": { "avgcount": 359, "sum": 730.632491466 }, "peering_latency": { "avgcount": 722, "sum": 278.388649805 }, "backfilling_latency": { "avgcount": 0, "sum": 0.000000000 }, "waitremotebackfillreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "waitlocalbackfillreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "notbackfilling_latency": { "avgcount": 0, "sum": 0.000000000 }, "repnotrecovering_latency": { "avgcount": 0, "sum": 0.000000000 }, "repwaitrecoveryreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "repwaitbackfillreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "RepRecovering_latency": { "avgcount": 0, "sum": 0.000000000 }, "activating_latency": { "avgcount": 722, "sum": 340.170526206 }, "waitlocalrecoveryreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "waitremoterecoveryreserved_latency": { "avgcount": 0, "sum": 0.000000000 }, "recovering_latency": { "avgcount": 0, "sum": 0.000000000 }, "recovered_latency": { "avgcount": 722, "sum": 0.068415915 }, "clean_latency": { "avgcount": 359, "sum": 545.272422195 }, "active_latency": { "avgcount": 359, "sum": 730.279927807 }, "replicaactive_latency": { "avgcount": 0, "sum": 0.000000000 }, "stray_latency": { "avgcount": 0, "sum": 0.000000000 }, "getinfo_latency": { "avgcount": 722, "sum": 0.217885208 }, "getlog_latency": { "avgcount": 722, "sum": 0.164532650 }, "waitactingchange_latency": { "avgcount": 0, "sum": 0.000000000 }, "incomplete_latency": { "avgcount": 0, "sum": 0.000000000 }, "getmissing_latency": { "avgcount": 722, "sum": 0.074722045 }, "waitupthru_latency": { "avgcount": 363, "sum": 277.748508783 } }, "throttle-filestore_bytes": { "val": 0, "max": 33554432, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 3210, "take_sum": 5007708, "put": 2642, "put_sum": 5007708, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-filestore_ops": { "val": 0, "max": 300, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 3210, "take_sum": 3210, "put": 2642, "put_sum": 3210, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-client": { "val": 0, "max": 104857600, "get": 24264, "get_sum": 4056332, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 24264, "put_sum": 4056332, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-cluster": { "val": 0, "max": 104857600, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 0, "put_sum": 0, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-hb_back_server": { "val": 0, "max": 104857600, "get": 10398, "get_sum": 488706, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 10398, "put_sum": 488706, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-hb_front_server": { "val": 0, "max": 104857600, "get": 10398, "get_sum": 488706, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 10398, "put_sum": 488706, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-hbclient": { "val": 0, "max": 104857600, "get": 20926, "get_sum": 983522, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 20926, "put_sum": 983522, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-msgr_dispatch_throttler-ms_objecter": { "val": 0, "max": 104857600, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 0, "put_sum": 0, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-objecter_bytes": { "val": 0, "max": 104857600, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 0, "put_sum": 0, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-objecter_ops": { "val": 0, "max": 1024, "get": 0, "get_sum": 0, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 0, "put_sum": 0, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-osd_client_bytes": { "val": 0, "max": 524288000, "get": 23556, "get_sum": 3961555, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 24212, "put_sum": 3961555, "wait": { "avgcount": 0, "sum": 0.000000000 } }, "throttle-osd_client_messages": { "val": 20, "max": 100, "get": 30908, "get_sum": 30908, "get_or_fail_fail": 0, "get_or_fail_success": 0, "take": 0, "take_sum": 0, "put": 30888, "put_sum": 30888, "wait": { "avgcount": 0, "sum": 0.000000000 } } } root@demo:~# ceph osd perf osd fs_commit_latency(ms) fs_apply_latency(ms) 0 3 10 1 3 12 2 3 13
3.通电时长
smartctl -A /dev/sda smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.8.0-44-generic] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net Current Drive Temperature: 27 C Drive Trip Temperature: 65 C Elements in grown defect list: 0 Vendor (Seagate) cache information Blocks sent to initiator = 0 Vendor (Seagate/Hitachi) factory information number of hours powered up = 53413.70 number of minutes until next internal SMART test = 7
“OSD磁盘日常监控方法是什么”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注亿速云网站,小编将为大家输出更多高质量的实用文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。