mirror of https://github.com/ceph/ceph-ansible.git
tests: fix the size on the second data LV
The commit replaces the pv/vg/lv commands used with the ansible command
module by the lvg and lvol modules.
This also fixes the size of the second data LV because we were only using
50% of the remaining space instead of 100%.
With a 50G device, the result was:
- data-lv1 was 25G
- data-lv2 was 12.5G
Instead of:
- data-lv1 was 25G
- data-lv2 was 25G
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit 2c03c6fcd3
)
pull/4639/head
parent
9bc7f8a7d7
commit
f8b84ce108
|
@ -26,18 +26,20 @@
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
when: not is_atomic | bool
|
when: not is_atomic | bool
|
||||||
- name: create physical volume
|
|
||||||
command: pvcreate /dev/sdb
|
|
||||||
failed_when: false
|
|
||||||
- name: create volume group
|
- name: create volume group
|
||||||
command: vgcreate test_group /dev/sdb
|
lvg:
|
||||||
failed_when: false
|
vg: test_group
|
||||||
|
pvs: /dev/sdb
|
||||||
- name: create logical volume 1
|
- name: create logical volume 1
|
||||||
command: lvcreate --yes -l 50%FREE -n data-lv1 test_group
|
lvol:
|
||||||
failed_when: false
|
vg: test_group
|
||||||
|
lv: data-lv1
|
||||||
|
size: 50%FREE
|
||||||
- name: create logical volume 2
|
- name: create logical volume 2
|
||||||
command: lvcreate --yes -l 50%FREE -n data-lv2 test_group
|
lvol:
|
||||||
failed_when: false
|
vg: test_group
|
||||||
|
lv: data-lv2
|
||||||
|
size: 100%FREE
|
||||||
- name: partition /dev/sdc for journals
|
- name: partition /dev/sdc for journals
|
||||||
parted:
|
parted:
|
||||||
device: /dev/sdc
|
device: /dev/sdc
|
||||||
|
@ -61,5 +63,7 @@
|
||||||
vg: journals
|
vg: journals
|
||||||
pvs: /dev/sdc2
|
pvs: /dev/sdc2
|
||||||
- name: create journal1 lv
|
- name: create journal1 lv
|
||||||
command: lvcreate --yes -l 100%FREE -n journal1 journals
|
lvol:
|
||||||
failed_when: false
|
vg: journals
|
||||||
|
lv: journal1
|
||||||
|
size: 100%FREE
|
||||||
|
|
Loading…
Reference in New Issue