summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bulimov <lazywolf0@gmail.com>2013-03-28 13:55:01 +0400
committerAlexander Bulimov <lazywolf0@gmail.com>2013-03-28 13:55:01 +0400
commit0fee59dc864ea711cda036331ebc848311b865ea (patch)
tree7a1909c36655f87003351b242fd332d015a26236
parent4552fa8592d7aed0f8c86a6146e7e80fe6697875 (diff)
downloadansible-0fee59dc864ea711cda036331ebc848311b865ea.tar.gz
fixed and extended documentation for lvg module
-rwxr-xr-xlibrary/lvg12
1 files changed, 7 insertions, 5 deletions
diff --git a/library/lvg b/library/lvg
index 08cc66865c..a90d8e3226 100755
--- a/library/lvg
+++ b/library/lvg
@@ -34,11 +34,11 @@ options:
required: true
pvs:
description:
- - List of comma-separated devices to use as physical devices in this volume group.
- required: true
+ - List of comma-separated devices to use as physical devices in this volume group. Required when creating or resizing volume group.
+ required: false
pesize:
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
required: false
state:
@@ -51,12 +51,14 @@ options:
choices: [ "yes", "no" ]
default: "no"
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
examples:
- 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
- - 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
- description: Remove a volume group with name vg.services.
code: lvg vg=vg.services state=absent