Fix configuration of LVM global_filter
As far as I could tell, the global_filter config added in change I5d5c48e188cbb9b4208096736807f082bce524e8 wasn't actually making it into the lvm.conf. Given the volume (or rather LVM volume) related issues we've been seeing in the gate recently, we can give this a try to see if the global_filter setting has any positive effect. This also adds the contents of /etc/lvm/* to the logs collected by the jobs, so that we can see the LVM config. Change-Id: I2b39acd352669231d16b5cb2e151f290648355c0
This commit is contained in:
parent
640c318f38
commit
ef53db76d0
@ -430,6 +430,7 @@
|
||||
/var/log/mysql: logs
|
||||
/var/log/libvirt: logs
|
||||
/etc/libvirt: logs
|
||||
/etc/lvm: logs
|
||||
/etc/sudoers: logs
|
||||
/etc/sudoers.d: logs
|
||||
'{{ stage_dir }}/iptables.txt': logs
|
||||
|
2
lib/lvm
2
lib/lvm
@ -200,7 +200,7 @@ function set_lvm_filter {
|
||||
filter_string=$filter_string$filter_suffix
|
||||
|
||||
clean_lvm_filter
|
||||
sudo sed -i "/# global_filter = \[*\]/a\ $global_filter$filter_string" /etc/lvm/lvm.conf
|
||||
sudo sed -i "/# global_filter = \[.*\]/a\ $filter_string" /etc/lvm/lvm.conf
|
||||
echo_summary "set lvm.conf device global_filter to: $filter_string"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user