Allow LVM to scan all loop devices
This patch allows all loop devices to be scanned by LVM and this fixes a bug that occurs after a reboot in AIOs when the loop device numbering is shuffled. For example, the cinder loopback may be mounted from /dev/loop4 when the AIO is first built, but it might come up as /dev/loop0 when the AIO reboots. Closes-bug: 1615325 Depends-on: I09b2cd9a1eee9f8310783b7d6468963b21fee322 Change-Id: Ia28cd6ff8ddc7d389cb5609c3c5a3ec400306cfb
This commit is contained in:
parent
86fd6871f7
commit
7989209a90
|
@ -14,8 +14,13 @@
|
|||
# Ansible Discovered LVM Devices {{ lv_devices }}
|
||||
|
||||
{% if used_lvm_devices|length <= 0 %}
|
||||
{# If there are no LVM devices present, allow all devices to be scanned #}
|
||||
{% if used_lvm_devices.append('"a/.*/"') %}{% endif %}
|
||||
}
|
||||
{% else %}
|
||||
{# Append 'loop.*' to the list to help with AIO deployments. #}
|
||||
{% if used_lvm_devices.append('"a/loop.*/"') %}{% endif %}
|
||||
{# Disable scanning any other devices than the ones listed. #}
|
||||
{% if used_lvm_devices.append('"r/.*/"') %}{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue