CentOS7中配置LVM精简卷(Thinly-Provisioned Logical Volumes)-LMLPHP

LVM精简卷(Thinly-Provisioned Logical Volumes)的概念:  

       As of the Red Hat Enterprise Linux 6.4 release, logical volumes can be thinly provisioned. This allows you to create logical volumes that are larger than the available extents. Using thin provisioning, you can manage a storage pool of free space, known as a thin pool, which can be allocated to an arbitrary number of devices when needed by applications. You can then create devices that can be bound to the thin pool for later allocation when an application actually writes to the logical volume. The thin pool can be expanded dynamically when needed for cost-effective allocation of storage space.

By using thin provisioning, a storage administrator can over-commit the physical storage, often avoiding the need to purchase additional storage. For example, if ten users each request a 100GB file system for their application, the storage administrator can create what appears to be a 100GB file system for each user but which is backed by less actual storage that is used only when needed. When using thin provisioning, it is important that the storage administrator monitor the storage pool and add more capacity if it starts to become full.

To make sure that all available space can be used, LVM supports data discard. This allows for re-use of the space that was formerly used by a discarded file or other block range.

翻译如下:

从Red Hat Enterprise Linux 6.4版本开始,可以精简配置逻辑卷。这使您可以创建大于可用盘区的逻辑卷。使用精简配置,您可以管理可用空间的存储池(称为精简池),可以在应用程序需要时将其分配给任意数量的设备。然后,您可以创建可以绑定到精简池以供以后在应用程序实际写入逻辑卷时分配的设备。精简池可以在需要时进行动态扩展,以节省成本地分配存储空间。

通过使用自动精简配置,存储管理员可以过量使用物理存储,从而通常避免购买额外的存储。例如,如果十个用户各自为他们的应用程序请求一个100GB的文件系统,则存储管理员可以为每个用户创建一个看上去是100GB的文件系统,但由较少的实际存储作为后盾,仅在需要时才使用。使用精简配置时,重要的是,存储管理员监视存储池并在存储池开始变满时增加更多容量。

为了确保可以使用所有可用空间,LVM支持数据丢弃。这样可以重新使用以前由废弃文件或其他块范围使用的空间。

摘至RedHat官方文档,链接如下

本文分享自微信公众号 - WalkingCloud(WalkingCloud2018)。
如有侵权,请联系 support@oschina.cn 删除。
本文参与“OSC源创计划”,欢迎正在阅读的你也加入,一起分享。

09-12 10:19
查看更多