4.3.3.2. 씬 풀 자동 확장
thin_pool_autoextend_threshold 및 thin_pool_autoextend_percent 구성 매개변수를 모니터링하고 설정하여 씬 풀 확장을 자동화할 수 있습니다.
사전 요구 사항
- 관리 액세스.
절차
thin 풀이 모니터링되는지 확인합니다.
# lvs -o lv_name,vg_name,seg_monitor LV VG Monitor ThinPoolName VolumeGroupName not monitoreddmeventd데몬을 사용하여 thin pool 모니터링을 활성화합니다.# lvchange --monitor y VolumeGroupName/ThinPoolNameVolumeGroupName 을 볼륨 그룹의 이름으로 교체합니다. ThinPoolName 을 thin 풀 이름으로 교체합니다.
-
root사용자로 선택한 편집기에서/etc/lvm/lvm.conf파일을 엽니다. thin_pool_autoextend_threshold및thin_pool_autoextend_percent행의 주석을 제거하고 각 매개변수를 필수 값으로 설정합니다.thin_pool_autoextend_threshold = 70 thin_pool_autoextend_percent = 20thin_pool_autoextend_threshold는 LVM이 씬 풀을 자동 확장하기 시작하는 백분율을 결정합니다. 예를 들어, 이를 70개로 설정하면 LVM이 70% 용량에 도달하면 LVM에서 씬 풀을 확장하려고 합니다.thin_pool_autoextend_percent는 임계값에 도달할 때 씬 풀을 확장해야 하는 백분율을 지정합니다. 예를 들어 20으로 설정하면 씬 풀이 현재 크기의 20% 증가합니다.- 변경 사항을 저장하고 편집기를 종료합니다.
lvm2-monitor를 다시 시작하십시오.# systemctl restart lvm2-monitor