> For the complete documentation index, see [llms.txt](https://docs.verge.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.verge.io/run-the-platform/zh/nas/nas-local-volumes.md).

# 本地卷

本地卷是在 VergeOS 中存储的文件系统，会消耗 VergeOS vSAN 中的存储空间。每个本地卷都可以具有不同的共享、同步、分层和权限设置。

{% hint style="success" %}
**在创建卷之前，必须先配置 NAS 服务。请参阅** [**NAS 服务**](/run-the-platform/zh/nas/nas-service.md) **该页面获取说明。**
{% endhint %}

## 创建本地卷

1. 导航到 **NAS** > **卷**.
2. 选择 **新建** 左侧菜单中的。
3. 选择合适的 **NAS 服务** 从下拉列表中。
4. 输入一个 **名称** 用于该卷（必填）。注意：不允许使用空格。
5. 输入一个 **描述** 用于该卷（可选）。
6. 在 **文件系统类型** 下拉列表中，选择 ***本地卷（EXT4）***.
7. 该 **加密卷** 可选择该选项来加密整个卷（AES-XTS）。

{% hint style="info" %}
**加密注意事项：**

* 加密选项仅在创建时可用；卷创建后，不能从加密更改为未加密，反之亦然。
* 启用卷加密会带来轻微到中等程度的性能影响。
  {% endhint %}

8. 选择加密时， **加密密钥** 也必需。

{% hint style="warning" %}
**加密密钥在卷的整个生命周期内都需要使用。每次将卷联机时都必须输入此加密密钥（例如，在禁用/启用卷之后，或在其 NAS 服务重启之后等）。没有加密密钥，将无法使卷重新联机！**
{% endhint %}

9. 请为 **最大大小** 用于该卷，方法是输入整数并选择单位（B/KB/MB/GB/TB）。(当达到最大大小时，卷将显示空间不足，并且仍可继续读取，但不允许再写入。)
10. 该 **丢弃** 选项默认启用。启用丢弃后：当数据从卷中删除时，该空间会回收到 vSAN。
11. 该卷可以选择设置为 **只读**.
12. 该 **自动挂载快照** 可选择该选项，使快照可随时用于浏览/文件恢复。
13. 请指定 **所有者** 用于卷目录（可选）。
14. 请为 **组** 用于卷目录（可选）。
15. 选择一个 **快照配置文件** 用于该卷（可选）。请参阅 [**快照配置文件**](/automate-protect-and-extend/zh/bei-fen-yu-dr/snapshot-profiles.md) 有关快照配置文件的信息。
16. 选择 **首选层级** 用于存储此卷。首选层是首先尝试的层。请参阅 [**首选层**](/run-the-platform/zh/cun-chu/preferred-tiers.md) 了解更多信息。
17. 单击 **提交** 以保存设置并创建本地卷。
18. 将显示新本地卷的仪表板。新卷可能需要几分钟才能联机。如果卷状态没有变为联机，请参阅日志部分（仪表板底部）查看错误信息以进行故障排除。
19. 可以使用左侧菜单中的 **浏览** 选项查看在线卷中的文件。
20. 要公开本地卷，请创建 CIFS 和/或 NFS [**共享**](/run-the-platform/zh/nas/nas-shares.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.verge.io/run-the-platform/zh/nas/nas-local-volumes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
