This repository contains a script that collects the ceph diagnostic informations and store it in a tarfile.
Script collects information, some at OS level, some at the cluster level and some at the daemon level. Script assumes that ceph config file is in /etc/ceph/ceph.config
- Operating system level
- uname
- lsb_release
- system statistics - RAM, CPU
- Cluster level
- ceph status
- ceph version and ceph versions(if applicable)
- fsid
- ceph config file (reads config file)
- ceph health
- ceph health detail
- ceph df
- Daemons
- Monitors
- ceph mon stat
- ceph mon dump
- ceph mon getmap
- ceph mon metadata
- OSD
- ceph osd df
- ceph osd tree
- ceph osd dump
- ceph osd stat
- ceph osd getmap
- ceph osd getcrushmap
- ceph osd perf
- ceph osd metadata
- Placement groups
- ceph pg stat
- ceph pg dump
- ceph pg dump_stuck
- Meta Data Server
- ceph mds stat
- ceph mds dump
- ceph mds getmap
- Monitors
Ceph diagnostic collect script collects all the above information and puts the result of every command in a file and forms a tarball of all the files in /tmp folder.
Script makes use of librados python library to execute monitor commands.
python ceph_diagnostics_collect.py [--ceph-config-file] [--results-dir] [--timeout]
- defaults :
- ceph-config-file = /etc/ceph/ceph.config
- results-dir = /tmp
- timeout = 10 seconds