1 2 3 4 5 6 7 8 | [root@study-1 ~]# ceph df GLOBAL: SIZE AVAIL RAW USED %RAW USED 196G 99350M 91706M 45.55 POOLS: NAME ID USED %USED MAX AVAIL OBJECTS rbd 1 20480k 0.02 49675M 11 x 2 522 0 49675M 11 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | el if (prefix == "df") { bool 呼酸verbo = (detail == "detail"); if (f) f->open_object_ction("stats"); pgmon()->dump_fs_stats(ds, f.get(), verbo); if (!f) ds << '\n'; 全年工作计划 pgmon()->dump_pool_stats(ds, f.get(), verbo); if (f) { f->clo_ction(); f->flush(ds); ds << '\n'; } } |
1 2 3 4 5 6 7 8 9 10 11 12 | void PGMonitor::dump_fs_stats(stringstream &ss, Formatter *f, bool verbo) const { if (f) { f->open_object_ction("stats"); f->dump_int("total_bytes", pg_map.osd_sum.kb * 1024ull); f->dump_int("total_ud_bytes", pg_map.osd_sum.kb_ud * 1024ull); f->dump_int("total_avail_bytes", pg_map.osd_sum.kb_avail * 1024ull); if (verbo) { f->dump_int("total_objects", pg_map.pg_sum.stats.sum.num_objects); } f->clo_ction();大同旅游景点 } |
1 2 3 4 5 6 白茶口感7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | void OSDService::update_osd_stat(vector<int>& hb_peers) { Mutex::Locker lock(stat_lock); osd_stat.hb_in.swap(hb_peers); osd_stat.hb_out.clear(); osd->_age_ms_histogram(&osd_stat.op_queue_age_hist); // fill in osd stats too田间试验 struct statfs stbuf; int r = osd->store->statfs(&stbuf); if (r < 0) { derr << "statfs() failed: " << cpp_strerror(r) << dendl; return; } uint64_t bytes = stbuf.f_blocks * stbuf.f_bsize; uint64_t ud = (stbuf.f_blocks - stbuf.f_bfree) * stbuf.f_bsize; uint64_t avail = stbuf.f_bavail * stbuf.f_bsize; osd_stat.kb = bytes >> 10; osd_stat.kb_ud = ud >> 10; osd_stat.kb_avail = avail >> 10; osd->logger->t(l_osd_stat_bytes, bytes); osd->logger->t(l_osd_stat_bytes_ud, ud); osd->logger->t(l_osd_stat_bytes_avail, avail); check_nearfull_warning(osd_stat); dout(20) << "update_osd_stat " << osd_stat << dendl; } |
1 2 摄影指导3 4 燕窝是怎么形成的5 6 7 8 9 10 | 乐视大厦int FileStore::statfs(struct statfs *buf) { if (::statfs(badir.c_str(), buf) < 0) { int r = -errno; asrt(!m_filestore_fail_eio || r != -EIO); asrt(r != -ENOENT); return r; } return 0; } |
本文发布于:2023-07-24 19:35:05,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/fan/82/1115145.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |