ansitest/proxmox/resize-lvm-thin-pool.sh
2024-04-16 21:11:22 -06:00

16 lines
318 B
Bash

#!/bin/bash
#exit;
meta=127M # increase by 10% of new GB
cursize=207 # GB # lvs |grep data |awk '{print $4}'
sizeup=127 # GB
let newsize=$cursize+$sizeup
# Use webmin to add PV, then
lvresize --poolmetadatasize +$meta /dev/mapper/pve-data
set -x
time lvresize -L${newsize}G pve/data -r -vvv #--type thin-pool
lvs