Logo van Truenas Ops

Truenas Ops

Organisatie
serversathome
truenas-ops

Troubleshoot and manage TrueNAS SCALE over SSH. Use this whenever the user mentions TrueNAS, the NAS, ZFS, a pool or dataset, a scrub, a snapshot, replication, a failing or degraded disk, SMART data, an SMB/NFS/iSCSI share, a TrueNAS app, or storage that is full, slow, or throwing errors. Trigger this for anything storage-layer even when the symptom first shows up as an app or VM that lost its data mount. Prefer this over generic shell reasoning for pool, disk, dataset, and share work.

Add to TypingMind

Overzicht

Uitgeverserversathome
Repositoryhomelabhero
Skillnaamtruenas-ops
Sterren
104
Forks
4
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door serversathome op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Truenas Ops in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/truenas-ops
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/truenas-ops .claude/skills/truenas-ops
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Truenas Ops in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Truenas Ops automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Truenas Ops niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

TrueNAS ops

Reached over SSH as truenas. Read infra/truenas.md for pool names, datasets, and schedules before acting. Bias hard toward read-only until the cause is clear. midclt (the middleware) is the preferred way to inspect and change TrueNAS - it covers pools, datasets, disks, apps, and shares (see the truenas-middleware skill), and needs no sudo. The raw tools below (zpool, zfs, smartctl, docker) need root: if this host connects as truenas_admin, prefix them with sudo -n (works when passwordless sudo is enabled for that user; hh doctor shows whether it is, and if not, use the midclt equivalent). As root they run bare.

When a raw tool fails with sudo: a password is required, or hh doctor says the host has no passwordless sudo, do not work around it silently: say so, keep going through midclt, and give the user the one-time fix so they can decide. In the TrueNAS web UI: Credentials -> Users -> select truenas_admin -> Edit -> check "Allow all sudo commands with no password" (so that both "Allowed sudo commands" and "Allowed sudo commands (no password)" include all) -> Save. After that hh doctor shows passwordless sudo available and the raw tools work. The alternative is to re-register the host as root, which needs no sudo at all.

For the complete command surface of this platform, read capabilities/truenas.md. For a method that is not documented there, use the truenas-middleware skill to discover it live.

Diagnose first

hh run truenas "zpool status -x"     # fast "all healthy?" verdict
hh run truenas "zpool list"          # capacity + health per pool
hh run truenas "zpool status -v"     # per-vdev/per-disk errors if not healthy
hh run truenas "midclt call alert.list | jq '.[] | {level, formatted}'"
hh run truenas "df -h; zfs list -o name,used,avail,refer,mountpoint"

Mandatory before you call it healthy - scan the kernel log. Pools, SMART, and alert.list miss PCIe AER, NIC link flaps, ATA/disk resets, MCEs, and OOM kills; those only surface here:

hh run truenas "journalctl -k -b -p warning --no-pager | grep -viE 'veth|br-[0-9a-f]{12}' | tail -40"

Empty output is the pass; read it before reporting green. See "Health check must-dos" in infra/truenas.md for the full rationale.

Common cases

  • Pool DEGRADED / disk errors: zpool status -v names the vdev and disk. Map the disk to a serial with lsblk -o NAME,SERIAL,MODEL, confirm with smartctl -a /dev/<disk>. Do not zpool replace or offline a disk without an explicit go-ahead and a confirmed replacement plan.
  • Dataset "missing" / app lost its data: check the mount zfs get mounted,mountpoint <pool>/<dataset> and whether the app's host path still resolves. Often a mount or app-config issue, not data loss.
  • Pool nearly full: zpool list capacity, then find the heavy datasets zfs list -o name,used -s used. Old snapshots are a common hidden consumer: zfs list -t snapshot -o name,used -s used | tail.
  • Replication failing: midclt call replication.query | jq '.[] | {name, state: .state.state}' then the task's error, plus SSH connectivity to the target.
  • SMART concern: smartctl -H /dev/<disk> for the verdict, smartctl -a /dev/<disk> for the full attribute table.

State-changing (confirm first)

hh run truenas "zpool scrub <pool>"                    # safe but I/O heavy
hh run truenas "zfs snapshot <pool>/<dataset>@manual-$(date +%F)"

For a full backup / restore / rollback workflow (clone vs rollback, verifying that recoverability actually exists), use the backup-restore skill.

Never without explicit go-ahead: zfs destroy, zpool destroy, zpool offline/replace, wipefs, or anything that writes to a raw disk. Recoverability comes from snapshots and replication, so verify those exist before any risky change.

Apps on TrueNAS

hh run truenas "midclt call app.query | jq '.[] | {name, state}'"
hh run truenas "docker ps"      # if custom Docker apps are in use

VMs and containers (backend changed by version - detect first)

The virtualization backend is different across releases, so the midclt namespace is different too. Do not assume: read the version, then use the matching API. midclt runs over the local socket, so the REST API removal in 26 does not affect this path.

hh run truenas "midclt call system.version"
  • 24.10 and earlier: libvirt VMs only, vm.* (vm.query, vm.start, vm.stop).
  • 25.04 / 25.10: Incus for containers AND VMs, virt.instance.* (type = CONTAINER or VM). Instance disks live in the hidden .ix-virt dataset. virt.global.config shows the instances pool.
  • 27 (pre-release; its betas were numbered 26): Incus removed, libvirt runs QEMU/KVM VMs (vm.*) and libvirt_lxc containers (own namespace). Upgrades migrate .ix-virt zvols to libvirt VMs; expect orphaned LXCs and VMs missing from the UI (zvols usually survive under .ix-virt).

See "Virtualization" in capabilities/truenas.md for the full command set. When a method name is unclear (common on 27), use the truenas-middleware skill to list the live vm.* / virt.* / container.* methods and read their schemas instead of guessing. Confirm before any start/stop/create/update/delete.

Veelgestelde vragen

Wat doet de AI-skill Truenas Ops?

Troubleshoot and manage TrueNAS SCALE over SSH. Use this whenever the user mentions TrueNAS, the NAS, ZFS, a pool or dataset, a scrub, a snapshot, replication, a failing or degraded disk, SMART data, an SMB/NFS/iSCSI share, a TrueNAS app, or storage that is full, slow, or throwing errors. Trigger this for anything storage-layer even when the symptom first shows up as an app or VM that lost its data mount. Prefer this over generic shell reasoning for pool, disk, dataset, and share work.

Waarom Truenas Ops gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Truenas Ops bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Truenas Ops in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/truenas-ops. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Truenas Ops gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Truenas Ops gebruiken?

Zoveel als je wilt. Je kunt Truenas Ops gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Truenas Ops gratis?

Deze skill is door serversathome op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇