OSD磁盤日常監(jiān)控方法是什么

本篇內(nèi)容介紹了“OSD磁盤日常監(jiān)控方法是什么”的有關(guān)知識,在實(shí)際案例的操作過程中,不少人都會(huì)遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

成都創(chuàng)新互聯(lián)是一家集網(wǎng)站建設(shè),東勝企業(yè)網(wǎng)站建設(shè),東勝品牌網(wǎng)站建設(shè),網(wǎng)站定制,東勝網(wǎng)站建設(shè)報(bào)價(jià),網(wǎng)絡(luò)營銷,網(wǎng)絡(luò)優(yōu)化,東勝網(wǎng)站推廣為一體的創(chuàng)新建站企業(yè),幫助傳統(tǒng)企業(yè)提升企業(yè)形象加強(qiáng)企業(yè)競爭力??沙浞譂M足這一群體相比中小企業(yè)更為豐富、高端、多元的互聯(lián)網(wǎng)需求。同時(shí)我們時(shí)刻保持專業(yè)、時(shí)尚、前沿,時(shí)刻以成就客戶成長自我,堅(jiān)持不斷學(xué)習(xí)、思考、沉淀、凈化自己,讓我們?yōu)楦嗟钠髽I(yè)打造出實(shí)用型網(wǎng)站。

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.通電時(shí)長

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磁盤日常監(jiān)控方法是什么”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注創(chuàng)新互聯(lián)網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!

分享題目:OSD磁盤日常監(jiān)控方法是什么
URL地址:http://muchs.cn/article0/gdipio.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)站營銷網(wǎng)站設(shè)計(jì)公司、全網(wǎng)營銷推廣、電子商務(wù)、網(wǎng)站設(shè)計(jì)Google

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

網(wǎng)站優(yōu)化排名