From 9cf1f6b365bb092efd64c0b11dd7d8e503e155b8 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Wed, 19 Feb 2025 11:37:17 -0500 Subject: [PATCH] update truenas with some stability and troubleshooting notes --- infrastructure/graduated/truenas/truenas.md | 30 +++++++++++---------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/infrastructure/graduated/truenas/truenas.md b/infrastructure/graduated/truenas/truenas.md index cdd767b..1dbf36c 100644 --- a/infrastructure/graduated/truenas/truenas.md +++ b/infrastructure/graduated/truenas/truenas.md @@ -32,17 +32,12 @@ ## Bios settings -These are my recommended settings that seem stable and allow GPU passthrough +You can check the bios version with `dmidecode -t bios -q` -1. Memory 3200mhz, fabric 1600mhz -2. AC Power - On -3. SVM - On -4. IOMMU - On (Do not touch rebar or other pci encoding stuff) -5. Fans 100% -6. Initial video output: pci 3 -7. PCIE slot 1 bifurcation: 4x4x4x4 -8. Disable CSM -9. Fast Boot Enabled +1. Turn off all C-State or power saving features. These definitely cause instability + like random freezes. +2. Turn off boosting +3. Enable XMP ## Archiving @@ -281,10 +276,11 @@ Nic options: "mtu 9000 rxcsum txcsum tso4 lro" Create an Init/Shutdown Script of type `Command` with the following: ```bash -echo 34359738368 >> /sys/module/zfs/parameters/zfs_arc_max +# Limit to 8 GiB +echo 8589934592 >> /sys/module/zfs/parameters/zfs_arc_max ``` -Set `When` to `Pre Init`. +Set `When` to `Post Init`. ## Certs @@ -385,8 +381,14 @@ zpool status -v ```bash virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" list -virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" resume -virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" start +export VM_NAME= + +# Try this first +virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" resume $VM_NAME + +# Or just destroy and start it again +virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" destroy $VM_NAME +virsh -c "qemu+unix:///system?socket=/run/truenas_libvirt/libvirt-sock" start $VM_NAME ``` ## Mounting ZVOLS