Change lvm settings to make lvcreate working inside containers

For LVM plugin tests

Change-Id: Ibbd927ae549cfddbebb1876f07fbd8ae3abc885b
This commit is contained in:
Sergey Lebedev 2016-09-28 12:43:32 +03:00
parent f400207daa
commit c59244d28f
1 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,8 @@ class UnderlaySSHManager(object):
"""
def get_actions(lvm_id):
return [
("sed -i -e 's/\\(\\budev_sync = \\)1/\\10/' "
"-e 's/\\(\\budev_rules = \\)1/\\10/' /etc/lvm/lvm.conf"),
"systemctl enable lvm2-lvmetad.service",
"systemctl enable lvm2-lvmetad.socket",
"systemctl start lvm2-lvmetad.service",