# 消息 ID：ZFS-8000-14

## ZFS 缓存损坏

|  类型  | 错误          |
| :--: | ----------- |
|  严重性 | 紧急          |
|  描述  | ZFS 缓存文件已损坏 |
| 自动响应 | 不会采取自动响应    |
|  影响  | ZFS 文件系统不可用 |

## 建议系统管理员采取的操作

为了避免系统启动时扫描所有设备，ZFS 在文件系统上维护着一个活动池的列表。如果该文件损坏，通常不会自动打开活动池。可以使用命令 `zpool import` 恢复池：

```sh
# zpool import
  pool: test
    id: 12743384782310107047
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        test              ONLINE
          sda9            ONLINE
```

这将自动扫描 `/dev` 中任何属于池的设备。如果设备被放置在其他位置，可使用 `zpool import` 的选项 `-d` 在不同目录中搜索设备。

在确定可导入的池后，可以通过指定名称或数字标识符显式导入池：

```sh
# zpool import test
```

或者，可以通过指定选项 `-a` 导入所有可用池。在池被导入后，将修复 ZFS 缓存，以便将来正常显示该池。

## 详细信息

消息 ID：`ZFS-8000-14` 表示 ZFS 缓存文件已损坏。请按照文档中说明的操作解决问题。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.bsdcn.org/zfs/zfs-xiao-xi/zfs-8000-14.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
