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:
parent
f2ea5aa158
commit
c5579b6021
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue