Commit graph

28 commits

Author SHA1 Message Date
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.
2016-05-14 10:40:49 +02:00
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.
2016-05-13 11:28:41 +02:00
Brian Coca
fbd00675f0 updated version added for pvs 2016-04-28 17:42:41 -04:00
p53
706cbf69ca Add pvs parameter to documentation
Add pvs parameter to documentation
2016-04-19 19:31:23 +02:00
Pavol Ipoth
7be55e188a Fixes #2008 Lvol module is not indempodent for cache lv's 2016-04-11 21:55:40 +02:00
Pavol Ipoth
ac9a48ad1e Added pvs parameter to lvol module 2016-04-11 20:18:14 +02:00
Rene Moser
f80865d32a lvol: remove unused import
See #1425
2016-03-19 00:59:47 +01:00
René Moser
d159e6af34 Merge pull request #1425 from jonasvermeulen/devel
Added resizing code based on %-values
2016-03-19 00:55:51 +01:00
Jonas Vermeulen
b5d75234a3 Added resizing based on %values. Included support for VG|PVS|FREE 2016-03-08 21:54:03 +01:00
Borys Borysenko
a3641cac4e The size option is required for lvol module with state=present 2016-02-25 16:56:05 +02:00
Jonathan Mainguy
7b857b073e add snapshot feature to lvol 2015-12-15 21:49:14 -05:00
Charles Paul
f4be5c6382 allow floating point input for size vale 2015-10-05 12:16:29 -05:00
Greg DeKoenigsberg
004dedba8a Changes to author formatting, remove emails 2015-06-16 14:32:39 -04:00
Brian Coca
861b4d0c19 corrected lvol docs version to 2.0 2015-06-16 11:33:14 -04:00
David Wittman
01551a8c15 [lvol] Add opts parameter
Adds the ability to set options to be passed to the lvcreate command
using the `opts` parameter.
2015-06-16 11:33:13 -04:00
fdupoux
1f32287626 Removed conditional assignment of yesopt to make it work with python-2.4 (to pass the Travis-CI test) 2015-06-16 11:33:11 -04:00
fdupoux
4a2e5e4a65 Suppress prompts from lvcreate using --yes when LVM supports this option 2015-06-16 11:33:10 -04:00
Toshio Kuratomi
8893c2d2d0 Fix typo: Need lvreduce instead of lvextend.
Fixes #513
2015-05-20 19:23:45 -07:00
Brian Coca
edf519a0c2 moar quotes 2015-05-14 09:37:00 -04:00
Greg DeKoenigsberg
2fdebb296a Adding author's github id 2015-05-14 01:08:41 -04:00
mcameron
1f5e243acf Revert "system/lvol: Suppress prompts from lvcreate"
This reverts commit f8d04bec1b.
2015-04-08 17:37:53 +01:00
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>
2015-03-22 22:16:37 -05:00
Brian Coca
41ddb689db Merge pull request #182 from misho-kr/devel
fix lvol module to properly query the size of logical volumes
2015-03-06 11:53:33 -05:00
Misho Krastev
d11e36589a Merge branch 'upstream_devel' into devel
Conflicts:
	system/lvol.py
2015-01-24 22:13:53 -08:00
Alexander Gubin
e15fba5156 lvol: Cast size(LogicalVolumeSize) to lower to fix the difference between lvs and lvcreate 2015-01-12 17:43:51 +01:00
Misho Krastev
5acc634549 fix lvol module to properly query the size of logical volumes 2015-01-05 01:52:20 -08:00
Alexander Gubin
20ef2696bc Fix lvol: Find LVM commands in PATH env 2014-11-26 11:27:29 +01:00
Michael DeHaan
b1e789968b File extensions! 2014-09-26 10:40:16 -04:00
Renamed from system/lvol (Browse further)