-
Notifications
You must be signed in to change notification settings - Fork 39
Conversation
4860ee2
to
08112a6
Compare
* Defaults to dd but allows for the use of fallocate for performance. * Added cmd option to spec file. * Added new cmd parameter to readme
DRY up a lot of the Puppet code
08112a6
to
da02c95
Compare
@BIAndrews I'm just running some acceptance tests on this and I'm getting failures:
Works fine with dd. Is there something else we need to do to the file with fallocate before we run swapon? |
On your system is /mnt/ XFS? |
I just manually tested it on a CentOS6 server with ext4 and it worked ok. I saw a note on the arch linux swap wiki page about XFS and fallocate problems. XFS is now the default for CentOS7 (yay!) but fallocate and XFS don't play well together (boo!)
XFS FAILS:
|
@BIAndrews Ah, yes I'm running this test on a Centos 7 vagrant machine. Good spot! Hmm, we should probably put a warning/fail if filesystem is XFS when picking fallocate. Let me whip something up... |
Weird it's marked as "not a bug" here: https://bugzilla.redhat.com/show_bug.cgi?id=1129205 I'm wondering whether to do a bunch of checking kernel and filesystem stuff, or just add a puppet warning for the fallocate command and allow buyer beware... |
Added cmd parameter …