Contents
Practical Guide: Ceph Command Tools Summary
📋 Common Tools (Summary Overview)
Function Category | Main Commands | Verification Status | Usage Frequency | Application Scenarios | Risk Level |
---|---|---|---|---|---|
Cluster Monitoring | ceph -s , ceph health(detail) , ceph df , ceph -w |
✅ Verified | ⭐⭐⭐⭐⭐ | Daily monitoring, troubleshooting | 🟢 No risk |
I/O Monitoring | ceph iostat (version dependent,N+), ceph -w , ceph status |
✅ Verified | ⭐⭐⭐⭐ | Performance monitoring | 🟢 No risk |
OSD Management | ceph osd tree , ceph osd status , ceph osd out/in |
✅ Verified | ⭐⭐⭐⭐ | OSD maintenance, capacity management | 🟡 Medium risk (queries safe) |
Monitor Management | ceph mon stat , ceph quorum_status , ceph mon add/remove |
✅ Verified | ⭐⭐⭐ | Cluster management, high availability | 🔴 High risk (queries safe) |
Manager Management | ceph mgr module enable/disable , ceph mgr stat |
✅ Verified | ⭐⭐⭐ | Feature management, dashboard | 🟡 Medium risk (queries safe) |
Pool Management | ceph osd pool create/delete , ceph osd pool set |
✅ Verified | ⭐⭐⭐⭐ | Storage planning, quota management | 🔴 High risk (queries safe) |
PG Management | ceph pg stat , ceph pg repair , ceph pg scrub |
✅ Verified | ⭐⭐⭐⭐ | Data integrity, fault repair | 🟡 Medium risk (queries safe) |
Authentication Management | ceph auth list/create/del |
✅ Verified | ⭐⭐⭐ | Security management, access control | 🔴 High risk (queries safe) |
CRUSH Management | ceph osd crush tree , crushtool , ceph osd crush rule |
✅ Verified | ⭐⭐ | Data distribution, failure domains | 🔴 High risk (queries safe) |
RBD Management | rbd create/rm , rbd snap create , rbd map/unmap |
✅ Verified | ⭐⭐⭐⭐ | Block storage, snapshot management | 🟡 Medium risk |
CephFS Management | ceph fs status , ceph mds stat , ceph fs dump , ceph mds fail |
✅ Verified | ⭐⭐⭐ | File system, metadata | 🟡 Medium risk (queries safe) |
RGW Management | radosgw-admin user create , radosgw-admin bucket |
✅ Verified | ⭐⭐⭐ | Object storage, user management | 🟡 Medium risk (queries safe) |
Configuration Management | ceph config set/get , ceph tell |
Not verified | ⭐⭐⭐⭐ | Parameter tuning, fault handling | 🟡 Medium risk (queries safe) |
Performance Analysis | ceph osd perf ,rbd perf image iostat , cephfs-top |
✅ Verified | ⭐⭐⭐ | Performance testing, bottleneck analysis | 🟢 No risk |
Specialized Tools | ceph-objectstore-tool , ceph-bluestore-tool |
✅ Verified | ⭐⭐ | Data recovery, deep diagnostics | 🔴 High risk (queries safe) |
Troubleshooting | journalctl , ceph daemon dump , log analysis |
✅ Verified | ⭐⭐⭐⭐ | Problem diagnosis, root cause analysis | 🟢 No risk |
Backup Recovery | ceph mon getmap , ceph auth export , data export |
✅ Verified | ⭐⭐ | Disaster recovery, migration | 🟡 Medium risk (queries safe) |
🔧 1. Cluster Status Monitoring
1.1 Overall Cluster Status
|
|
1.2 Cluster Performance Monitoring
|
|
🗄️ 2. OSD Management
2.1 Basic OSD Operations
|
|
2.2 OSD Maintenance Operations
|
|
2.3 OSD Troubleshooting
|
|
🏛️ 3. Monitor Management
3.1 Basic Monitor Operations
|
|
3.2 Monitor Maintenance
|
|
👨💼 4. Manager Management
4.1 Basic Manager Operations
|
|
4.2 Common Manager Modules
|
|
🗂️ 5. Pool Management
5.1 Basic Pool Operations
|
|
5.2 Pool Parameter Configuration
|
|
📄 6. Placement Group (PG) Management
6.1 PG Status Viewing
|
|
6.2 PG Repair Operations
|
|
🔐 7. Authentication Management
7.1 User Management
|
|
7.2 Permission Management
|
|
🏗️ 8. CRUSH Map Management
8.1 Basic CRUSH Operations
|
|
8.2 CRUSH Rule Management
|
|
🎯 9. RBD Management
9.1 Basic RBD Operations
|
|
9.2 Advanced RBD Operations
|
|
🌐 10. CephFS Management
10.1 Basic CephFS Operations
|
|
10.2 CephFS Client
|
|
10.3 Advanced CephFS Management
|
|
☁️ 11. RGW Management
11.1 Basic RGW Operations
|
|
11.2 RGW Key Management
|
|
11.3 RGW Maintenance
|
|
🔧 12. Configuration Management
12.1 Runtime Configuration
|
|
12.2 Temporary Configuration Adjustment
|
|
📈 13. Performance Analysis
13.1 RBD Performance Analysis
RBD Performance Testing Tools
|
|
RBD Performance Monitoring
|
|
RBD Performance Tuning Parameters
|
|
13.2 CephFS Performance Analysis
CephFS Performance Testing
|
|
CephFS Performance Monitoring
|
|
13.3 OSD Performance Analysis
OSD Performance Benchmarking
|
|
Detailed OSD Performance Monitoring
|
|
13.4 Overall Cluster Performance Analysis
Cluster-level Performance Monitoring
|
|
🛠️ 14. Ceph Specialized Tools
14.1 Data Recovery and Diagnostic Tools
ceph-objectstore-tool (Object Store Tool)
|
|
ceph-kvstore-tool (Key-Value Store Tool)
|
|
ceph-bluestore-tool (BlueStore Specific Tool)
|
|
14.2 Monitoring and Management Tools
crushtool (CRUSH Mapping Tool)
|
|
monmaptool (Monitor Mapping Tool)
|
|
osdmaptool (OSD Mapping Tool)
|
|
14.3 Data Migration and Synchronization Tools
rados (Object Storage Client)
|
|
rbd-mirror (RBD Mirror Tool)
|
|
ceph-crash (Crash Reporting Tool)
|
|
ceph-volume (Volume Management Tool)
|
|
🚨 15. Troubleshooting
15.1 Log Viewing
|
|
15.2 Common Issue Troubleshooting
|
|
🔄 16. Backup and Recovery
16.1 Data Backup
|
|
16.2 Disaster Recovery
|
|
16.3 RBD Backup and Recovery
|
|
This document is continuously updated. Please check for the latest version regularly. Any questions or suggestions are welcome.
Last updated: June 2025
Author ceph-deep-dive
LastMod 0001-01-01