Commit Graph

29 Commits (0dcf27964c2b532594a52a08b2e6d5465bf99f15)

Author SHA1 Message Date
Aaron Brady 3533ae2647 Add `active` and `inactive` states to the lvol module (#1974)
* Add `active` and `inactive` states to the lvol module

* Honor the previous state of the changed variable

* Move active/inactive states to active boolean parameter

* Bump version_added to make Travis happy

* Avoid bailing early is size isn't specified

* Add invocation examples

* Move "no size" up for code clarity
8 years ago
Dag Wieers 7618fd8749 Fix check-mode incorrectly returning changed (#2220)
The lvol module has a different logic in check-mode for knowing when a change is induced. And this logic is *only* based on a size check. However during a normal run, it is the lvreduce or lvextend tool that decides when a change is performed (or when the requested and existing sizes differ). So while in check-mode the module reports a change, in real run-mode it does not in fact changes anything an reports ok.

One solution would be to implement the exact size-comparison logic that is implemented in lvextend and lvreduce, but we opted to use the `--test` option to each command to verify if a change is induced or not. In effect both check-mode and run-mode use the exact same logic and conclusion.
9 years ago
Yannig bbd53572af New lvol option: shrink. (#2135)
If shrink is set to false and size is lower than current lv size, dont try to shrink logical volume.
9 years ago
Brian Coca fbd00675f0 updated version added for pvs 9 years ago
p53 706cbf69ca Add pvs parameter to documentation
Add pvs parameter to documentation
9 years ago
Pavol Ipoth 7be55e188a Fixes #2008 Lvol module is not indempodent for cache lv's 9 years ago
Pavol Ipoth ac9a48ad1e Added pvs parameter to lvol module 9 years ago
Rene Moser f80865d32a lvol: remove unused import
See #1425
9 years ago
René Moser d159e6af34 Merge pull request #1425 from jonasvermeulen/devel
Added resizing code based on %-values
9 years ago
Jonas Vermeulen b5d75234a3 Added resizing based on %values. Included support for VG|PVS|FREE 9 years ago
Borys Borysenko a3641cac4e The size option is required for lvol module with state=present 9 years ago
Jonathan Mainguy 7b857b073e add snapshot feature to lvol 9 years ago
Charles Paul f4be5c6382 allow floating point input for size vale 9 years ago
Greg DeKoenigsberg 004dedba8a Changes to author formatting, remove emails 10 years ago
Brian Coca 861b4d0c19 corrected lvol docs version to 2.0 10 years ago
David Wittman 01551a8c15 [lvol] Add opts parameter
Adds the ability to set options to be passed to the lvcreate command
using the `opts` parameter.
10 years ago
fdupoux 1f32287626 Removed conditional assignment of yesopt to make it work with python-2.4 (to pass the Travis-CI test) 10 years ago
fdupoux 4a2e5e4a65 Suppress prompts from lvcreate using --yes when LVM supports this option 10 years ago
Toshio Kuratomi 8893c2d2d0 Fix typo: Need lvreduce instead of lvextend.
Fixes #513
10 years ago
Brian Coca edf519a0c2 moar quotes 10 years ago
Greg DeKoenigsberg 2fdebb296a Adding author's github id 10 years ago
mcameron 1f5e243acf Revert "system/lvol: Suppress prompts from lvcreate"
This reverts commit f8d04bec1b.
10 years ago
Dustin C. Hatch f8d04bec1b system/lvol: Suppress prompts from lvcreate
Occasionally, `lvcreate` will prompt on stdin for confirmation. In
particular, this may happen when the volume is being created close to
the location on disk where another volume existed previously. When this
happens, Ansible will hang indefinitely with no indication of the
problem. To work prevent this problem, the `--yes` command-line argument
can be passed to `lvcreate`, which will instruct it not to prompt.

Signed-off-by: Dustin C. Hatch <dustin@hatch.name>
10 years ago
Brian Coca 41ddb689db Merge pull request #182 from misho-kr/devel
fix lvol module to properly query the size of logical volumes
10 years ago
Misho Krastev d11e36589a Merge branch 'upstream_devel' into devel
Conflicts:
	system/lvol.py
10 years ago
Alexander Gubin e15fba5156 lvol: Cast size(LogicalVolumeSize) to lower to fix the difference between lvs and lvcreate 10 years ago
Misho Krastev 5acc634549 fix lvol module to properly query the size of logical volumes 10 years ago
Alexander Gubin 20ef2696bc Fix lvol: Find LVM commands in PATH env 10 years ago
Michael DeHaan b1e789968b File extensions! 10 years ago