Below is an example of an auto-grow LVM script, where it automatically grows a logical volume when free storage is observed.
Credit: Winson (thanks!)
sudo tee /usr/local/sbin/autogrow-lvs.sh > /dev/null <<'EOF'
#!/bin/bash
set -euo pipefail
VG=vg0
# Find the PV device