惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
博客园 - 叶小钗
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园_首页
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
The GitHub Blog
The GitHub Blog
小众软件
小众软件
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler
B
Blog RSS Feed
月光博客
月光博客
量子位
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
Y
Y Combinator Blog
B
Blog
MyScale Blog
MyScale Blog

Oskyla 烹茶室

修复 Joplin on KDE 菜单栏显示问题 Copy Fail:Linux 内核 2017 年至今的高危漏洞(附临时缓解方案) | CVE-2026-31431 Hermes Agent — 在 K3s / K8s 中运行指南 在 K3s 节点上安装并使用 nerdctl Mouser:轻量开源的罗技鼠标驱动替代方案 Claude Opus 4.7:优缺点与评测信息汇总 openFuyao NPU-Operator故障排查 openFuyao 2603 共测测试报告 openFuyao InferNex AI推理集成部署 310P(300I Pro) 环境问题记录及解决 ceph mon Operation not permitted 问题解决 Ascend 310P + openFuyao + NPU-Operator 故障排查 KDE Plasma6 禁用全局菜单,恢复正常应用菜单 终极指南:在 Linux 裸机服务器上快速部署 Moltbot (原 Clawbot) 并集成飞书 Windows 配置 Claude Code 解决 settings.json 不生效 Windows 配置 Claude Code 全流程 2025-12-31 | 年终总结 AI 生图精品提示词|第二期:城市星球 AI 生图精品提示词|第一期 Kubernetes kubectl --raw 使用指南 彻底解决阿里云和 tailscale 冲突 2025-10-21 | 沉淀思维 macOS 单独为鼠标或触控板开启自然滚动 2025-10-16 | 负载高低 2025-10-15 | 睡眠周期 2025-10-14 | 转换情绪与独立观点 go 拉取 gitcode.com 私有 mod Git 将某个文件恢复到其他分支的状态 SSH 通过跳板机连接 lxc 使用 chronyc 构建 ntp 服务 2025-10-13 | 独立思考于未来能源
Ceph RBD 查看实际占用top
Tianlun Song · 2024-12-02 · via Oskyla 烹茶室

本文 首发于 🌱 煎茶转载 请注明 来源

rbd du -p ssd | awk '  
NR>1 {  
   size=$4  
   unit=$5  
   if (unit=="MiB") size=size  
   else if (unit=="GiB") size=size*1024  
   else if (unit=="TiB") size=size*1024*1024  
   print size " " unit " " $0  
}' | sort -nr | head -n 50 | cut -d" " -f3-

by claude 3.5

效果:

root@pve1:~# rbd du -p ssd | awk '  
NR>1 {  
   size=$4  
   unit=$5  
   if (unit=="MiB") size=size  
   else if (unit=="GiB") size=size*1024  
   else if (unit=="TiB") size=size*1024*1024  
   print size " " unit " " $0  
}' | sort -nr | head -n 50 | cut -d" " -f3-  
<TOTAL>                                              111 TiB    47 TiB  
vm-1033-disk-0                                        20 TiB    20 TiB  
vm-1054-disk-1@bak20240731                          1000 GiB   677 GiB  
vm-503-disk-3                                        500 GiB   500 GiB  
vm-502-disk-3                                        500 GiB   500 GiB  
vm-501-disk-3                                        500 GiB   500 GiB  
vm-1054-disk-1@bak20231106                          1000 GiB   475 GiB  
vm-497-disk-0@backup0530                             500 GiB   340 GiB  
vm-1279-disk-1                                       320 GiB   320 GiB  
vm-1090-disk-0                                       300 GiB   300 GiB