From 66efc4ebbc03110fb8a2937117c2b4df605ccae9 Mon Sep 17 00:00:00 2001 From: Luca Austelat <46195600+LucaAust@users.noreply.github.com> Date: Thu, 22 Apr 2021 22:22:36 +0200 Subject: [PATCH] fix calculation error for arcsize --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 1e5d949..5025544 100644 --- a/install.sh +++ b/install.sh @@ -31,8 +31,8 @@ sed -i 's/keep=8/keep=$SNAP_WEEKLY/g' /etc/cron.weekly/zfs-auto-snapshot sed -i 's/keep=8/keep=$SNAP_MONTHLY/g' /etc/cron.monthly/zfs-auto-snapshot # set zfs_arc_limits -ZFS_ARC_MIN_BYTES=$(($ZFS_ARC_MIN+1024*1024)) -ZFS_ARC_MAX_BYTES=$(($ZFS_ARC_MAX+1024*1024)) +ZFS_ARC_MIN_BYTES=$(($ZFS_ARC_MIN*1024*1024)) +ZFS_ARC_MAX_BYTES=$(($ZFS_ARC_MAX*1024*1024)) echo $ZFS_ARC_MIN_BYTES > /sys/module/zfs/parameters/zfs_arc_min echo $ZFS_ARC_MAX_BYTES > /sys/module/zfs/parameters/zfs_arc_max