-
Notifications
You must be signed in to change notification settings - Fork 69
GlusterFS PV Module
Sachidananda Urs edited this page Nov 2, 2017
·
1 revision
- Create, delete, resize, change physical volumes
- LVM packages
- Python 2.7 and above
| parameters | required | default | choices | comments |
|---|---|---|---|---|
| allocatable | no | yes / no | Enable or disable allocation of physical extents on this physical volume. Used with pvchange. | |
| dataalignment | no | Align the start of the data to a multiple of this number. | ||
| disks | yes | List of disks on which to create PV | ||
| force | no | yes / no | Force the creation without any confirmation. | |
| metadataignore | no | yes / no | Ignore or un-ignore metadata areas on this physical volume. Used with pvchange. | |
| metadatasize | no | The approximate amount of space to be set aside for each metadata area. | ||
| setphysicalvolumesize | no | Overrides the automatically-detected size of the PV. Used with pvresize | ||
| state | yes | present / absent / resize / change | Create, delete, resize, or change physical volume | |
| uuid | no | Specify the UUID for the device. | ||
| zero | no | y / n | Whether or not the first 4 sectors (2048 bytes) of the device should be wiped. |
- Create a physical volume
---
- hosts: 10.70.42.25
remote_user: root
gather_facts: no
tasks:
- name: Creates a Physical Volume
glusterfs_pv:
state: present
disks:
- sda
- sdb
- sdc
- Delete a Physical volume
---
- hosts: 10.70.42.25
remote_user: root
gather_facts: no
tasks:
- name: Delete a physical volume
peer:
state: absent
devices:
- sda
- sdb
- sdc