Our end-goal is to make it easy to increase disk space on partitions at any point in the future. Whether it's the system drive that needs more space, or something like /var
In researching what is best to use for disk partitioning, I came across this article: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/configure-lvm
which says, "While it is feasible to configure LVM on any disk attached to the virtual machine, by default most cloud images will not have LVM configured on the OS disk. This is to prevent problems with duplicate volume groups if the OS disk is ever attached to another VM of the same distribution and type, i.e. during a recovery scenario. Therefore it is recommended only to use LVM on the data disks."
But even on a system (non-data disk), if you're not using LVM, how would you expand this disk partition if needed, since we don't have access to the VM console?
For example, recently in our internal environment (not in Azure), we had a VM that wasn't using LVM at all, and needed a middle partition expanded. The only solution we found was to boot the VM off a boot disk and use GPARTED. This isn't an option in Azure.
How is this handled or recommended to be handled in Azure VMs if the same situation arose? (if a partition in the middle needing additional space, on a non-LVM disk) Mostly trying to plan out how we should be building our Linux VM's to avoid future issues like this.