ZPool 备忘单

OpenZFS/ZPool 使用命令和信息

📦 ZFS Pool Basics

# Create a new pool zpool create mypool /dev/sdX # List all pools zpool list # Show detailed pool status zpool status mypool # Add a new vdev to an existing pool zpool add mypool /dev/sdY # Destroy a pool (⚠️ irreversible!) zpool destroy mypool # Export (unmount) a pool zpool export mypool # Import (mount) a pool zpool import mypool # Scrub a pool (check for errors) zpool scrub mypool # Check scrub status zpool status mypool 

🛠️ Vdev Types & RAID Equivalents

ZFS Vdev TypeDescriptionRAID EquivalentMin DisksFault Tolerance
stripeData striped across disks, no redundancyRAID 010
mirrorIdentical copies on multiple disksRAID 12+1 per mirror
raidz1Single parityRAID 53+1
raidz2Double parityRAID 64+2
raidz3Triple parityRAID 7 (uncommon)5+3

⚠️ ZFS pools are built from one or more vdevs. If any vdev fails, the entire pool fails—even if other vdevs are healthy.

📁 Dataset & Filesystem Management

# Create a dataset zfs create mypool/mydataset # List datasets zfs list # Set quota on a dataset zfs set quota=10G mypool/mydataset # Snapshot a dataset zfs snapshot mypool/mydataset@snap1 # Roll back to a snapshot zfs rollback mypool/mydataset@snap1 # Send snapshot to another system zfs send mypool/mydataset@snap1 | ssh user@host zfs receive backup/mirror 

🧮 Tips & Best Practices

  • ✅ Always use whole disks (not partitions) for ZFS.
  • ✅ Use ECC RAM if possible—ZFS relies heavily on memory integrity.
  • ✅ Avoid mixing vdev types in a single pool.
  • ✅ Use zpool scrub regularly to detect and fix silent corruption.
  • ✅ Remember: redundancy is at the vdev level, not the pool level.

相关工具 (18)

chmod 命令速查表
Linux 权限变更速查表
常用正则表达式备忘单
常用正则表达式模式备忘单。
CSS选择器备忘单
CSS选择器语法备忘单。
Docker Compose 备忘单
Docker Compose 格式备忘单
Docker SWARM 备忘单
Docker Swarm 模式速查表
Dockerfile 备忘单
Dockerfile 语法和构建备忘单
Git语义提交备忘单
使用语义前缀提交Git的备忘单
JQ备忘单
JQ命令备忘单
JSONPath语法备忘单
JSONPath语法备忘单
Markdown备忘单
Markdown备忘单
Nano备忘单
Nano编辑器备忘单
正则表达式备忘单
JavaScript正则表达式备忘单
Sed 备忘单
sed unix 命令速查表
XPath语法备忘单
XPath语法备忘单
RAID可靠性计算器
使用著名的 MTTDL 方法计算存储系统可靠性
RAID计算器
根据磁盘数量、大小和RAID类型,计算阵列的存储容量、容错能力和空间效率
ZPOOL RAID计算器
确定 ZFS 存储池的可用容量和其他指标,并比较包括条带、镜像、RAIDZ1、RAIDZ2、RAIDZ3 和 dRAID 在内的布局。
ZPool 备忘单
OpenZFS/ZPool 使用命令和信息
留言区
昵称
邮箱
网址
0/500
0 条评论
没有评论
查看更多
Powered by Twikoo v1.6.44
Twikoo 评论管理
密码