Collect lvmdump info in logs

We have been having problems with lvm and cinder recently. Record the
state of lvm to aid in debugging these issues.

Related-Bug: 1687044
Change-Id: I08989cc76889d5479338bab9162591f42f5360b1
This commit is contained in:
Clark Boylan 2017-05-02 12:10:17 -07:00
parent f2ea5aa158
commit c5579b6021
1 changed files with 4 additions and 0 deletions

View File

@ -869,6 +869,10 @@ function cleanup_host {
sudo cp -r /var/core $BASE/logs/
fi
# record lvm dumpage to debug cinder lvm issues.
sudo -H lvmdump
sudo find /root -name 'lvmdump*.tgz' -execdir cp '{}' "$BASE/logs" \;
# Make sure the current user can read all the logs and configs
sudo chown -RL $USER:$USER $BASE/logs/
# (note X not x ... execute/search only if the file is a directory