Logo di Truenas Ops

Truenas Ops

Organizzazione
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

Panoramica

Pubblicato daserversathome
Repositoryhomelabhero
Nome della skilltruenas-ops
Stelle
104
Fork
4
File inclusi
Solo istruzioni
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da serversathome su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Truenas Ops in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/truenas-ops
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Truenas Ops in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Truenas Ops non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Truenas Ops non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Truenas Ops su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Truenas Ops è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Truenas Ops in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/truenas-ops. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Truenas Ops?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Truenas Ops?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Truenas Ops: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Truenas Ops è gratuita?

È pubblicata su GitHub da serversathome. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇