跳到正文
TakoAPI
返回技能列表

zfs

由 mightybyte 提供

Coding Agents & IDEs
367下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

ZFS filesystem administration, pool management, dataset configuration, snapshots, replication, encryption.

描述

该技能的功能

Handles ZFS filesystem administration on Linux and macOS, covering pool creation, dataset configuration, snapshots, replication, encryption, and performance tuning. Follows OpenZFS best practices, including correct ashift settings, stable device naming, and production-safe pool layouts.

ZFS has many footguns (wrong ashift, file-backed pools, missing compression) that this skill explicitly guards against with production-ready defaults.

何时使用

  • Setting up a mirrored or raidz2 pool on a new NAS
  • Automating daily snapshots with recursive dataset coverage
  • Encrypting a dataset before storing sensitive backups
  • Replacing a failed disk and monitoring resilver progress
  • Tuning recordsize and compression for a PostgreSQL workload

示例工作流

输入

User asks: set up a ZFS pool with two disks and enable encryption for my backup dataset

智能体
  1. 1

    Identifies stable device paths under /dev/disk/by-id/ for both disks

  2. 2

    Creates a mirrored pool with ashift=12: zpool create -o ashift=12 tank mirror /dev/disk/by-id/disk1 /dev/disk/by-id/disk2

  3. 3

    Sets pool-level defaults: compression=lz4, atime=off, xattr=sa

  4. 4

    Creates an encrypted backup dataset with aes-256-gcm and a passphrase or key file

  5. 5

    Verifies pool status with zpool status and confirms encryption with zfs get encryption

输出

A mirrored pool named tank with an encrypted tank/backups dataset ready for use

安装

clawhub install mightybyte/zfs

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接