← 返回命令列表

Linux command

zpool-events 命令

文本

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

常用示例

Show pool events

zpool events

Show verbose event details

zpool events -v

Show events for specific pool

zpool events [poolname]

Follow events in real-time

zpool events -f

Clear event log

zpool events -c

Show verbose and follow

zpool events -vf

说明

zpool events displays the internal event log maintained by ZFS since the kernel module was loaded. Events include errors, pool state changes, scrub operations, and device status updates. The event log is stored in RAM with a configurable maximum size. Events are invaluable for diagnosing hardware problems, tracking pool operations, and understanding ZFS behavior. The ZFS Event Daemon (zed) monitors these events in real-time and can trigger scripts for notifications or automated responses to events.

参数

-v
Verbose output with full event payloads.
-f
Follow mode; wait for new events.
-c
Clear event log after displaying.
-H
Scripted mode; no headers, tab-separated.

FAQ

What is the zpool-events command used for?

zpool events displays the internal event log maintained by ZFS since the kernel module was loaded. Events include errors, pool state changes, scrub operations, and device status updates. The event log is stored in RAM with a configurable maximum size. Events are invaluable for diagnosing hardware problems, tracking pool operations, and understanding ZFS behavior. The ZFS Event Daemon (zed) monitors these events in real-time and can trigger scripts for notifications or automated responses to events.

How do I run a basic zpool-events example?

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

What does -v do in zpool-events?

Verbose output with full event payloads.