Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
dd66d187
Commit
dd66d187
authored
Nov 20, 2020
by
James T. Lee
Browse files
zfs: Manage swap volume properties
parent
689a5975
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
manifests/base/bootloader.pp
manifests/base/bootloader.pp
+1
-0
manifests/base/zfs.pp
manifests/base/zfs.pp
+12
-0
No files found.
manifests/base/bootloader.pp
View file @
dd66d187
...
@@ -20,6 +20,7 @@ class nest::base::bootloader {
...
@@ -20,6 +20,7 @@ class nest::base::bootloader {
# Physical swap is still useful for hibernation.
# Physical swap is still useful for hibernation.
#
#
# See: https://github.com/openzfs/zfs/issues/7734
# See: https://github.com/openzfs/zfs/issues/7734
# See also: nest::base::zfs for workarounds
'zswap.enabled=1'
,
'zswap.enabled=1'
,
'zswap.compressor=lzo-rle'
,
'zswap.compressor=lzo-rle'
,
'zswap.zpool=z3fold'
,
'zswap.zpool=z3fold'
,
...
...
manifests/base/zfs.pp
View file @
dd66d187
...
@@ -112,4 +112,16 @@ class nest::base::zfs {
...
@@ -112,4 +112,16 @@ class nest::base::zfs {
}
}
::
nest::lib::systemd_reload
{
'zfs'
:
}
::
nest::lib::systemd_reload
{
'zfs'
:
}
unless
$facts
[
'virtual'
]
==
'lxc'
{
# Manage swap volume properties for experimenting with workarounds listed in
# https://github.com/openzfs/zfs/issues/7734
zfs
{
"
$
{facts['rpool']}/swap"
:
compression
=>
'off'
,
sync
=>
'always'
,
primarycache
=>
'metadata'
,
secondarycache
=>
'none'
,
logbias
=>
'throughput'
,
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment