3.3. LVM 逻辑卷


在 LVM 中,卷组会被分成逻辑卷。LVM 逻辑卷有三种类型:线性卷、条状卷和镜像卷。这些在以后的内容中都有论述。

3.3.1. 线性卷

A linear volume aggregates space from one or more physical volumes into one logical volume. For example, if you have two 60GB disks, you can create a 120GB logical volume. The physical storage is concatenated.
Creating a linear volume assigns a range of physical extents to an area of a logical volume in order. For example, as shown in 图 3.2 “扩展映射” logical extents 1 to 99 could map to one physical volume and logical extents 100 to 198 could map to a second physical volume. From the point of view of the application, there is one device that is 198 extents in size.

图 3.2. 扩展映射

The physical volumes that make up a logical volume do not have to be the same size. 图 3.3 “物理卷大小不同的线性卷” shows volume group VG1 with a physical extent size of 4MB. This volume group includes 2 physical volumes named PV1 and PV2. The physical volumes are divided into 4MB units, since that is the extent size. In this example, PV1 is 200 extents in size (800MB) and PV2 is 100 extents in size (400MB). You can create a linear volume any size between 1 and 300 extents (4MB to 1200MB). In this example, the linear volume named LV1 is 300 extents in size.

图 3.3. 物理卷大小不同的线性卷

You can configure more than one linear logical volume of whatever size you require from the pool of physical extents. 图 3.4 “多逻辑卷” shows the same volume group as in 图 3.3 “物理卷大小不同的线性卷”, but in this case two logical volumes have been carved out of the volume group: LV1, which is 250 extents in size (1000MB) and LV2 which is 50 extents in size (200MB).

图 3.4. 多逻辑卷

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat