bundles/zfs: rename zfs_arc_max_mb to zfs_arc_max_gb
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-06-25 18:39:06 +02:00
parent b36018f36b
commit a793bb5fc1
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 7 additions and 4 deletions

View file

@ -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

View file

@ -188,6 +188,9 @@ nodes['home.nas'] = {
},
},
'zfs': {
'module_options': {
'zfs_arc_max_gb': 8,
},
'pools': {
# Configured manually. Don't touch!
'storage': {

View file

@ -71,7 +71,7 @@ nodes['rx300'] = {
},
'zfs': {
'module_options': {
'zfs_arc_max_mb': 16384, # 16GB
'zfs_arc_max_gb': 16,
},
'pools': {
'tank': {