Capture some ceph commands

... so that we can review status of ceph deployment more in detail.

Change-Id: I8d54ae01488f35a70a6aeb97749765bd5edb0afa
This commit is contained in:
Takashi Kajinami 2023-03-29 11:20:54 +09:00
parent b9284a811e
commit 49aec62c40
1 changed files with 11 additions and 0 deletions

View File

@ -292,6 +292,17 @@ if [ -d /etc/openstack-dashboard ]; then
done
fi
# ceph
if [ `command -v ceph` ]; then
mkdir $LOG_DIR/ceph-cmd
sudo ceph versions > $LOG_DIR/ceph-cmd/ceph-versions.txt
sudo ceph status > $LOG_DIR/ceph-cmd/ceph-status.txt
sudo ceph osd tree > $LOG_DIR/ceph-cmd/ceph-osd-tree.txt
sudo ceph df > $LOG_DIR/ceph-cmd/ceph-df.txt
sudo ceph osd pool ls detail > $LOG_DIR/ceph-cmd/ceph-osd-pool-ls.txt
sudo ceph-volume lvm list ceph_vg/lv_data > $LOG_DIR/ceph-cmd/ceph-volume-lvm-list.txt
fi
# package status and repository list
if [ `command -v dpkg` ]; then
dpkg -l> $LOG_DIR/dpkg-l.txt