Merge pull request #5 from bashclub/main

Bugfixes
This commit is contained in:
Thorsten Spille 2021-05-10 05:10:29 +02:00 committed by GitHub
commit 714242c755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -7,5 +7,6 @@ Following settings are made:
- Upgrade system to latest version - Upgrade system to latest version
- Install basic tools: `sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl` - Install basic tools: `sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop lshw smartmontools nvme-cli lsscsi sysstat zfs-auto-snapshot htop mc rpl`
- Configure snapshot retention for `zfs-auto-snapshot` interactively - Configure snapshot retention for `zfs-auto-snapshot` interactively
- Calculates limits for level 1 arc (`zfs_arc_min` and `zfs_arc_max`) based on all configured zpools - `zfs_arc_[min|max]` will be calculated by size sum of all zpools in 512 MB steps
- Configure backup of `/etc` folder to new zfs dataset on `rpool/pveconf` - Configure backup of `/etc` folder to new zfs dataset on `rpool/pveconf`
- configure `vm.swappiness` interactively

View File

@ -12,7 +12,7 @@ TOOLS="sudo vim ifupdown2 net-tools dnsutils ethtool git curl unzip screen iftop
PVE_CONF_BACKUP_TARGET=rpool/pveconf PVE_CONF_BACKUP_TARGET=rpool/pveconf
# Define timer for your backup cronjob (default: every 15 minutes fron 3 through 59) # Define timer for your backup cronjob (default: every 15 minutes fron 3 through 59)
PVE_CONF_BACKUP_CRON_TIMER="3/15 * * * *" PVE_CONF_BACKUP_CRON_TIMER="3,18,33,48 * * * *"
###### SYSTEM INFO AND INTERACTIVE CONFIGURATION SECTION ###### ###### SYSTEM INFO AND INTERACTIVE CONFIGURATION SECTION ######
@ -192,10 +192,10 @@ echo $ZFS_ARC_MAX_BYTES > /sys/module/zfs/parameters/zfs_arc_max
cat << EOF > /etc/modprobe.d/zfs.conf cat << EOF > /etc/modprobe.d/zfs.conf
options zfs zfs_arc_min=$ZFS_ARC_MIN_BYTES options zfs zfs_arc_min=$ZFS_ARC_MIN_BYTES
options zfs zfs_arc_min=$ZFS_ARC_MAX_BYTES options zfs zfs_arc_max=$ZFS_ARC_MAX_BYTES
EOF EOF
echo "Updating initramfs - This will take some time..." echo "Updating initramfs - This will take some time..."
update-initramfs -u -k all > /dev/null 2>&1 update-initramfs -u -k all > /dev/null 2>&1
echo "Proxmox postinstallation finished!" echo "Proxmox postinstallation finished!"