How to extend all available disk to local-data

After install Proxmove VE, the local-data only have about 50GB disk availabe. But how to let all availabld disk space to the local-data? Here we go:

# Remove local-data
lvremove /dev/pve/data

# Extend all available disk to /dev/pve/root
lvresize -l +100%FREE /dev/pve/root

#recreate pve-root
resize2fs /dev/mapper/pve-root

Reference