← 返回命令列表

Linux command

zpool 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

List all pools

zpool list

Show pool status

zpool status [pool]

Create a mirrored pool

sudo zpool create [pool] mirror [/dev/sda] [/dev/sdb]

Create a RAID-Z pool

sudo zpool create [pool] raidz [/dev/sda] [/dev/sdb] [/dev/sdc]

Add devices to pool

sudo zpool add [pool] [/dev/sdc]

Start a scrub

sudo zpool scrub [pool]

Import a pool

sudo zpool import [pool]

Export a pool

sudo zpool export [pool]

说明

zpool manages ZFS storage pools. A pool is composed of virtual devices (vdevs) which can be single disks, mirrors, or RAID-Z configurations. Pools provide the underlying storage that ZFS datasets use. Vdev types: - mirror - Data mirrored across 2+ disks - raidz, raidz2, raidz3 - RAID-Z with 1/2/3 parity disks - spare - Hot spare disk - cache - L2ARC read cache (SSD) - log - ZIL write log (SSD) Scrubbing verifies all data checksums and repairs errors using redundant copies. Regular scrubs are essential for data integrity.

FAQ

What is the zpool command used for?

zpool manages ZFS storage pools. A pool is composed of virtual devices (vdevs) which can be single disks, mirrors, or RAID-Z configurations. Pools provide the underlying storage that ZFS datasets use. Vdev types: - mirror - Data mirrored across 2+ disks - raidz, raidz2, raidz3 - RAID-Z with 1/2/3 parity disks - spare - Hot spare disk - cache - L2ARC read cache (SSD) - log - ZIL write log (SSD) Scrubbing verifies all data checksums and repairs errors using redundant copies. Regular scrubs are essential for data integrity.

How do I run a basic zpool example?

Run `zpool list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more zpool examples?

This page includes 8 examples for zpool, plus related commands for nearby Linux tasks.