mirror of https://github.com/ceph/ceph-ansible.git
tests: create 2 partitions on /dev/sdc for lvm scenario testing
Signed-off-by: Andrew Schoen <aschoen@redhat.com>pull/1841/head
parent
6ae8219018
commit
d026e04470
|
@ -13,6 +13,37 @@
|
||||||
command: vgcreate test_group /dev/sdb
|
command: vgcreate test_group /dev/sdb
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
||||||
- name: create logical volume
|
- name: create logical volume 1
|
||||||
command: lvcreate --yes -l 100%FREE -n test_volume test_group
|
command: lvcreate --yes -l 50%FREE -n data-lv1 test_group
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
- name: create logical volume 2
|
||||||
|
command: lvcreate --yes -l 50%FREE -n data-lv2 test_group
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
- name: partition /dev/sdc for journals
|
||||||
|
parted:
|
||||||
|
device: /dev/sdc
|
||||||
|
number: 1
|
||||||
|
part_start: 0%
|
||||||
|
part_end: 50%
|
||||||
|
unit: '%'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: partition /dev/sdc for journals
|
||||||
|
parted:
|
||||||
|
device: /dev/sdc
|
||||||
|
number: 2
|
||||||
|
part_start: 50%
|
||||||
|
part_end: 100%
|
||||||
|
unit: '%'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: create journals vg from /dev/sdc2
|
||||||
|
lvg:
|
||||||
|
vg: journals
|
||||||
|
pvs: /dev/sdc2
|
||||||
|
|
||||||
|
- name: create journal1 lv
|
||||||
|
command: lvcreate --yes -l 100%FREE -n journal1 journals
|
||||||
failed_when: false
|
failed_when: false
|
||||||
|
|
Loading…
Reference in New Issue