mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
16 lines
318 B
Bash
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
|