4.3.3.2. 自动扩展精简池


您可以通过启用监控,并设置 thin_pool_autoextend_thresholdthin_pool_autoextend_percent 配置参数来自动化精简池的扩展。

先决条件

  • 管理访问权限.

流程

  1. 检查精简池是否已被监控:

    # lvs -o lv_name,vg_name,seg_monitor
      LV                VG              Monitor
      ThinPoolName      VolumeGroupName not monitored
  2. 使用 dmeventd 守护进程启用精简池监控:

    # lvchange --monitor y VolumeGroupName/ThinPoolName

    VolumeGroupName 替换为卷组的名称。将 ThinPoolName 替换为精简池的名称。

  3. 在您选择的编辑器中打开 /etc/lvm/lvm.conf 文件。
  4. 取消 thin_pool_autoextend_thresholdthin_pool_autoextend_percent 行的注释,并将每个参数设置为所需的值:

    thin_pool_autoextend_threshold = 70
    thin_pool_autoextend_percent = 20

    thin_pool_autoextend_threshold 决定 LVM 开始自动扩展精简池的百分比。例如,将其设置为 70 表示 LVM 会在达到 70% 容量时尝试扩展精简池。

    thin_pool_autoextend_percent 指定达到阈值时精简池应扩展的百分比。例如,将其设置为 20 表示精简池将增加其当前大小的 20%。

  5. 保存更改并退出编辑器。
  6. 重启 lvm2-monitor

    # systemctl restart lvm2-monitor
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

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

让开源更具包容性

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

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部