Skip to content

Commit

Permalink
Merge pull request #130 from rchikatw/master
Browse files Browse the repository at this point in the history
Added check when thinpool size is specified
  • Loading branch information
gobindadas committed Jun 20, 2022
2 parents 6dc6baa + b7f9ed6 commit 6ce7885
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/backend_setup/tasks/thin_pool_create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
- name: Create a LV thinpool
command: "lvcreate -l {{ item.thinpoolsize | default('100%FREE') }} --options {% if item.raid is defined and item.raid is not none
command: "lvcreate {% if item.thinpoolsize is defined %} -L {{ item.thinpoolsize }} {% else %} -l 100%FREE {% endif %} --options {% if item.raid is defined and item.raid is not none
and item.raid.level is defined and item.raid.devices is defined and item.raid.stripe is defined
and item.raid.level in [0,5,6,10]%}
{% if item.raid.level == 0 %}
Expand Down Expand Up @@ -286,7 +286,7 @@
#end-block

- name: Create a LV thinpool for similar device types
command: "lvcreate --type thin-pool --zero n -l {{ item.thinpoolsize | default('100%FREE') }} --chunksize {{ lv_chunksize }} --poolmetadatasize {{ item.poolmetadatasize + \"iB\" }} -n {{ item.thinpoolname }} {{ item.vgname }} "
command: "lvcreate --type thin-pool --zero n {% if item.thinpoolsize is defined %} -L {{ item.thinpoolsize }} {% else %} -l 100%FREE {% endif %} --chunksize {{ lv_chunksize }} --poolmetadatasize {{ item.poolmetadatasize + \"iB\" }} -n {{ item.thinpoolname }} {{ item.vgname }} "
# lvol:
# state: present
# shrink: false
Expand Down

0 comments on commit 6ce7885

Please sign in to comment.