tips
21 tips Troubleshooting
One command, setting or habit at a time about Troubleshooting: what it does, the line to copy and a caveat or two.
Identify and inspect 5
-
Find the parameters a driver offers before copying one from a forum.
modinfo -p usb_storage -
Check whether a service really restarted after your change or crashed recently.
ps -o pid,lstart,etime,cmd -p 1234 -
See which config, log and network connections a running program is using.
sudo lsof -nP -p 1234 -
See the fallback font you get when the requested one is missing.
fc-match Helvetica -
Lists the resolutions and refresh rates the attached monitor supports.
kmsprint -m
System 3
-
Fix a dark monitor on a GPU passthrough VM by changing its machine type.
i440fx -
Hide a GPU or controller from Unraid so a VM can use it directly.
Bind Selected to VFIO at Boot -
Keeps the system log across a crash by writing it to the boot drive while it happens.
Settings > Syslog Server > Mirror syslog to boot drive: Yes
Array and disks 2
-
Copy as much as possible off a failing disk when a parity rebuild is not an option.
ddrescue -f /dev/sdX /dev/sdY /boot/ddrescue.log -
Runs a filesystem check on an array disk without breaking parity, read-only unless you ask for a repair.
xfs_repair -nv /dev/md1p1
Updates and troubleshooting 2
-
Scans an Unraid server for common configuration mistakes and suggests a fix for each one.
-
Creates a support zip of your Unraid system from the terminal and saves it to the boot device.
diagnostics
WP-CLI 2
-
Switches off all WordPress plugins at once so you can find which one breaks the site.
wp plugin list --status=active --field=name > active-plugins.txt -
Shows the PHP binary, php.ini, memory limit and config files that WP-CLI is using.
wp cli info
Windows 2
-
Lists every TCP port Windows is listening on, with the process ID that owns each one.
Get-NetTCPConnection -State Listen -
Shows crashes, failed updates and installs per day, with a stability score from 1 to 10.
perfmon /rel
Cache and Mover 1
-
Clear phantom out-of-space errors on an Unraid btrfs cache pool.
Main > click the pool > Balance > Start
Logs and diagnostics 1
-
Shows whether a Raspberry Pi has had under-voltage or throttling since it booted.
vcgencmd get_throttled
Networks 1
-
Stop a broken WireGuard tunnel from starting at boot so you get your WebGUI back.
/boot/config/wireguard/autostart
Quality and releases 1
-
Shows why Sonarr refuses a release in Manual Search by hovering over its rejection icon.
Series > episode > Manual Search > hover the red icon
Quick checks 1
-
Prints the readings of the Pi 5 power chip, including the 5V input voltage.
vcgencmd pmic_read_adc
Nothing in this filter yet.