GPU-VMs 8 vCPU / 20 GB, infra 4 GB, ZFS-ARC 2 GB (Rolle pve-host), kein Auto-Reboot durch tofu
ci / test (push) Successful in 29s
ci / test (push) Successful in 29s
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
4cd3fb87ed
commit
2a8badd610
@@ -67,6 +67,27 @@
|
||||
mode: "0644"
|
||||
notify: update initramfs
|
||||
|
||||
# ZFS-ARC begrenzen: Standard wären 10 % des RAM (3,2 GB), bei Pool-Anlage 4 GB gesetzt. Die GPU-VMs liegen auf
|
||||
# local-lvm, tank trägt nur Replikate und die kleinen Infra-Gäste – 2 GB reichen, der Rest geht an die VMs.
|
||||
- name: ZFS-ARC-Obergrenze (modprobe, gilt nach initramfs beim nächsten Start)
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/modprobe.d/zfs.conf
|
||||
content: "options zfs zfs_arc_max={{ knaster_pve.cluster.zfs_arc_max_mb * 1024 * 1024 }}
|
||||
"
|
||||
mode: "0644"
|
||||
when: knaster_pve.cluster.zfs_arc_max_mb is defined
|
||||
notify: update initramfs
|
||||
|
||||
- name: ZFS-ARC-Obergrenze sofort setzen
|
||||
ansible.builtin.shell: >
|
||||
[ -w /sys/module/zfs/parameters/zfs_arc_max ] || exit 0;
|
||||
v={{ knaster_pve.cluster.zfs_arc_max_mb * 1024 * 1024 }};
|
||||
[ "$(cat /sys/module/zfs/parameters/zfs_arc_max)" = "$v" ] && exit 0;
|
||||
echo "$v" > /sys/module/zfs/parameters/zfs_arc_max && echo gesetzt
|
||||
register: arc
|
||||
changed_when: "'gesetzt' in arc.stdout"
|
||||
when: knaster_pve.cluster.zfs_arc_max_mb is defined
|
||||
|
||||
- name: Speicher local darf Snippets enthalten (clusterweite Einstellung, einmal)
|
||||
ansible.builtin.shell: |
|
||||
set -euo pipefail
|
||||
|
||||
@@ -38,6 +38,10 @@ resource "proxmox_virtual_environment_vm" "gpu" {
|
||||
enabled = true
|
||||
}
|
||||
|
||||
# Änderungen an CPU/RAM nicht automatisch neu starten (sonst alle GPU-VMs gleichzeitig):
|
||||
# Neustart einzeln per `qm reboot <vmid>` auf dem Knoten, siehe docs/BETRIEB.md Abschnitt 6.
|
||||
reboot_after_update = false
|
||||
|
||||
cpu {
|
||||
cores = each.value.cores
|
||||
type = "host"
|
||||
|
||||
Reference in New Issue
Block a user