mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #2522 from abulimov/lvg-module-doc
fixed and extended documentation for lvg module
This commit is contained in:
commit
1015d3b043
1 changed files with 7 additions and 5 deletions
12
library/lvg
12
library/lvg
|
@ -34,11 +34,11 @@ options:
|
||||||
required: true
|
required: true
|
||||||
pvs:
|
pvs:
|
||||||
description:
|
description:
|
||||||
- List of comma-separated devices to use as physical devices in this volume group.
|
- List of comma-separated devices to use as physical devices in this volume group. Required when creating or resizing volume group.
|
||||||
required: true
|
required: false
|
||||||
pesize:
|
pesize:
|
||||||
description:
|
description:
|
||||||
- The size of the physical extent in megabytes.
|
- The size of the physical extent in megabytes. Must be a power of 2.
|
||||||
default: 4
|
default: 4
|
||||||
required: false
|
required: false
|
||||||
state:
|
state:
|
||||||
|
@ -51,12 +51,14 @@ options:
|
||||||
choices: [ "yes", "no" ]
|
choices: [ "yes", "no" ]
|
||||||
default: "no"
|
default: "no"
|
||||||
description:
|
description:
|
||||||
- If yes, allows to remove or reduce volume group with logical volumes.
|
- If yes, allows to remove volume group with logical volumes.
|
||||||
required: false
|
required: false
|
||||||
examples:
|
examples:
|
||||||
- description: Create a volume group on top of /dev/sda1 with physical extent size = 32MB.
|
- description: Create a volume group on top of /dev/sda1 with physical extent size = 32MB.
|
||||||
code: lvg vg=vg.services pvs=/dev/sda1 pesize=32
|
code: lvg vg=vg.services pvs=/dev/sda1 pesize=32
|
||||||
- description: Create a volume group on top of /dev/sdb1 and /dev/sdc5.
|
- description: Create or resize a volume group on top of /dev/sdb1 and /dev/sdc5.
|
||||||
|
If, for example, we already have VG vg.services on top of /dev/sdb1, this VG will be extended by /dev/sdc5.
|
||||||
|
Or if vg.services was created on top of /dev/sda5, we first extend it with /dev/sdb1 and /dev/sdc5, and then reduce by /dev/sda5.
|
||||||
code: lvg vg=vg.services pvs=/dev/sdb1,/dev/sdc5
|
code: lvg vg=vg.services pvs=/dev/sdb1,/dev/sdc5
|
||||||
- description: Remove a volume group with name vg.services.
|
- description: Remove a volume group with name vg.services.
|
||||||
code: lvg vg=vg.services state=absent
|
code: lvg vg=vg.services state=absent
|
||||||
|
|
Loading…
Reference in a new issue