4.2. 创建逻辑卷总览


以下内容对创建 LVM 逻辑卷的步骤进行了总结。
  1. 将您要用作 LVM 卷的分区初始化为物理卷(进行标记)。
  2. 创建卷组。
  3. 创建逻辑卷。
After creating the logical volume you can create and mount the file system. The examples in this document use GFS2 file systems.

注意

Although a GFS2 file system can be implemented in a standalone system or as part of a cluster configuration, for the Red Hat Enterprise Linux 6 release Red Hat does not support the use of GFS2 as a single-node file system. Red Hat will continue to support single-node GFS2 file systems for mounting snapshots of cluster file systems (for example, for backup purposes).
  1. Create a GFS2 file system on the logical volume with the mkfs.gfs2 command.
  2. mkdir 命令创建一个新的挂载点。在群集的系统中,在群集的所有节点中创建挂载点。
  3. 挂载文件系统。您可能想要在 fstab 为系统中的每个节点添加一行。
Alternately, you can create and mount the GFS2 file system with the LVM GUI.
创建 LVM 卷在每台机器上都是不同的,因为保存 LVM 设置信息的区域是在物理卷中,而不是在创建卷的机器中。用于存储的服务器有本地副本,但可以重新生成物理卷中的内容。如果 LVM 版本兼容,您可以将物理卷附加到不同服务器上。
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat