Skip to content

Commit 3a69dcd

Browse files
author
Prakash Surya
committed
WIP: Use "1MB" recordsize for "/var/log" dataset
1 parent 858f98f commit 3a69dcd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

files/common/var/lib/delphix-platform/rpool-upgrade

+9
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@ while read -r feature; do
55
done <<-EOF
66
async_destroy
77
lz4_compress
8+
large_blocks
89
EOF
10+
11+
#
12+
# We can't use a 1MB recordsize until the "large_blocks" feature is
13+
# enabled, which is why we chose to apply this configuration here. This
14+
# should work for both initial installations, as well as upgrades.
15+
#
16+
ROOTFS_CONTAINER="$(dirname "$(zfs list -Hpo name /)")"
17+
zfs set "recordsize=1MB" "$ROOTFS_CONTAINER/log"

0 commit comments

Comments
 (0)