4.3.3.2. シンプールの自動拡張
監視を有効にして、thin_pool_autoextend_threshold および thin_pool_autoextend_percent 設定パラメーターを設定することで、シンプールの拡張を自動化できます。
前提条件
- 管理アクセスがある。
手順
シンプールが監視されているかどうかを確認します。
# lvs -o lv_name,vg_name,seg_monitorLV VG Monitor ThinPoolName VolumeGroupName not monitoreddmeventdデーモンを使用してシンプールの監視を有効にします。# lvchange --monitor y VolumeGroupName/ThinPoolNameVolumeGroupName は、ボリュームグループの名前に置き換えます。ThinPoolName は、シンプールの名前に置き換えます。
-
任意のエディターで
/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 に設定すると、容量の 70% に達したときに LVM がシンプールの拡張を試みます。thin_pool_autoextend_percentは、しきい値に達したときにシンプールを何パーセント拡張するかを指定します。たとえば、これを 20 に設定すると、シンプールのサイズが現在のサイズの 20% 増加します。- 変更を保存し、エディターを終了します。
lvm2-monitorを再起動します。# systemctl restart lvm2-monitor