bundles/zfs: rename zfs_arc_max_mb to zfs_arc_max_gb
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
b36018f36b
commit
a793bb5fc1
3 changed files with 7 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
<%
|
||||
arc_max_mb = node.metadata.get('zfs/module_options/zfs_arc_max_mb', 1024)
|
||||
arc_max_gb = node.metadata.get('zfs/module_options/zfs_arc_max_gb', 1)
|
||||
%>\
|
||||
% if arc_max_mb != 0:
|
||||
options zfs zfs_arc_max=${arc_max_mb * 1024 * 1024}
|
||||
% if arc_max_gb > 0:
|
||||
options zfs zfs_arc_max=${arc_max_gb * 1024 * 1024 * 1024}
|
||||
% endif
|
||||
|
|
|
@ -188,6 +188,9 @@ nodes['home.nas'] = {
|
|||
},
|
||||
},
|
||||
'zfs': {
|
||||
'module_options': {
|
||||
'zfs_arc_max_gb': 8,
|
||||
},
|
||||
'pools': {
|
||||
# Configured manually. Don't touch!
|
||||
'storage': {
|
||||
|
|
|
@ -71,7 +71,7 @@ nodes['rx300'] = {
|
|||
},
|
||||
'zfs': {
|
||||
'module_options': {
|
||||
'zfs_arc_max_mb': 16384, # 16GB
|
||||
'zfs_arc_max_gb': 16,
|
||||
},
|
||||
'pools': {
|
||||
'tank': {
|
||||
|
|
Loading…
Reference in a new issue