zfs_cache_edit
This commit is contained in:
parent
2d19129cba
commit
bd05177ce8
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ delete netplan, install ifupdown,
|
||||||
configure bridged networking (you can put LXD container to your network simple by add br0 to container),
|
configure bridged networking (you can put LXD container to your network simple by add br0 to container),
|
||||||
create zpool with ashift=12,
|
create zpool with ashift=12,
|
||||||
set compression=on on crypted zpool,
|
set compression=on on crypted zpool,
|
||||||
configure zfs cache min 256MB max 1024MB,
|
configure zfs cache min 256MB max 1536MB,
|
||||||
do dist-upgrade,
|
do dist-upgrade,
|
||||||
create /root/onstart script to decrypt crypted parition with password and start lxd (you need start this script on every reboot),
|
create /root/onstart script to decrypt crypted parition with password and start lxd (you need start this script on every reboot),
|
||||||
reboot
|
reboot
|
||||||
|
|
|
@ -52,9 +52,9 @@ pre_reboot_script () {
|
||||||
echo "vm.min_free_kbytes = 131072" >> /etc/sysctl.d/50-usl-mm.conf
|
echo "vm.min_free_kbytes = 131072" >> /etc/sysctl.d/50-usl-mm.conf
|
||||||
echo "vm.dirty_background_ratio = 5" >> /etc/sysctl.d/50-usl-mm.conf
|
echo "vm.dirty_background_ratio = 5" >> /etc/sysctl.d/50-usl-mm.conf
|
||||||
|
|
||||||
echo "Configuring arc cache for zfs to min 256MB and max 1024MB"
|
echo "Configuring arc cache for zfs to min 256MB and max 1536MB"
|
||||||
echo "options zfs zfs_arc_min=268435456" > /etc/modprobe.d/zfs.conf
|
echo "options zfs zfs_arc_min=268435456" > /etc/modprobe.d/zfs.conf
|
||||||
echo "options zfs zfs_arc_max=1073741824" >> /etc/modprobe.d/zfs.conf
|
echo "options zfs zfs_arc_max=1610612736" >> /etc/modprobe.d/zfs.conf
|
||||||
|
|
||||||
echo "Configuring network to use bridge"
|
echo "Configuring network to use bridge"
|
||||||
echo "Exec ifconfig"
|
echo "Exec ifconfig"
|
||||||
|
|
Loading…
Reference in a new issue