• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Enable Thin LVM Automatic Extension

by admin

Question: How to enable the automatic extension capability for a thin LVM volume?

By default, the automatic extension is set to ‘100‘

# grep thin_pool_autoextend_threshold /etc/lvm/lvm.conf
# Configuration option activation/thin_pool_autoextend_threshold.
# thin_pool_autoextend_threshold = 70
  thin_pool_autoextend_threshold = 100

These settings imply the function has been disabled:

# Configuration option activation/thin_pool_autoextend_threshold.
# Auto-extend a thin pool when its usage exceeds this percent.
# Setting this to 100 disables automatic extension.

To enable the automatic extension, change both the ‘thin_pool_autoextend_percent‘ and ‘thin_pool_autoextend_threshold‘ settings:

thin_pool_autoextend_threshold = 70
thin_pool_autoextend_percent   = 20

Which means whenever a pool exceeds 70% usage, it will be extended by another 20%. For a 1G pool, using 700M will trigger a resize to 1.2G. When the usage exceeds 840M, the pool will be extended to 1.44G, and so on.

Filed Under: CentOS/RHEL 5, CentOS/RHEL 6, CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. Understanding the Network interface configuration file /etc/sysconfig/network-scripts/ifcfg-eth#
  2. virt-manager: command not found
  3. Running repairs on XFS Filesystems
  4. CentOS / RHEL 6 : How to add/remove additional IP addresses to a network interface
  5. “-bash: route: command not found” on CentOS/RHEL 7
  6. jobs Command Options In Linux
  7. CentOS / RHEL 7 : Enable NTP to start at boot after fresh install (disable chrony)
  8. CentOS/RHEL – How to run a script or command when any user logout the ssh session
  9. How to troubleshoot NFS transfer latency issues using “nfsiostat” in CentOS / RHEL
  10. CentOS / RHEL : How to allow or deny Users to login to VSFTP Server

You May Also Like

Primary Sidebar

Recent Posts

  • qemu-system-x86_64: command not found
  • timedatectl: command not found
  • mpirun.openmpi: command not found
  • startkde: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright